public class Map
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<Room> |
rooms
Store of the rooms in the map
|
| Constructor and Description |
|---|
Map()
Constructs the map
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAmountOfRooms()
Returns the amount of rooms created by the map
|
Room |
getRoom(int id)
This returns a room from the list based on the id.
|
java.util.List<Room> |
getRooms()
Gets the rooms in the map.
|
void |
initialiseRooms()
This function initialises all the rooms of the Ron Cooke Hub and their transitions
|
private java.util.List<Room> rooms
public void initialiseRooms()
public Room getRoom(int id)
id - - The ID of the room they request.public int getAmountOfRooms()
public java.util.List<Room> getRooms()