Package com.mg105.use_cases.outputds
Class RoomLayout
java.lang.Object
com.mg105.use_cases.outputds.RoomLayout
The layout of a room.
Note: There is an implicit, assumed, border around the edge.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the closed treasure chests in this room.Get the doorways in this room.Get the open treasure chests in this room.Get the opponents in this room.@NotNull Point
Get the player position in this room.
-
Constructor Details
-
RoomLayout
public RoomLayout(@NotNull @NotNull List<Point> closedChests, @NotNull @NotNull List<Point> openChests, @NotNull @NotNull List<Point> opponents, @NotNull @NotNull List<Point> doorways, @NotNull @NotNull Point player) Create a room given some number of chests, opponents, and doorways.- Parameters:
closedChests
- the closed chests in the room.openChests
- the open chests in the room.opponents
- the opponents in this room.doorways
- the doorways in this room leading to other rooms.player
- the player's position.
-
-
Method Details
-
getClosedChests
Get the closed treasure chests in this room.- Returns:
- the closed treasure chest positions in this room.
-
getOpenChests
Get the open treasure chests in this room.- Returns:
- the open treasure chest positions in this room
-
getOpponents
Get the opponents in this room.- Returns:
- the opponent positions in this room.
-
getDoorways
Get the doorways in this room.- Returns:
- the doorway positions in this room.
-
getPlayer
Get the player position in this room.- Returns:
- the player position in the room.
-