Package com.mg105.entities
Class Room
java.lang.Object
com.mg105.entities.Room
Room represents a single room in the map.
Rooms are stored together in a graph-like data structure where doorways act as single directional edges.
-
Constructor Summary
ConstructorDescriptionRoom
(@NotNull List<TreasureChest> chests, @NotNull List<OpponentSet> opponents, @NotNull List<Doorway> doorways) Create a room given some number of chests, opponents, and doorways. -
Method Summary
Modifier and TypeMethodDescription@NotNull List<TreasureChest>
Get the treasure chests in this room.Get the doorways in this room.@NotNull List<OpponentSet>
Get the opponents in this room.
-
Constructor Details
-
Room
public Room(@NotNull @NotNull List<TreasureChest> chests, @NotNull @NotNull List<OpponentSet> opponents, @NotNull @NotNull List<Doorway> doorways) Create a room given some number of chests, opponents, and doorways.- Parameters:
chests
- the chests in this room.opponents
- the opponents in this room.doorways
- the doorways in this room leading to other rooms.
-
-
Method Details
-
getChests
Get the treasure chests in this room.- Returns:
- the treasure chests in this room.
-
getOpponents
Get the opponents in this room.- Returns:
- the opponents in this room.
-
getDoorways
Get the doorways in this room.- Returns:
- the doorways in this room.
-