Class RoomLayout

java.lang.Object
com.mg105.use_cases.outputds.RoomLayout

public class RoomLayout extends Object
The layout of a room.

Note: There is an implicit, assumed, border around the edge.

  • 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

      @NotNull public @NotNull List<Point> getClosedChests()
      Get the closed treasure chests in this room.
      Returns:
      the closed treasure chest positions in this room.
    • getOpenChests

      @NotNull public @NotNull List<Point> getOpenChests()
      Get the open treasure chests in this room.
      Returns:
      the open treasure chest positions in this room
    • getOpponents

      @NotNull public @NotNull List<Point> getOpponents()
      Get the opponents in this room.
      Returns:
      the opponent positions in this room.
    • getDoorways

      @NotNull public @NotNull List<Point> getDoorways()
      Get the doorways in this room.
      Returns:
      the doorway positions in this room.
    • getPlayer

      @NotNull public @NotNull Point getPlayer()
      Get the player position in this room.
      Returns:
      the player position in the room.