Package ui

Class GameBoard

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class GameBoard extends JPanel
See Also:
  • Field Details

    • PREFERRED_TILE_SIZE

      public static final int PREFERRED_TILE_SIZE
      Tile size (width and height) used to compute the preferred display size of a game board [pixels].
      See Also:
    • tileGrid

      private Tile[][] tileGrid
      2D array of Tile objects that comprise the game's background
    • model

      private GameModel model
    • controller

      private final InteractiveGameController controller
    • showPaths

      private final boolean showPaths
      Whether to render actors' "guidance paths" for debugging purposes.
    • boardListener

      private final PropertyChangeListener boardListener
      Listener to register with model to respond to board state changes.
  • Constructor Details

    • GameBoard

      public GameBoard(GameModel model, boolean showPaths)
  • Method Details