Class InventoryPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class InventoryPanel extends JPanel
See Also:
  • Constructor Details

    • InventoryPanel

      public InventoryPanel(Domain Maze, boolean isGamePanel, MazeRenderer mazeRenderer)
      Constructor. Takes a maze as parameters.
      Parameters:
      Maze - the maze to be displayed
      isGamePanel - whether the panel is for the game or the editor
      mazeRenderer - the renderer for the maze
  • Method Details

    • of

      public static InventoryPanel of(MazeRenderer render)
      static method to create a new inventoryPanel.
      Parameters:
      render - the renderer for the maze
      Returns:
      inventoryPanel
    • setMaze

      public void setMaze(Domain maze)
      set the maze to be rendered.
      Parameters:
      maze - the maze to be rendered