Uses of Interface
edu.ntnu.idi.idatt.model.board.Board
Packages that use Board
Package
Description
-
Uses of Board in edu.ntnu.idi.idatt.controller.common
Fields in edu.ntnu.idi.idatt.controller.common declared as BoardFields in edu.ntnu.idi.idatt.controller.common with type parameters of type BoardModifier and TypeFieldDescriptionMenuController.boardVariants
protected BiConsumer
<Board, List<Player>> MenuController.onStartGame
Consumer for handling the start game action, taking a Board and a List of Players.Methods in edu.ntnu.idi.idatt.controller.common that return BoardMethods in edu.ntnu.idi.idatt.controller.common with parameters of type BoardModifier and TypeMethodDescriptionabstract void
GameController.initializeBoardGame
(Board board, List<Player> players) Initializes the specificBoardGame
instance for the game.Method parameters in edu.ntnu.idi.idatt.controller.common with type arguments of type BoardModifier and TypeMethodDescriptionvoid
MenuController.setOnStartGame
(BiConsumer<Board, List<Player>> onStartGame) Sets the action to be performed when the game is started.Constructors in edu.ntnu.idi.idatt.controller.common with parameters of type BoardModifierConstructorDescriptionGameController
(GameView gameView, Board board, List<Player> players) Constructs a GameController. -
Uses of Board in edu.ntnu.idi.idatt.controller.laddergame
Methods in edu.ntnu.idi.idatt.controller.laddergame with parameters of type BoardModifier and TypeMethodDescriptionvoid
LadderGameController.initializeBoardGame
(Board board, List<Player> players) Initializes theGameController.boardGame
instance as aLadderBoardGame
.Constructors in edu.ntnu.idi.idatt.controller.laddergame with parameters of type BoardModifierConstructorDescriptionLadderGameController
(LadderGameView ladderGameView, Board board, List<Player> players) Constructs a newLadderGameController
. -
Uses of Board in edu.ntnu.idi.idatt.controller.ludo
Methods in edu.ntnu.idi.idatt.controller.ludo with parameters of type BoardModifier and TypeMethodDescriptionvoid
LudoGameController.initializeBoardGame
(Board board, List<Player> players) Initializes theGameController.boardGame
instance as aLudoBoardGame
.Constructors in edu.ntnu.idi.idatt.controller.ludo with parameters of type BoardModifierConstructorDescriptionLudoGameController
(LudoGameView ludoGameView, Board board, List<Player> players) Constructs a newLudoGameController
. -
Uses of Board in edu.ntnu.idi.idatt.factory.board
Methods in edu.ntnu.idi.idatt.factory.board that return BoardModifier and TypeMethodDescriptionBoardFactory.createBlankBoard
(int rows, int columns) Creates a blank game board with the specified number of rows and columns.LadderBoardFactory.createBlankBoard
(int rows, int columns) Creates a blank LadderGameBoard object with the given number of rows and columns.LudoBoardFactory.createBlankBoard
(int rows, int columns) Creates a blankLudoGameBoard
object with the given size and default player colors.BoardFactory.createBoard
(String variant) Creates a game board of a specific variant.LadderBoardFactory.createBoard
(String variant) Creates a LadderGameBoard object based on predefined variants stored as json files in the "resources/boards" directory.LudoBoardFactory.createBoard
(String variant) Creates aLudoGameBoard
object based on predefined variants stored as json files in the "resources/boards" directory.BoardFactory.createBoardFromFile
(String filePath) Creates a game board by loading its configuration from a file.LadderBoardFactory.createBoardFromFile
(String filePath) Creates a Board object by reading from an external file.LudoBoardFactory.createBoardFromFile
(String filePath) Creates aLudoGameBoard
object from an external file. -
Uses of Board in edu.ntnu.idi.idatt.filehandler
Methods in edu.ntnu.idi.idatt.filehandler that return BoardModifier and TypeMethodDescriptionReads a file at the given path and returns a list of Board objects.Reads a Ludo game board configuration from a JSON file at the specified path.Method parameters in edu.ntnu.idi.idatt.filehandler with type arguments of type BoardModifier and TypeMethodDescriptionvoid
Writes a list of Board objects to a JSON file at the given path.void
Writes a list of Ludo game boards to a JSON file at the specified path. -
Uses of Board in edu.ntnu.idi.idatt.model.board
Classes in edu.ntnu.idi.idatt.model.board that implement BoardModifier and TypeClassDescriptionclass
BaseBoard classclass
LadderGameBoard classclass
LudoGameBoard. -
Uses of Board in edu.ntnu.idi.idatt.model.game
Fields in edu.ntnu.idi.idatt.model.game declared as BoardMethods in edu.ntnu.idi.idatt.model.game that return BoardMethods in edu.ntnu.idi.idatt.model.game with parameters of type BoardModifier and TypeMethodDescriptionvoid
Sets the game board.void
Sets the game board.Constructors in edu.ntnu.idi.idatt.model.game with parameters of type BoardModifierConstructorDescriptionprotected
Constructor for BoardGame.LadderBoardGame
(Board board, List<Player> players, int diceCount) Constructs a LadderBoardGame.LudoBoardGame
(Board board, List<Player> players, int diceCount) Constructs a newLudoBoardGame
. -
Uses of Board in edu.ntnu.idi.idatt.model.tile
Methods in edu.ntnu.idi.idatt.model.tile with parameters of type BoardModifier and TypeMethodDescriptionvoid
Performs the action on the given player and board.void
Performs the action on the given player and board.void
Performs the action on the given player and board.void
Performs the action on the given player and board.void
Performs the action on the given player and board. -
Uses of Board in edu.ntnu.idi.idatt.model.validator
Methods in edu.ntnu.idi.idatt.model.validator with parameters of type BoardModifier and TypeMethodDescriptionstatic void
ArgumentValidator.boardGameSetBoardValidator
(Board board) Validates the arguments for the setBoard method in BoardGame class.static void
ArgumentValidator.tileActionPerformValidator
(Player player, Board board) Validates the arguments for the perform method in LadderAction class. -
Uses of Board in edu.ntnu.idi.idatt.view.common
Fields in edu.ntnu.idi.idatt.view.common declared as BoardModifier and TypeFieldDescriptionprotected Board
BoardStackPane.board
protected final Board
GameStackPane.board
protected Board
MenuView.selectedBoard
Methods in edu.ntnu.idi.idatt.view.common that return BoardModifier and TypeMethodDescriptionBoardStackPane.getBoard()
Gets the underlyingBoard
model associated with this display.Methods in edu.ntnu.idi.idatt.view.common with parameters of type BoardModifier and TypeMethodDescriptionabstract GameStackPane
GameView.createGameStackPane
(Board board, List<Player> players) Creates and returns theGameStackPane
that will display the game board and pieces.void
BoardStackPane.initialize
(Board board, String backgroundImagePath) Initializes the BoardStackPane with a specificBoard
model and a background image.void
GameView.initialize
(List<Player> players, int roundNumber, Board board) Initializes the main components of the game view: the player information box, the game board area, and the game menu/controls box.void
Sets theBoard
model for this display.abstract void
MenuView.setSelectedBoard
(Board board) Sets the currently selected board and updates the view to display its information.Constructors in edu.ntnu.idi.idatt.view.common with parameters of type BoardModifierConstructorDescriptionprotected
GameStackPane
(Board board, List<Player> players) Constructs a GameStackPane. -
Uses of Board in edu.ntnu.idi.idatt.view.laddergame
Methods in edu.ntnu.idi.idatt.view.laddergame with parameters of type BoardModifier and TypeMethodDescriptionLadderGameView.createGameStackPane
(Board board, List<Player> players) Creates and returns aLadderGameStackPane
to display the visual representation of theLadderGameBoard
, including the grid, components (ladders, slides), and player tokens.void
LadderGameBoardStackPane.initialize
(Board board, String backgroundImagePath) Initializes the board stack pane with the givenBoard
(expected to be aLadderGameBoard
) and the path to its background image.void
LadderGameMenuView.setSelectedBoard
(Board board) Sets the currently selectedBoard
to be displayed in the menu's preview area. -
Uses of Board in edu.ntnu.idi.idatt.view.ludo
Methods in edu.ntnu.idi.idatt.view.ludo with parameters of type BoardModifier and TypeMethodDescriptionLudoGameView.createGameStackPane
(Board board, List<Player> players) Creates aLudoGameStackPane
to render the Ludo game board and its interactive elements.void
LudoGameBoardStackPane.initialize
(Board board, String backgroundImagePath) Initializes the Ludo game board display.void
LudoGameMenuView.setSelectedBoard
(Board board) Sets the currently selectedBoard
to be displayed in the menu's preview area.