Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- addComponent(String, TileCoordinates) - Method in class edu.ntnu.idi.idatt.view.common.BoardStackPane
-
Adds a new
TileActionComponent
to the board at the specified coordinates. - addComponent(String, TileCoordinates) - Method in class edu.ntnu.idi.idatt.view.laddergame.LadderGameBoardStackPane
-
Adds a new visual component to the board at the specified coordinates, based on the provided component identifier.
- addComponent(String, TileCoordinates) - Method in class edu.ntnu.idi.idatt.view.ludo.LudoGameBoardStackPane
-
Placeholder method.
- addGameLogRoundBox(int) - Method in class edu.ntnu.idi.idatt.view.component.GameMenuBox
-
Adds a new round section to the game log.
- addGameLogRoundBoxEntry(String) - Method in class edu.ntnu.idi.idatt.view.component.GameMenuBox
-
Adds a text entry (log line) to the most recently added round box in the game log.
- addGamePieces(List<Player>) - Method in class edu.ntnu.idi.idatt.view.common.GameStackPane
-
Adds the visual representations (game pieces/tokens) for all players to the
GameStackPane.playersPane
. - addGamePieces(List<Player>) - Method in class edu.ntnu.idi.idatt.view.laddergame.LadderGameStackPane
-
Adds game pieces to the board for the players in the given list, and places them on the first tile of the board.
- addGamePieces(List<Player>) - Method in class edu.ntnu.idi.idatt.view.ludo.LudoGameStackPane
-
Adds the visual representations (game pieces) for each player's tokens to the board.
- addObserver(BoardGameObserver) - Method in class edu.ntnu.idi.idatt.model.game.BoardGame
-
Adds an observer to be notified of game events.
- addObserver(BoardGameObserver) - Method in interface edu.ntnu.idi.idatt.observer.BoardGameSubject
-
Adds an observer to the subject.
- addObserver(ButtonClickObserver) - Method in interface edu.ntnu.idi.idatt.observer.ButtonClickSubject
-
Adds an observer to the subject.
- addObserver(ButtonClickObserver) - Method in class edu.ntnu.idi.idatt.view.common.BoardCreatorView
-
Adds an observer to the board creator view.
- addObserver(ButtonClickObserver) - Method in class edu.ntnu.idi.idatt.view.common.GameFinishedView
- addObserver(ButtonClickObserver) - Method in class edu.ntnu.idi.idatt.view.common.GameSelectionView
-
Adds an observer to the game selection view.
- addObserver(ButtonClickObserver) - Method in class edu.ntnu.idi.idatt.view.common.GameView
-
Adds a
ButtonClickObserver
to be notified of button clicks. - addObserver(ButtonClickObserver) - Method in class edu.ntnu.idi.idatt.view.common.MenuView
-
Adds a
ButtonClickObserver
to be notified of button clicks in this menu. - addPlayerButtonsBox - Variable in class edu.ntnu.idi.idatt.view.common.MenuView
- addPlayerRow(String, Color, boolean, boolean) - Method in class edu.ntnu.idi.idatt.view.common.MenuView
-
Adds a new
MenuPlayerRow
to the player list. - addTile(Tile) - Method in class edu.ntnu.idi.idatt.model.board.BaseBoard
-
Adds a tile to the board.
- addTile(Tile) - Method in interface edu.ntnu.idi.idatt.model.board.Board
-
Adds a tile to the board.
- addToComponentList(String, Image, Runnable, int, int) - Method in class edu.ntnu.idi.idatt.view.laddergame.LadderGameBoardCreatorView
-
Adds a visual representation of a placed component to the component list panel on the right side of the view.
- allowedPlayerColors - Variable in class edu.ntnu.idi.idatt.view.common.MenuView
- allowedPlayerTokenTypes - Variable in class edu.ntnu.idi.idatt.view.common.MenuView
- AnimatedDie - Class in edu.ntnu.idi.idatt.view.component
-
AnimatedDie.
- AnimatedDie(double) - Constructor for class edu.ntnu.idi.idatt.view.component.AnimatedDie
-
Constructs an AnimatedDie with a specified size.
- animateDiceRoll(int[], Runnable) - Method in class edu.ntnu.idi.idatt.view.component.GameMenuBox
-
Triggers the dice roll animation (if enabled) or directly sets the dice values.
- applyPattern() - Method in class edu.ntnu.idi.idatt.view.common.BoardStackPane
-
Applies a specific visual pattern or layout to the board's grid cells.
- applyPattern() - Method in class edu.ntnu.idi.idatt.view.laddergame.LadderGameBoardStackPane
-
Applies the currently selected visual pattern (e.g., "Blue checker") to the grid cells.
- applyPattern() - Method in class edu.ntnu.idi.idatt.view.ludo.LudoGameBoardStackPane
-
Applies a decorative pattern to the Ludo board, drawing the start areas and the central finish area.
- AppView - Class in edu.ntnu.idi.idatt.view.app
-
AppView.
- AppView() - Constructor for class edu.ntnu.idi.idatt.view.app.AppView
-
Constructs a new AppView.
- ArgumentValidator - Class in edu.ntnu.idi.idatt.model.validator
-
Validator class for arguments passed to model constructors and methods.
B
- background - Variable in class edu.ntnu.idi.idatt.model.board.BaseBoard
- background - Variable in class edu.ntnu.idi.idatt.model.board.LadderGameBoard
- backgroundImageView - Variable in class edu.ntnu.idi.idatt.view.common.BoardStackPane
- BaseBoard - Class in edu.ntnu.idi.idatt.model.board
-
BaseBoard class
- BaseBoard(String, String, String) - Constructor for class edu.ntnu.idi.idatt.model.board.BaseBoard
-
Constructor for BaseBoard.
- board - Variable in class edu.ntnu.idi.idatt.controller.common.BoardCreatorController
- board - Variable in class edu.ntnu.idi.idatt.model.game.BoardGame
- board - Variable in class edu.ntnu.idi.idatt.view.common.BoardStackPane
- board - Variable in class edu.ntnu.idi.idatt.view.common.GameStackPane
- Board - Interface in edu.ntnu.idi.idatt.model.board
-
Board interface
- boardAddTileValidator(Tile) - Static method in class edu.ntnu.idi.idatt.model.validator.ArgumentValidator
-
Validates the arguments for the addTile method in Board class.
- BoardCreatorController - Class in edu.ntnu.idi.idatt.controller.common
-
BoardCreatorController.
- BoardCreatorController(BoardCreatorView) - Constructor for class edu.ntnu.idi.idatt.controller.common.BoardCreatorController
-
Constructs a BoardCreatorController with the specified view.
- BoardCreatorView - Class in edu.ntnu.idi.idatt.view.common
-
BoardCreatorView
- BoardCreatorView() - Constructor for class edu.ntnu.idi.idatt.view.common.BoardCreatorView
-
Constructor for BoardCreatorView.
- boardDescription - Variable in class edu.ntnu.idi.idatt.view.common.MenuView
- boardDimensions - Variable in class edu.ntnu.idi.idatt.view.common.BoardStackPane
- boardDimensions - Variable in class edu.ntnu.idi.idatt.view.common.GameStackPane
- boardFactory - Variable in class edu.ntnu.idi.idatt.controller.common.BoardCreatorController
- boardFactory - Variable in class edu.ntnu.idi.idatt.controller.common.MenuController
- BoardFactory - Interface in edu.ntnu.idi.idatt.factory.board
-
BoardFactory Interface.
- boardGame - Variable in class edu.ntnu.idi.idatt.controller.common.GameController
- BoardGame - Class in edu.ntnu.idi.idatt.model.game
-
BoardGame class
- BoardGame(Board, List<Player>, int) - Constructor for class edu.ntnu.idi.idatt.model.game.BoardGame
-
Constructor for BoardGame.
- boardGameCreateDiceValidator(int) - Static method in class edu.ntnu.idi.idatt.model.validator.ArgumentValidator
-
Validates the arguments for the createDice method in BoardGame class.
- BoardGameObserver - Interface in edu.ntnu.idi.idatt.observer
-
An interface for observers that wish to be notified about board game events.
- boardGameSetBoardValidator(Board) - Static method in class edu.ntnu.idi.idatt.model.validator.ArgumentValidator
-
Validates the arguments for the setBoard method in BoardGame class.
- boardGameSetCurrentPlayerValidator(Player) - Static method in class edu.ntnu.idi.idatt.model.validator.ArgumentValidator
-
Validates the arguments for the setCurrentPlayer method in BoardGame class.
- boardGameSetPlayersValidator(List<Player>) - Static method in class edu.ntnu.idi.idatt.model.validator.ArgumentValidator
-
Validates the arguments for the setPlayers method in the BoardGame class.
- BoardGameSubject - Interface in edu.ntnu.idi.idatt.observer
-
BoardGameSubject interface
- boardGetTileValidator(int, int) - Static method in class edu.ntnu.idi.idatt.model.validator.ArgumentValidator
-
Validates the argument for the getTile method in Board class.
- boardPane - Variable in class edu.ntnu.idi.idatt.controller.common.BoardCreatorController
- boardSelectionBox - Variable in class edu.ntnu.idi.idatt.view.common.MenuView
- boardSelectionHeader - Variable in class edu.ntnu.idi.idatt.view.common.MenuView
- boardSetBackgroundValidator(String) - Static method in class edu.ntnu.idi.idatt.model.validator.ArgumentValidator
-
Validates the arguments for the setBackground method in LadderGameBoard class.
- boardSetDescriptionValidator(String) - Static method in class edu.ntnu.idi.idatt.model.validator.ArgumentValidator
-
Validates the arguments for the setDescription method in Board class.
- boardSetnameValidator(String) - Static method in class edu.ntnu.idi.idatt.model.validator.ArgumentValidator
-
Validates the arguments for the setName method in Board class.
- boardSize - Variable in class edu.ntnu.idi.idatt.model.board.LudoGameBoard
- boardStackPane - Variable in class edu.ntnu.idi.idatt.view.common.MenuView
- BoardStackPane - Class in edu.ntnu.idi.idatt.view.common
-
BoardStackPane.
- BoardStackPane() - Constructor for class edu.ntnu.idi.idatt.view.common.BoardStackPane
-
Constructs a BoardStackPane, initializing its internal maps and visual layers (background, grid, components pane).
- boardTitle - Variable in class edu.ntnu.idi.idatt.view.common.MenuView
- boardVariants - Variable in class edu.ntnu.idi.idatt.controller.common.MenuController
- ButtonClickObserver - Interface in edu.ntnu.idi.idatt.observer
-
ButtonClickObserver interface
- ButtonClickSubject - Interface in edu.ntnu.idi.idatt.observer
-
ButtonClickSubject interface
C
- calculateHeight(double) - Method in record class edu.ntnu.idi.idatt.dto.ComponentSpec
-
Calculates the height of the component in pixels.
- calculateTileId(int, int, int) - Static method in class edu.ntnu.idi.idatt.view.util.ViewUtils
-
Calculates the tile ID for a given row and column on a board with a "snake" numbering pattern.
- calculateTranslateX(double) - Method in record class edu.ntnu.idi.idatt.dto.ComponentSpec
-
Calculates the X-axis translation needed for the component based on its width and direction.
- calculateTranslateY(double) - Method in record class edu.ntnu.idi.idatt.dto.ComponentSpec
-
Calculates the Y-axis translation needed for the component based on its height and direction.
- calculateWidth(double) - Method in record class edu.ntnu.idi.idatt.dto.ComponentSpec
-
Calculates the width of the component in pixels.
- cell() - Method in record class edu.ntnu.idi.idatt.dto.ComponentDropEventData
-
Returns the value of the
cell
record component. - cellToCoordinatesMap - Variable in class edu.ntnu.idi.idatt.view.common.BoardStackPane
- checkWinCondition() - Method in class edu.ntnu.idi.idatt.model.game.BoardGame
-
Checks if a win condition has been met.
- checkWinCondition() - Method in class edu.ntnu.idi.idatt.model.game.LudoBoardGame
-
Checks if the win condition for the Ludo game has been met.
- CIRCLE - Enum constant in enum class edu.ntnu.idi.idatt.model.player.PlayerTokenType
-
Circular token shape.
- col() - Method in record class edu.ntnu.idi.idatt.dto.TileCoordinates
-
Returns the value of the
col
record component. - ComponentDropEventData - Record Class in edu.ntnu.idi.idatt.dto
-
ComponentDropEventData.
- ComponentDropEventData(String, Rectangle) - Constructor for record class edu.ntnu.idi.idatt.dto.ComponentDropEventData
-
Creates an instance of a
ComponentDropEventData
record class. - componentIdentifier() - Method in record class edu.ntnu.idi.idatt.dto.ComponentDropEventData
-
Returns the value of the
componentIdentifier
record component. - components - Variable in class edu.ntnu.idi.idatt.view.common.BoardStackPane
- componentsPane - Variable in class edu.ntnu.idi.idatt.view.common.BoardStackPane
- ComponentSpec - Record Class in edu.ntnu.idi.idatt.dto
-
ComponentSpec.
- ComponentSpec(int, ComponentSpec.Direction, int, ComponentSpec.Direction, ComponentSpec.ComponentType) - Constructor for record class edu.ntnu.idi.idatt.dto.ComponentSpec
-
Creates an instance of a
ComponentSpec
record class. - ComponentSpec.ComponentType - Enum Class in edu.ntnu.idi.idatt.dto
-
Enum representing the type of game board component.
- ComponentSpec.Direction - Enum Class in edu.ntnu.idi.idatt.dto
-
Enum representing the direction of a component's dimension (width or height).
- convertCoordinates(int[]) - Method in class edu.ntnu.idi.idatt.view.common.GameStackPane
-
Converts row and column coordinates of a tile into pixel-based X and Y coordinates on the game board display.
- convertCoordinates(int[]) - Method in class edu.ntnu.idi.idatt.view.laddergame.LadderGameStackPane
-
Converts the coordinates from the board's coordinate system to the pane's coordinate system.
- convertCoordinates(int[]) - Method in class edu.ntnu.idi.idatt.view.ludo.LudoGameStackPane
-
Converts logical board coordinates (row, column) to screen coordinates (x, y) for the Ludo game board.
- create(double, Color, PlayerTokenType) - Static method in class edu.ntnu.idi.idatt.factory.view.PlayerTokenFactory
-
Constructor for PlayerTokenCreator class.
- createBlankBoard(int, int) - Method in interface edu.ntnu.idi.idatt.factory.board.BoardFactory
-
Creates a blank game board with the specified number of rows and columns.
- createBlankBoard(int, int) - Method in class edu.ntnu.idi.idatt.factory.board.LadderBoardFactory
-
Creates a blank LadderGameBoard object with the given number of rows and columns.
- createBlankBoard(int, int) - Method in class edu.ntnu.idi.idatt.factory.board.LudoBoardFactory
-
Creates a blank
LudoGameBoard
object with the given size and default player colors. - createBoard(String) - Method in interface edu.ntnu.idi.idatt.factory.board.BoardFactory
-
Creates a game board of a specific variant.
- createBoard(String) - Method in class edu.ntnu.idi.idatt.factory.board.LadderBoardFactory
-
Creates a LadderGameBoard object based on predefined variants stored as json files in the "resources/boards" directory.
- createBoard(String) - Method in class edu.ntnu.idi.idatt.factory.board.LudoBoardFactory
-
Creates a
LudoGameBoard
object based on predefined variants stored as json files in the "resources/boards" directory. - createBoardFromFile(String) - Method in interface edu.ntnu.idi.idatt.factory.board.BoardFactory
-
Creates a game board by loading its configuration from a file.
- createBoardFromFile(String) - Method in class edu.ntnu.idi.idatt.factory.board.LadderBoardFactory
-
Creates a Board object by reading from an external file.
- createBoardFromFile(String) - Method in class edu.ntnu.idi.idatt.factory.board.LudoBoardFactory
-
Creates a
LudoGameBoard
object from an external file. - createBoardSelectionBox() - Method in class edu.ntnu.idi.idatt.view.common.MenuView
-
Creates the board selection section of the menu, including a title, options menu (import/create), the board display/carousel, and board information (title, description).
- createBoardStackPane() - Method in class edu.ntnu.idi.idatt.view.common.BoardCreatorView
-
Creates a board stack pane.
- createBoardStackPane() - Method in class edu.ntnu.idi.idatt.view.laddergame.LadderGameBoardCreatorView
-
Creates and returns a
LadderGameBoardStackPane
instance to be used as the central area for displaying the board being created. - createBoardStackPane() - Method in class edu.ntnu.idi.idatt.view.ludo.LudoBoardCreatorView
-
Creates and returns a
LudoGameBoardStackPane
instance to be used as the central area for displaying the Ludo board being created. - createDice(int) - Method in class edu.ntnu.idi.idatt.model.game.BoardGame
-
Creates the dice to be used in the game.
- createGameMenuBox() - Method in class edu.ntnu.idi.idatt.view.common.GameView
-
Creates and configures the
GameMenuBox
with standard game actions (restart, quit, roll dice) and links them to notify observers. - createGameMenuBox() - Method in class edu.ntnu.idi.idatt.view.laddergame.LadderGameView
-
Creates and returns a
GameMenuBox
configured for a Ladder Game. - createGameStackPane(Board, List<Player>) - Method in class edu.ntnu.idi.idatt.view.common.GameView
-
Creates and returns the
GameStackPane
that will display the game board and pieces. - createGameStackPane(Board, List<Player>) - Method in class edu.ntnu.idi.idatt.view.laddergame.LadderGameView
-
Creates and returns a
LadderGameStackPane
to display the visual representation of theLadderGameBoard
, including the grid, components (ladders, slides), and player tokens. - createGameStackPane(Board, List<Player>) - Method in class edu.ntnu.idi.idatt.view.ludo.LudoGameView
-
Creates a
LudoGameStackPane
to render the Ludo game board and its interactive elements. - createHeaderBox(String) - Method in class edu.ntnu.idi.idatt.view.common.MenuView
-
Creates the header HBox for the menu view, containing a back button and the menu title.
- createInfiniteSpacer() - Method in class edu.ntnu.idi.idatt.view.common.GameView
-
Creates a
Region
that will grow to fill available space, used as a spacer in HBox or VBox layouts. - createLadderGamePlayer(String, String, PlayerTokenType, boolean) - Static method in class edu.ntnu.idi.idatt.factory.player.PlayerFactory
-
Creates a single LadderGame player with the given name and colorHex.
- createLudoPlayer(String, String, PlayerTokenType, boolean) - Static method in class edu.ntnu.idi.idatt.factory.player.PlayerFactory
-
Creates a single Ludo player with the given name and colorHex.
- createPlayersBox(List<Player>, int) - Method in class edu.ntnu.idi.idatt.view.common.GameView
-
Creates and returns the
GamePlayersBox
to display player information. - createPlayersBox(List<Player>, int) - Method in class edu.ntnu.idi.idatt.view.laddergame.LadderGameView
-
Creates and returns a
LadderGamePlayersBox
to display player information (like name, token, and current tile) and the current round number for the Ladder Game. - createPlayersBox(List<Player>, int) - Method in class edu.ntnu.idi.idatt.view.ludo.LudoGameView
-
Creates a
LudoGamePlayersBox
to display player information for the Ludo game. - createPlayerSelectionBox() - Method in class edu.ntnu.idi.idatt.view.common.MenuView
-
Creates the player selection section of the menu, including a title, options menu (import/save), the list of player rows, and buttons to add new players or bots.
- createPlayersFromFile(String) - Static method in class edu.ntnu.idi.idatt.factory.player.PlayerFactory
-
Creates a list of Player objects by reading from the given CSV file.
- createRowCell(double, double, int, int) - Method in class edu.ntnu.idi.idatt.view.common.BoardStackPane
-
Creates a single cell (typically a
StackPane
containing aRectangle
) for the board grid at the specified row and column. - createRowCell(double, double, int, int) - Method in class edu.ntnu.idi.idatt.view.laddergame.LadderGameBoardStackPane
-
Creates a single visual cell (a
StackPane
) for the grid display. - createRowCell(double, double, int, int) - Method in class edu.ntnu.idi.idatt.view.ludo.LudoGameBoardStackPane
-
Creates a single cell
StackPane
for the Ludo board grid. - createTiles(int, int) - Method in interface edu.ntnu.idi.idatt.model.board.Board
-
Creates the tiles for the board.
- createTiles(int, int) - Method in class edu.ntnu.idi.idatt.model.board.LadderGameBoard
-
Creates a list of Tile objects that are arranged in a grid pattern with alternating directions in each row.
- createTiles(int, int) - Method in class edu.ntnu.idi.idatt.model.board.LudoGameBoard
-
Creates all the
LudoTile
instances for the Ludo board based on the currentboardSize
. - currentBoardIndex - Variable in class edu.ntnu.idi.idatt.controller.common.MenuController
- currentPlayer - Variable in class edu.ntnu.idi.idatt.model.game.BoardGame
D
- DEFAULT_BOARD_INDEX - Static variable in class edu.ntnu.idi.idatt.controller.common.MenuController
- description - Variable in class edu.ntnu.idi.idatt.model.board.BaseBoard
- DIAMOND - Enum constant in enum class edu.ntnu.idi.idatt.model.player.PlayerTokenType
-
Diamond token shape.
- dice - Variable in class edu.ntnu.idi.idatt.model.game.BoardGame
- Dice - Class in edu.ntnu.idi.idatt.model.dice
-
Dice class
- Dice(int) - Constructor for class edu.ntnu.idi.idatt.model.dice.Dice
-
Constructor for Dice class.
- diceAddDiceValidator(int) - Static method in class edu.ntnu.idi.idatt.model.validator.ArgumentValidator
-
Validates the arguments for the addDice method in Dice class.
- diceGetDieValueValidator(int, int) - Static method in class edu.ntnu.idi.idatt.model.validator.ArgumentValidator
-
Validates the arguments for the getDieValue method in Dice class.
- diceRollSingleDieValidator(int, int) - Static method in class edu.ntnu.idi.idatt.model.validator.ArgumentValidator
-
Validates the arguments for the rollSingleDie method in Dice class.
- Die - Class in edu.ntnu.idi.idatt.model.dice
-
Die class
- Die() - Constructor for class edu.ntnu.idi.idatt.model.dice.Die
-
Constructor for Die class.
- dieSetValueValidator(int) - Static method in class edu.ntnu.idi.idatt.model.validator.ArgumentValidator
-
Validates the arguments for the setValue method in Die class.
- disableRollDiceButton() - Method in class edu.ntnu.idi.idatt.controller.common.GameController
-
Disables the roll dice button in the game view.
- disableRollDiceButton() - Method in class edu.ntnu.idi.idatt.view.component.GameMenuBox
-
Disables the "Roll Dice" button.
- disableStartGameButton(String) - Method in class edu.ntnu.idi.idatt.view.common.MenuView
-
Disables the "Start Game" button and sets a tooltip with the provided text.
- DOWN - Enum constant in enum class edu.ntnu.idi.idatt.dto.ComponentSpec.Direction
-
Down direction.
E
- edu.ntnu.idi.idatt - package edu.ntnu.idi.idatt
- edu.ntnu.idi.idatt.controller.common - package edu.ntnu.idi.idatt.controller.common
- edu.ntnu.idi.idatt.controller.laddergame - package edu.ntnu.idi.idatt.controller.laddergame
- edu.ntnu.idi.idatt.controller.ludo - package edu.ntnu.idi.idatt.controller.ludo
- edu.ntnu.idi.idatt.dto - package edu.ntnu.idi.idatt.dto
- edu.ntnu.idi.idatt.factory.board - package edu.ntnu.idi.idatt.factory.board
- edu.ntnu.idi.idatt.factory.player - package edu.ntnu.idi.idatt.factory.player
- edu.ntnu.idi.idatt.factory.view - package edu.ntnu.idi.idatt.factory.view
- edu.ntnu.idi.idatt.filehandler - package edu.ntnu.idi.idatt.filehandler
- edu.ntnu.idi.idatt.model.board - package edu.ntnu.idi.idatt.model.board
- edu.ntnu.idi.idatt.model.dice - package edu.ntnu.idi.idatt.model.dice
- edu.ntnu.idi.idatt.model.game - package edu.ntnu.idi.idatt.model.game
- edu.ntnu.idi.idatt.model.player - package edu.ntnu.idi.idatt.model.player
- edu.ntnu.idi.idatt.model.tile - package edu.ntnu.idi.idatt.model.tile
- edu.ntnu.idi.idatt.model.token - package edu.ntnu.idi.idatt.model.token
- edu.ntnu.idi.idatt.model.validator - package edu.ntnu.idi.idatt.model.validator
- edu.ntnu.idi.idatt.navigation - package edu.ntnu.idi.idatt.navigation
- edu.ntnu.idi.idatt.observer - package edu.ntnu.idi.idatt.observer
- edu.ntnu.idi.idatt.view.app - package edu.ntnu.idi.idatt.view.app
- edu.ntnu.idi.idatt.view.common - package edu.ntnu.idi.idatt.view.common
- edu.ntnu.idi.idatt.view.component - package edu.ntnu.idi.idatt.view.component
- edu.ntnu.idi.idatt.view.laddergame - package edu.ntnu.idi.idatt.view.laddergame
- edu.ntnu.idi.idatt.view.ludo - package edu.ntnu.idi.idatt.view.ludo
- edu.ntnu.idi.idatt.view.util - package edu.ntnu.idi.idatt.view.util
- enableRollDiceButton() - Method in class edu.ntnu.idi.idatt.controller.common.GameController
-
Enables the roll dice button in the game view.
- enableRollDiceButton() - Method in class edu.ntnu.idi.idatt.view.component.GameMenuBox
-
Enables the "Roll Dice" button.
- enableStartGameButton() - Method in class edu.ntnu.idi.idatt.view.common.MenuView
-
Enables the "Start Game" button and removes any associated tooltip.
- equals(Object) - Method in record class edu.ntnu.idi.idatt.dto.ComponentDropEventData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class edu.ntnu.idi.idatt.dto.ComponentSpec
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class edu.ntnu.idi.idatt.dto.TileCoordinates
-
Indicates whether some other object is "equal to" this one.
F
- FileHandler<T> - Interface in edu.ntnu.idi.idatt.filehandler
-
Interface for handling files.
- findCellByCoordinates(TileCoordinates) - Method in class edu.ntnu.idi.idatt.view.common.BoardStackPane
-
Finds and returns the visual grid cell (
Rectangle
) that corresponds to the givenTileCoordinates
. - FINISHED - Enum constant in enum class edu.ntnu.idi.idatt.model.token.LudoToken.TokenStatus
- fromCode(char) - Static method in enum class edu.ntnu.idi.idatt.dto.ComponentSpec.Direction
-
Converts a character code to its corresponding Direction enum.
- fromFilename(String) - Static method in record class edu.ntnu.idi.idatt.dto.ComponentSpec
-
Creates a
ComponentSpec
by parsing a filename string. - fromString(String) - Static method in enum class edu.ntnu.idi.idatt.dto.ComponentSpec.ComponentType
-
Converts a string to its corresponding ComponentType enum.
G
- Game - Interface in edu.ntnu.idi.idatt.model.game
-
Game interface
- GAME_FINISHED - Enum constant in enum class edu.ntnu.idi.idatt.navigation.ViewType
-
Represents the view displayed when a game (Ludo or Ladder Game) has finished, showing rankings and options to restart or go to the main menu.
- GAME_SELECTION - Enum constant in enum class edu.ntnu.idi.idatt.navigation.ViewType
-
The main game selection screen where users can choose a game type.
- GameController - Class in edu.ntnu.idi.idatt.controller.common
-
GameController.
- GameController(GameView, Board, List<Player>) - Constructor for class edu.ntnu.idi.idatt.controller.common.GameController
-
Constructs a GameController.
- GameFinishedController - Class in edu.ntnu.idi.idatt.controller.common
-
GameFinishedController
- GameFinishedController(GameFinishedView, List<Player>) - Constructor for class edu.ntnu.idi.idatt.controller.common.GameFinishedController
-
Constructor for GameFinishedController.
- gameFinishedParams - Variable in class edu.ntnu.idi.idatt.controller.common.GameController
- GameFinishedView - Class in edu.ntnu.idi.idatt.view.common
-
GameFinishedView
- GameFinishedView() - Constructor for class edu.ntnu.idi.idatt.view.common.GameFinishedView
-
Constructor for the GameFinishedView.
- gameMenuBox - Variable in class edu.ntnu.idi.idatt.view.common.GameView
- GameMenuBox - Class in edu.ntnu.idi.idatt.view.component
-
GameMenuBox.
- GameMenuBox(int) - Constructor for class edu.ntnu.idi.idatt.view.component.GameMenuBox
-
Constructs a GameMenuBox.
- GamePlayerRow - Class in edu.ntnu.idi.idatt.view.common
-
GamePlayerRow.
- GamePlayerRow(Player) - Constructor for class edu.ntnu.idi.idatt.view.common.GamePlayerRow
-
Constructs a GamePlayerRow for the given player.
- GamePlayersBox - Class in edu.ntnu.idi.idatt.view.common
-
GamePlayersBox.
- GamePlayersBox(List<Player>, int) - Constructor for class edu.ntnu.idi.idatt.view.common.GamePlayersBox
-
Constructs a GamePlayersBox.
- GameSelectionController - Class in edu.ntnu.idi.idatt.controller.common
-
GameSelectionController
- GameSelectionController(GameSelectionView) - Constructor for class edu.ntnu.idi.idatt.controller.common.GameSelectionController
-
Constructor for the GameSelectionController.
- GameSelectionView - Class in edu.ntnu.idi.idatt.view.common
-
GameSelectionView
- GameSelectionView() - Constructor for class edu.ntnu.idi.idatt.view.common.GameSelectionView
-
Constructor for the GameSelectionView.
- gameStackPane - Variable in class edu.ntnu.idi.idatt.view.common.GameView
- GameStackPane - Class in edu.ntnu.idi.idatt.view.common
-
GameStackPane.
- GameStackPane(Board, List<Player>) - Constructor for class edu.ntnu.idi.idatt.view.common.GameStackPane
-
Constructs a GameStackPane.
- gameView - Variable in class edu.ntnu.idi.idatt.controller.common.GameController
- GameView - Class in edu.ntnu.idi.idatt.view.common
-
GameView.
- GameView() - Constructor for class edu.ntnu.idi.idatt.view.common.GameView
-
Constructs a GameView, initializing the list for observers.
- getAnimationDuration() - Method in class edu.ntnu.idi.idatt.view.common.GameStackPane
- getBackground() - Method in class edu.ntnu.idi.idatt.model.board.BaseBoard
-
Gets the background of the board.
- getBackground() - Method in interface edu.ntnu.idi.idatt.model.board.Board
-
Gets the background of the board.
- getBackgroundComboBox() - Method in class edu.ntnu.idi.idatt.view.laddergame.LadderGameBoardCreatorView
-
Returns the ComboBox used for selecting the board's background image.
- getBackgroundImageView() - Method in class edu.ntnu.idi.idatt.view.common.BoardStackPane
-
Gets the
ImageView
used to display the board's background. - getBoard() - Method in class edu.ntnu.idi.idatt.controller.common.GameController
-
Gets the game board.
- getBoard() - Method in class edu.ntnu.idi.idatt.model.game.BoardGame
- getBoard() - Method in interface edu.ntnu.idi.idatt.model.game.Game
-
Gets the game board.
- getBoard() - Method in class edu.ntnu.idi.idatt.view.common.BoardStackPane
-
Gets the underlying
Board
model associated with this display. - getBoardDimensions() - Method in class edu.ntnu.idi.idatt.view.common.BoardStackPane
-
Gets the current dimensions (width, height) of the board area in pixels.
- getBoardSize() - Method in class edu.ntnu.idi.idatt.model.board.LudoGameBoard
-
Returns the size of the Ludo board.
- getBoardSizeSpinner() - Method in class edu.ntnu.idi.idatt.view.ludo.LudoBoardCreatorView
-
Returns the
Spinner
used for adjusting the size of the Ludo board. - getBoardStackPane() - Method in class edu.ntnu.idi.idatt.view.common.BoardCreatorView
-
Getter for the board stack pane.
- getCellToCoordinatesMap() - Method in class edu.ntnu.idi.idatt.view.common.BoardStackPane
-
Gets the map that links visual grid cells (
Rectangle
) to theirTileCoordinates
. - getColor() - Method in class edu.ntnu.idi.idatt.view.component.MenuPlayerRow
-
Gets the current
Color
selected for this player's token. - getColorHex() - Method in class edu.ntnu.idi.idatt.model.player.Player
-
Returns the color of the player in hex format.
- getColors() - Method in class edu.ntnu.idi.idatt.model.board.LudoGameBoard
-
Returns the array of
Color
s assigned to the players on this Ludo board. - getColumnsSpinner() - Method in class edu.ntnu.idi.idatt.view.laddergame.LadderGameBoardCreatorView
-
Returns the Spinner used for adjusting the number of columns on the board.
- getComponentListContent() - Method in class edu.ntnu.idi.idatt.view.laddergame.LadderGameBoardCreatorView
-
Returns the VBox container that holds the list of placed components.
- getComponents() - Method in class edu.ntnu.idi.idatt.view.common.BoardStackPane
-
Gets the map of placed
TileActionComponent
s, keyed by theirTileCoordinates
. - getComponentsPane() - Method in class edu.ntnu.idi.idatt.view.common.BoardStackPane
-
Gets the
Pane
used as a layer for displayingTileActionComponent
s. - getCoordinates() - Method in class edu.ntnu.idi.idatt.model.tile.Tile
-
Returns the coordinates of the tile.
- getCurrentPlayer() - Method in class edu.ntnu.idi.idatt.model.game.BoardGame
- getCurrentPlayer() - Method in interface edu.ntnu.idi.idatt.model.game.Game
-
Gets the current player.
- getCurrentTile() - Method in class edu.ntnu.idi.idatt.model.player.LadderGamePlayer
-
Returns the
LadderGameTile
the player is currently on. - getCurrentTile() - Method in class edu.ntnu.idi.idatt.model.token.LudoToken
-
Gets the tile this token currently occupies.
- getCurrentValue() - Method in class edu.ntnu.idi.idatt.view.component.AnimatedDie
-
Gets the current value displayed on the die.
- getDescription() - Method in class edu.ntnu.idi.idatt.model.board.BaseBoard
-
Gets the description of the board.
- getDescription() - Method in interface edu.ntnu.idi.idatt.model.board.Board
-
Gets the description of the board.
- getDescription() - Method in class edu.ntnu.idi.idatt.model.tile.LadderAction
-
Returns the description of the action.
- getDescription() - Method in class edu.ntnu.idi.idatt.model.tile.PortalAction
-
Returns the description of the action.
- getDescription() - Method in class edu.ntnu.idi.idatt.model.tile.SlideAction
-
Returns the description of the action.
- getDescription() - Method in interface edu.ntnu.idi.idatt.model.tile.TileAction
-
Returns the description of the action.
- getDescription() - Method in class edu.ntnu.idi.idatt.model.tile.WormholeAction
-
Returns the description of the action.
- getDescriptionField() - Method in class edu.ntnu.idi.idatt.view.common.BoardCreatorView
-
Getter for the description field.
- getDestinationTileId() - Method in class edu.ntnu.idi.idatt.model.tile.LadderAction
-
Returns the destination tile ID.
- getDestinationTileId() - Method in class edu.ntnu.idi.idatt.model.tile.PortalAction
-
Returns the destination tile ID.
- getDestinationTileId() - Method in class edu.ntnu.idi.idatt.model.tile.SlideAction
-
Returns the destination tile ID.
- getDestinationTileId() - Method in interface edu.ntnu.idi.idatt.model.tile.TileAction
-
Returns the destination tile ID.
- getDestinationTileId() - Method in class edu.ntnu.idi.idatt.model.tile.WormholeAction
-
Returns the destination tile ID.
- getDestinationTileId() - Method in class edu.ntnu.idi.idatt.view.component.TileActionComponent
-
Gets the ID of the destination tile for this action.
- getDice() - Method in class edu.ntnu.idi.idatt.model.game.BoardGame
- getDice() - Method in interface edu.ntnu.idi.idatt.model.game.Game
-
Gets the game dice.
- getDiceList() - Method in class edu.ntnu.idi.idatt.model.dice.Dice
-
Returns the list of dice.
- getDieValue(int) - Method in class edu.ntnu.idi.idatt.model.dice.Dice
-
Returns the value of the die at the given index.
- getGameMenuBox() - Method in class edu.ntnu.idi.idatt.view.common.GameView
-
Gets the
GameMenuBox
containing game controls. - getGameStackPane() - Method in class edu.ntnu.idi.idatt.view.common.GameView
-
Gets the
GameStackPane
used in this view. - getGridContainer() - Method in class edu.ntnu.idi.idatt.view.common.BoardStackPane
-
Gets the
VBox
container that holds the grid rows. - getIdentifier() - Method in class edu.ntnu.idi.idatt.model.tile.LadderAction
-
Returns the identifier of the action.
- getIdentifier() - Method in class edu.ntnu.idi.idatt.model.tile.PortalAction
-
Returns the identifier of the action.
- getIdentifier() - Method in class edu.ntnu.idi.idatt.model.tile.SlideAction
-
Returns the identifier of the action.
- getIdentifier() - Method in interface edu.ntnu.idi.idatt.model.tile.TileAction
-
Returns the identifier of the tile action.
- getIdentifier() - Method in class edu.ntnu.idi.idatt.model.tile.WormholeAction
-
Returns the identifier of the action.
- getImagePath() - Method in class edu.ntnu.idi.idatt.view.component.TileActionComponent
-
Gets the image path for this action component.
- getImagePath(String) - Method in class edu.ntnu.idi.idatt.view.common.BoardStackPane
-
Retrieves the image path for a given component identifier.
- getImagePath(String) - Method in class edu.ntnu.idi.idatt.view.laddergame.LadderGameBoardStackPane
-
Constructs the image file path for a given component identifier.
- getImagePath(String) - Method in class edu.ntnu.idi.idatt.view.ludo.LudoGameBoardStackPane
-
Placeholder method.
- getLandAction() - Method in class edu.ntnu.idi.idatt.model.tile.LadderGameTile
-
Returns the
TileAction
that occurs when a player lands on this tile. - getName() - Method in class edu.ntnu.idi.idatt.model.board.BaseBoard
-
Gets the name of the board.
- getName() - Method in interface edu.ntnu.idi.idatt.model.board.Board
-
Gets the name of the board.
- getName() - Method in class edu.ntnu.idi.idatt.model.player.Player
-
Returns the name of the player.
- getName() - Method in class edu.ntnu.idi.idatt.view.component.MenuPlayerRow
-
Gets the current name of the player from the text field.
- getNameField() - Method in class edu.ntnu.idi.idatt.view.common.BoardCreatorView
-
Getter for the name field.
- getNextTileId() - Method in class edu.ntnu.idi.idatt.model.tile.Tile
-
Returns the ID of the next tile.
- getNumberOfDice() - Method in class edu.ntnu.idi.idatt.model.dice.Dice
-
Returns the number of dice.
- getObservers() - Method in class edu.ntnu.idi.idatt.view.common.BoardCreatorView
-
Getter for the observers.
- getPathTiles(int, Tile, Tile) - Method in class edu.ntnu.idi.idatt.view.ludo.LudoGameStackPane
-
Determines the sequence of tiles a Ludo token must traverse to move from a start tile to an end tile, accounting for wrapping around the board and moving onto finish tracks.
- getPathTiles(Tile, Tile) - Method in class edu.ntnu.idi.idatt.view.laddergame.LadderGameStackPane
-
Gets the list of tiles between the start and end tiles.
- getPattern() - Method in class edu.ntnu.idi.idatt.model.board.LadderGameBoard
-
Gets the pattern of the board.
- getPattern() - Method in class edu.ntnu.idi.idatt.view.laddergame.LadderGameBoardStackPane
-
Gets the current visual pattern applied to the board (e.g., "Blue checker").
- getPatternComboBox() - Method in class edu.ntnu.idi.idatt.view.laddergame.LadderGameBoardCreatorView
-
Returns the ComboBox used for selecting the visual pattern applied to the board's grid.
- getPlayerFinishIndexes() - Method in class edu.ntnu.idi.idatt.model.board.LudoGameBoard
-
Returns an array containing the final (goal) tile IDs for each of the four players' finish tracks.
- getPlayerFinishStartIndexes() - Method in class edu.ntnu.idi.idatt.model.board.LudoGameBoard
-
Returns an array containing the tile IDs where each of the four players' finish tracks (home stretches) begin.
- getPlayerRows() - Method in class edu.ntnu.idi.idatt.view.common.GamePlayersBox
-
Gets the list of
GamePlayerRow
s currently in this box. - getPlayerRows() - Method in class edu.ntnu.idi.idatt.view.common.MenuView
-
Returns the list of
MenuPlayerRow
s currently displayed in the menu. - getPlayers() - Method in class edu.ntnu.idi.idatt.controller.common.GameController
-
Gets the list of players in the game.
- getPlayers() - Method in class edu.ntnu.idi.idatt.controller.common.MenuController
-
Retrieves the list of players configured in the menu.
- getPlayers() - Method in class edu.ntnu.idi.idatt.controller.laddergame.LadderGameMenuController
-
Retrieves and returns a list of
Player
objects based on the current data entered in the player configuration rows of theMenuController.menuView
. - getPlayers() - Method in class edu.ntnu.idi.idatt.controller.ludo.LudoMenuController
-
Retrieves the list of players configured in the menu, creating
LudoPlayer
instances. - getPlayers() - Method in class edu.ntnu.idi.idatt.model.game.BoardGame
- getPlayers() - Method in interface edu.ntnu.idi.idatt.model.game.Game
-
Gets all players in the game.
- getPlayersBox() - Method in class edu.ntnu.idi.idatt.view.common.GameView
-
Gets the
GamePlayersBox
used in this view. - getPlayerStartIndexes() - Method in class edu.ntnu.idi.idatt.model.board.LudoGameBoard
-
Returns an array containing the starting tile IDs for each of the four players' token areas.
- getPlayerTokenType() - Method in class edu.ntnu.idi.idatt.model.player.Player
-
Returns the type of player token to use for the player.
- getPlayerTokenType() - Method in class edu.ntnu.idi.idatt.view.component.MenuPlayerRow
-
Gets the currently selected
PlayerTokenType
for this player. - getPlayerTrackStartIndexes() - Method in class edu.ntnu.idi.idatt.model.board.LudoGameBoard
-
Returns an array containing the tile IDs where each of the four players' main tracks begin (i.e., where tokens enter the shared playing path from their start areas).
- getPortalColorNumber() - Method in class edu.ntnu.idi.idatt.view.component.TileActionComponent
-
Gets the current color number for portal components.
- getRollForAllPlayersSelected() - Method in class edu.ntnu.idi.idatt.view.component.GameMenuBox
-
Checks if the "Roll for all players" checkbox is currently selected.
- getRoundNumber() - Method in class edu.ntnu.idi.idatt.controller.common.GameController
-
Gets the current round number of the game.
- getRoundNumber() - Method in class edu.ntnu.idi.idatt.model.game.BoardGame
- getRoundNumber() - Method in interface edu.ntnu.idi.idatt.model.game.Game
-
Gets the current round number.
- getRowsAndColumns() - Method in class edu.ntnu.idi.idatt.model.board.LadderGameBoard
-
Gets the number of rows and columns in the board.
- getRowsSpinner() - Method in class edu.ntnu.idi.idatt.view.laddergame.LadderGameBoardCreatorView
-
Returns the Spinner used for adjusting the number of rows on the board.
- getStartAreaSize() - Method in class edu.ntnu.idi.idatt.model.board.LudoGameBoard
-
Returns the size (width/height) of one player's square start area.
- getStatus() - Method in class edu.ntnu.idi.idatt.model.token.LudoToken
-
Gets the current status of this token.
- getTile() - Method in class edu.ntnu.idi.idatt.view.component.TileActionComponent
-
Gets the source
Tile
for this action component. - getTile(int) - Method in class edu.ntnu.idi.idatt.model.board.BaseBoard
-
Gets a tile by its ID.
- getTile(int) - Method in interface edu.ntnu.idi.idatt.model.board.Board
-
Gets a tile by its ID.
- getTileCount() - Method in class edu.ntnu.idi.idatt.model.board.BaseBoard
-
Gets the total number of tiles on the board excluding the starting tile, which normally is outside of the board, with the id 0.
- getTileCount() - Method in interface edu.ntnu.idi.idatt.model.board.Board
-
Gets the total number of tiles on the board.
- getTileCount() - Method in class edu.ntnu.idi.idatt.model.board.LadderGameBoard
-
Gets the total number of tiles on the board excluding the starting tile, which normally is outside of the board, with the id 0.
- getTileId() - Method in class edu.ntnu.idi.idatt.model.tile.Tile
-
Returns the ID of the tile.
- getTiles() - Method in class edu.ntnu.idi.idatt.model.board.BaseBoard
-
Gets all tiles on the board.
- getTiles() - Method in interface edu.ntnu.idi.idatt.model.board.Board
-
Gets all tiles on the board.
- getToken(int) - Method in class edu.ntnu.idi.idatt.model.player.LudoPlayer
-
Retrieves a specific
LudoToken
by its ID. - getTokenId() - Method in class edu.ntnu.idi.idatt.model.token.LudoToken
-
Gets the unique ID of this token.
- getTokens() - Method in class edu.ntnu.idi.idatt.model.player.LudoPlayer
-
Returns the list of
LudoToken
s belonging to this player. - getTotalTrackTileCount() - Method in class edu.ntnu.idi.idatt.model.board.LudoGameBoard
-
Returns the total number of tiles that make up the main shared playing track (the circular path excluding individual finish tracks and start areas).
- getTotalValue() - Method in class edu.ntnu.idi.idatt.model.dice.Dice
-
Returns the total value of all the dice.
- getType() - Method in class edu.ntnu.idi.idatt.model.tile.LudoTile
-
Gets the type of this Ludo tile.
- getType() - Method in class edu.ntnu.idi.idatt.view.component.TileActionComponent
-
Gets the type of this action component.
- getValue() - Method in class edu.ntnu.idi.idatt.model.dice.Die
-
Returns the value of the die.
- getWinner() - Method in interface edu.ntnu.idi.idatt.model.game.Game
-
Checks if the game has a winner.
- getWinner() - Method in class edu.ntnu.idi.idatt.model.game.LadderBoardGame
-
Determines the winner of the game.
- getWinner() - Method in class edu.ntnu.idi.idatt.model.game.LudoBoardGame
-
Determines if there is a winner in the Ludo game.
- gridContainer - Variable in class edu.ntnu.idi.idatt.view.common.BoardStackPane
H
- handleBackToMenu() - Method in class edu.ntnu.idi.idatt.controller.common.BoardCreatorController
-
Handles the "back to menu" action.
- handleCreateBoard() - Method in class edu.ntnu.idi.idatt.view.common.MenuView
-
Handles the action to navigate to the board creation screen.
- handleImportBoard() - Method in class edu.ntnu.idi.idatt.view.common.BoardCreatorView
-
Handles the import board operation.
- handleImportBoard() - Method in class edu.ntnu.idi.idatt.view.common.MenuView
-
Handles the action to import a board from a file.
- handleImportBoard(Map<String, Object>) - Method in class edu.ntnu.idi.idatt.controller.common.BoardCreatorController
-
Handles the action to import a board using the provided parameters.
- handleImportBoard(Map<String, Object>) - Method in class edu.ntnu.idi.idatt.controller.laddergame.LadderGameBoardCreatorController
-
Handles the import of a board configuration from a file.
- handleImportBoard(Map<String, Object>) - Method in class edu.ntnu.idi.idatt.controller.ludo.LudoBoardCreatorController
-
Handles the import of a Ludo board configuration from a file.
- handleImportPlayers() - Method in class edu.ntnu.idi.idatt.view.common.MenuView
-
Handles the action to import players from a file.
- handleNextBoard() - Method in class edu.ntnu.idi.idatt.controller.common.MenuController
-
Handles the action to display the next available board variant.
- handlePreviousBoard() - Method in class edu.ntnu.idi.idatt.controller.common.MenuController
-
Handles the action to display the previous available board variant.
- handleRollDiceButtonAction() - Method in class edu.ntnu.idi.idatt.controller.common.GameController
-
Handles the action triggered by the roll dice button.
- handleRoundNumber() - Method in class edu.ntnu.idi.idatt.model.game.BoardGame
-
Handles the progression of game rounds.
- handleRoundNumber() - Method in interface edu.ntnu.idi.idatt.model.game.Game
-
Handles the round number.
- handleSaveBoard(Map<String, Object>) - Method in class edu.ntnu.idi.idatt.controller.common.BoardCreatorController
-
Handles the action to save the current board configuration using the provided parameters.
- handleSaveBoard(Map<String, Object>) - Method in class edu.ntnu.idi.idatt.controller.laddergame.LadderGameBoardCreatorController
-
Handles saving the current board configuration to a file.
- handleSaveBoard(Map<String, Object>) - Method in class edu.ntnu.idi.idatt.controller.ludo.LudoBoardCreatorController
-
Handles saving the current Ludo board configuration to a file.
- handleSaveBoardClicked() - Method in class edu.ntnu.idi.idatt.view.common.BoardCreatorView
-
Handles the save board operation.
- handleSavePlayers() - Method in class edu.ntnu.idi.idatt.view.common.MenuView
-
Handles the action to save the current player list to a file.
- handleTileAction() - Method in class edu.ntnu.idi.idatt.model.game.LadderBoardGame
-
Checks if the current player has landed on a tile with a
TileAction
(ladder or slide). - handleUpdateGrid() - Method in class edu.ntnu.idi.idatt.controller.common.BoardCreatorController
-
Handles the action to update the grid or board display.
- handleUpdateGrid() - Method in class edu.ntnu.idi.idatt.controller.laddergame.LadderGameBoardCreatorController
-
Handles the action to update the board's grid dimensions (rows and columns) based on values from the view's spinners.
- handleUpdateGrid() - Method in class edu.ntnu.idi.idatt.controller.ludo.LudoBoardCreatorController
-
Handles the action to update the Ludo board's size based on the value from the view's board size spinner.
- hashCode() - Method in record class edu.ntnu.idi.idatt.dto.ComponentDropEventData
-
Returns a hash code value for this object.
- hashCode() - Method in record class edu.ntnu.idi.idatt.dto.ComponentSpec
-
Returns a hash code value for this object.
- hashCode() - Method in record class edu.ntnu.idi.idatt.dto.TileCoordinates
-
Returns a hash code value for this object.
- heightDirection() - Method in record class edu.ntnu.idi.idatt.dto.ComponentSpec
-
Returns the value of the
heightDirection
record component. - heightTiles() - Method in record class edu.ntnu.idi.idatt.dto.ComponentSpec
-
Returns the value of the
heightTiles
record component. - HEXAGON - Enum constant in enum class edu.ntnu.idi.idatt.model.player.PlayerTokenType
-
Hexagonal token shape.
- HorizontalDivider - Class in edu.ntnu.idi.idatt.view.component
-
HorizontalDivider.
- HorizontalDivider() - Constructor for class edu.ntnu.idi.idatt.view.component.HorizontalDivider
-
Constructs a HorizontalDivider and applies the "horizontal-divider" style class.
I
- incrementRoundNumber() - Method in class edu.ntnu.idi.idatt.model.game.BoardGame
-
Increments the round number and notifies observers.
- initialize(Board, String) - Method in class edu.ntnu.idi.idatt.view.common.BoardStackPane
-
Initializes the BoardStackPane with a specific
Board
model and a background image. - initialize(Board, String) - Method in class edu.ntnu.idi.idatt.view.laddergame.LadderGameBoardStackPane
-
Initializes the board stack pane with the given
Board
(expected to be aLadderGameBoard
) and the path to its background image. - initialize(Board, String) - Method in class edu.ntnu.idi.idatt.view.ludo.LudoGameBoardStackPane
-
Initializes the Ludo game board display.
- initialize(Player) - Method in class edu.ntnu.idi.idatt.view.common.GamePlayerRow
-
Initializes the visual components of this player row.
- initialize(Player) - Method in class edu.ntnu.idi.idatt.view.laddergame.LadderGamePlayerRow
-
Initializes the visual components of the player row.
- initialize(Player) - Method in class edu.ntnu.idi.idatt.view.ludo.LudoGamePlayerRow
-
Initializes the visual components of the player row for a Ludo game.
- initialize(BoardStackPane) - Method in class edu.ntnu.idi.idatt.view.common.GameStackPane
-
Initializes the GameStackPane by setting up the provided
BoardStackPane
(which displays the board image and grid) and theGameStackPane.playersPane
where game pieces will reside. - initialize(String, List<PlayerTokenType>, List<String>, int, int) - Method in class edu.ntnu.idi.idatt.view.common.MenuView
-
Initializes the menu view with a title and configuration for player and board selection.
- initialize(List<Player>) - Method in class edu.ntnu.idi.idatt.view.common.GameFinishedView
-
Initializes the game finished view with player rankings.
- initialize(List<Player>) - Method in class edu.ntnu.idi.idatt.view.common.GamePlayersBox
-
Initializes the player box by creating and adding
GamePlayerRow
s for each player and setting up the round number display. - initialize(List<Player>) - Method in class edu.ntnu.idi.idatt.view.laddergame.LadderGamePlayersBox
-
Initializes the players box by creating all the components and adding the players to the box.
- initialize(List<Player>) - Method in class edu.ntnu.idi.idatt.view.ludo.LudoGamePlayersBox
-
Initializes the players box by creating all the components and adding the players to the box.
- initialize(List<Player>, int, Board) - Method in class edu.ntnu.idi.idatt.view.common.GameView
-
Initializes the main components of the game view: the player information box, the game board area, and the game menu/controls box.
- initialize(List<Pair<String, Image>>) - Method in class edu.ntnu.idi.idatt.view.common.GameSelectionView
-
Initializes the game selection view.
- initializeBoard() - Method in class edu.ntnu.idi.idatt.controller.common.BoardCreatorController
-
Initializes the game board.
- initializeBoard() - Method in class edu.ntnu.idi.idatt.controller.laddergame.LadderGameBoardCreatorController
-
Initializes the
BoardCreatorController.board
instance as a new, blankLadderGameBoard
using aLadderBoardFactory
with default dimensions. - initializeBoard() - Method in class edu.ntnu.idi.idatt.controller.ludo.LudoBoardCreatorController
-
Initializes the
BoardCreatorController.board
instance as a new, blankLudoGameBoard
using aLudoBoardFactory
with a default size (e.g., 15x15 or a similar standard). - initializeBoardCreatorView() - Method in class edu.ntnu.idi.idatt.controller.common.BoardCreatorController
-
Initializes the board creator view.
- initializeBoardCreatorView() - Method in class edu.ntnu.idi.idatt.controller.laddergame.LadderGameBoardCreatorController
-
Initializes the
LadderGameBoardCreatorView
. - initializeBoardCreatorView() - Method in class edu.ntnu.idi.idatt.controller.ludo.LudoBoardCreatorController
-
Initializes the
LudoBoardCreatorView
. - initializeBoardGame(Board, List<Player>) - Method in class edu.ntnu.idi.idatt.controller.common.GameController
-
Initializes the specific
BoardGame
instance for the game. - initializeBoardGame(Board, List<Player>) - Method in class edu.ntnu.idi.idatt.controller.laddergame.LadderGameController
-
Initializes the
GameController.boardGame
instance as aLadderBoardGame
. - initializeBoardGame(Board, List<Player>) - Method in class edu.ntnu.idi.idatt.controller.ludo.LudoGameController
-
Initializes the
GameController.boardGame
instance as aLudoBoardGame
. - initializeGame() - Method in class edu.ntnu.idi.idatt.model.game.BoardGame
-
Initializes the game by setting the initial state of the game.
- initializeGame() - Method in interface edu.ntnu.idi.idatt.model.game.Game
-
Initializes the game with the given players.
- initializeGame() - Method in class edu.ntnu.idi.idatt.model.game.LadderBoardGame
-
Initializes the game state.
- initializeGame() - Method in class edu.ntnu.idi.idatt.model.game.LudoBoardGame
-
Initializes the Ludo game.
- initializeGameView() - Method in class edu.ntnu.idi.idatt.controller.common.GameController
-
Initializes the
GameView
with the initial game state. - initializeMenuView() - Method in class edu.ntnu.idi.idatt.controller.common.MenuController
-
Initializes the menu view.
- initializeMenuView() - Method in class edu.ntnu.idi.idatt.controller.laddergame.LadderGameMenuController
-
Initializes the
MenuController.menuView
for the Ladder Game. - initializeMenuView() - Method in class edu.ntnu.idi.idatt.controller.ludo.LudoMenuController
-
Initializes the menu view with settings specific to Ludo.
- initializePlayersPane() - Method in class edu.ntnu.idi.idatt.view.common.GameStackPane
-
Initializes the
GameStackPane.playersPane
where player tokens/pieces will be displayed. - initializePlayersPane() - Method in class edu.ntnu.idi.idatt.view.laddergame.LadderGameStackPane
- initializePlayersPane() - Method in class edu.ntnu.idi.idatt.view.ludo.LudoGameStackPane
-
Initializes the pane where player tokens will be displayed and moved.
- initializeView(LudoGameBoard) - Method in class edu.ntnu.idi.idatt.view.ludo.LudoBoardCreatorView
-
Initializes the main view components of the Ludo board creator.
- initializeView(Map<String, String[]>, LadderGameBoard) - Method in class edu.ntnu.idi.idatt.view.laddergame.LadderGameBoardCreatorView
-
Initializes the main view components of the ladder game board creator.
- isAnimatedDiceEnabled() - Method in class edu.ntnu.idi.idatt.view.component.GameMenuBox
-
Checks if the "Animated dice" checkbox is currently selected.
- isBot() - Method in class edu.ntnu.idi.idatt.model.player.Player
-
Returns whether the player is a bot or not.
- isBot() - Method in class edu.ntnu.idi.idatt.view.component.MenuPlayerRow
-
Checks if this player is configured as a bot.
L
- LADDER - Enum constant in enum class edu.ntnu.idi.idatt.dto.ComponentSpec.ComponentType
-
Ladder component type.
- LADDER_GAME - Enum constant in enum class edu.ntnu.idi.idatt.navigation.ViewType
-
The main view for playing a Ladder game.
- LADDER_GAME_BOARD_CREATOR - Enum constant in enum class edu.ntnu.idi.idatt.navigation.ViewType
-
The view for creating or editing Ladder game boards.
- LADDER_GAME_MENU - Enum constant in enum class edu.ntnu.idi.idatt.navigation.ViewType
-
The menu screen for setting up a Ladder game.
- LadderAction - Class in edu.ntnu.idi.idatt.model.tile
-
LadderAction class
- LadderAction(String, int, String) - Constructor for class edu.ntnu.idi.idatt.model.tile.LadderAction
-
Constructor for LadderAction class.
- LadderBoardFactory - Class in edu.ntnu.idi.idatt.factory.board
-
Factory class for creating LadderGameBoard objects.
- LadderBoardFactory() - Constructor for class edu.ntnu.idi.idatt.factory.board.LadderBoardFactory
- LadderBoardGame - Class in edu.ntnu.idi.idatt.model.game
-
LadderBoardGame.
- LadderBoardGame(Board, List<Player>, int) - Constructor for class edu.ntnu.idi.idatt.model.game.LadderBoardGame
-
Constructs a LadderBoardGame.
- ladderBoardToScreenCoordinates(int[], LadderGameBoard, double, double) - Static method in class edu.ntnu.idi.idatt.view.util.ViewUtils
-
Converts ladder board coordinates (row, column) to screen coordinates (x, y).
- LadderGameBoard - Class in edu.ntnu.idi.idatt.model.board
-
LadderGameBoard class
- LadderGameBoard(String, String, int[], String, String) - Constructor for class edu.ntnu.idi.idatt.model.board.LadderGameBoard
-
Constructor for LadderGameBoard.
- ladderGameBoardCreateTilesValidator(int, int) - Static method in class edu.ntnu.idi.idatt.model.validator.ArgumentValidator
-
Validates the arguments for the createTiles method in LadderGameBoard class.
- LadderGameBoardCreatorController - Class in edu.ntnu.idi.idatt.controller.laddergame
-
LadderGameBoardCreatorController.
- LadderGameBoardCreatorController(BoardCreatorView) - Constructor for class edu.ntnu.idi.idatt.controller.laddergame.LadderGameBoardCreatorController
-
Constructs a LadderGameBoardCreatorController.
- LadderGameBoardCreatorView - Class in edu.ntnu.idi.idatt.view.laddergame
-
LadderGameBoardCreatorView.
- LadderGameBoardCreatorView() - Constructor for class edu.ntnu.idi.idatt.view.laddergame.LadderGameBoardCreatorView
-
Constructs a new
LadderGameBoardCreatorView
instance. - LadderGameBoardFileHandlerGson - Class in edu.ntnu.idi.idatt.filehandler
-
FileHandler implementation for Board objects.
- LadderGameBoardFileHandlerGson() - Constructor for class edu.ntnu.idi.idatt.filehandler.LadderGameBoardFileHandlerGson
- ladderGameBoardSetPatternValidator(String) - Static method in class edu.ntnu.idi.idatt.model.validator.ArgumentValidator
-
Validates the arguments for the setPattern method in LadderGameBoard class.
- ladderGameBoardSetRowsAndColumnsValidator(int[]) - Static method in class edu.ntnu.idi.idatt.model.validator.ArgumentValidator
-
Validates the arguments for the setRowsAndColumns method in LadderGameBoard class.
- LadderGameBoardStackPane - Class in edu.ntnu.idi.idatt.view.laddergame
-
LadderGameBoardStackPane.
- LadderGameBoardStackPane() - Constructor for class edu.ntnu.idi.idatt.view.laddergame.LadderGameBoardStackPane
-
Constructs a new
LadderGameBoardStackPane
. - LadderGameController - Class in edu.ntnu.idi.idatt.controller.laddergame
-
LadderGameController.
- LadderGameController(LadderGameView, Board, List<Player>) - Constructor for class edu.ntnu.idi.idatt.controller.laddergame.LadderGameController
-
Constructs a new
LadderGameController
. - LadderGameMenuController - Class in edu.ntnu.idi.idatt.controller.laddergame
-
LadderGameMenuController.
- LadderGameMenuController(MenuView) - Constructor for class edu.ntnu.idi.idatt.controller.laddergame.LadderGameMenuController
-
Constructs a new
LadderGameMenuController
. - LadderGameMenuView - Class in edu.ntnu.idi.idatt.view.laddergame
-
LadderGameMenuView.
- LadderGameMenuView() - Constructor for class edu.ntnu.idi.idatt.view.laddergame.LadderGameMenuView
-
Constructs a new
LadderGameMenuView
. - LadderGamePlayer - Class in edu.ntnu.idi.idatt.model.player
-
LadderGamePlayer.
- LadderGamePlayer(String, String, PlayerTokenType, boolean) - Constructor for class edu.ntnu.idi.idatt.model.player.LadderGamePlayer
-
Constructs a new
LadderGamePlayer
. - ladderGamePlayerFromCsvLine(String) - Method in class edu.ntnu.idi.idatt.filehandler.PlayerFileHandlerCsv
-
Parses a line from a CSV file, expecting
LadderGamePlayer
data format. - ladderGamePlayerPlaceOnTileValidator(Tile) - Static method in class edu.ntnu.idi.idatt.model.validator.ArgumentValidator
-
Validates the arguments for the placeOnTile method in Player class.
- LadderGamePlayerRow - Class in edu.ntnu.idi.idatt.view.laddergame
-
LadderGamePlayerRow.
- LadderGamePlayerRow(Player) - Constructor for class edu.ntnu.idi.idatt.view.laddergame.LadderGamePlayerRow
-
Constructs a
LadderGamePlayerRow
for the given player. - LadderGamePlayersBox - Class in edu.ntnu.idi.idatt.view.laddergame
-
LadderGamePlayersBox.
- LadderGamePlayersBox(List<Player>, int) - Constructor for class edu.ntnu.idi.idatt.view.laddergame.LadderGamePlayersBox
-
Constructs a
LadderGamePlayersBox
. - LadderGameStackPane - Class in edu.ntnu.idi.idatt.view.laddergame
-
GameBoardStackPane class
- LadderGameStackPane(LadderGameBoard, List<Player>) - Constructor for class edu.ntnu.idi.idatt.view.laddergame.LadderGameStackPane
-
Constructor for GameBoardStackPane class.
- LadderGameTile - Class in edu.ntnu.idi.idatt.model.tile
-
LadderGameTile.
- LadderGameTile(int, int[], int) - Constructor for class edu.ntnu.idi.idatt.model.tile.LadderGameTile
-
Constructs a
LadderGameTile
with a tile ID, coordinates, and the ID of the next tile in sequence. - LadderGameTile(int, int[], int, TileAction) - Constructor for class edu.ntnu.idi.idatt.model.tile.LadderGameTile
-
Constructs a
LadderGameTile
with a tile ID, coordinates, the ID of the next tile, and a specificTileAction
to be performed when a player lands on this tile. - LadderGameView - Class in edu.ntnu.idi.idatt.view.laddergame
-
LadderGameView.
- LadderGameView() - Constructor for class edu.ntnu.idi.idatt.view.laddergame.LadderGameView
-
Constructs a new
LadderGameView
. - LEFT - Enum constant in enum class edu.ntnu.idi.idatt.dto.ComponentSpec.Direction
-
Left direction.
- loadBoardsFromFactory() - Method in class edu.ntnu.idi.idatt.controller.common.MenuController
-
Loads available board variants using the configured
MenuController.boardFactory
. - loadBoardsFromFactory() - Method in class edu.ntnu.idi.idatt.controller.laddergame.LadderGameMenuController
-
Loads predefined ladder board variants (e.g., "Classic", "Teleporting") using the
MenuController.boardFactory
and stores them in theMenuController.boardVariants
map. - loadBoardsFromFactory() - Method in class edu.ntnu.idi.idatt.controller.ludo.LudoMenuController
-
Loads the available Ludo board variants (Classic, Small, Large) using the
LudoBoardFactory
and stores them in theboardVariants
map. - loadComponents() - Method in class edu.ntnu.idi.idatt.view.common.BoardStackPane
-
Loads visual components (e.g., ladders, slides) onto the board based on the current
BoardStackPane.board
model. - loadComponents() - Method in class edu.ntnu.idi.idatt.view.laddergame.LadderGameBoardStackPane
-
Loads
TileActionComponent
s onto the board based on theTileAction
s associated with eachLadderGameTile
in the currentLadderGameBoard
. - loadComponents() - Method in class edu.ntnu.idi.idatt.view.ludo.LudoGameBoardStackPane
-
Placeholder method.
- loadPlayersFromFile(String) - Method in class edu.ntnu.idi.idatt.controller.common.MenuController
-
Loads players from a specified file path using
PlayerFactory
and updates theMenuController.menuView
. - loadPlayersFromFile(String) - Method in class edu.ntnu.idi.idatt.controller.ludo.LudoMenuController
-
Loads player configurations from a specified file path and updates the menu view.
- logger - Static variable in class edu.ntnu.idi.idatt.controller.common.BoardCreatorController
- logger - Variable in class edu.ntnu.idi.idatt.controller.common.GameController
- logger - Variable in class edu.ntnu.idi.idatt.controller.common.MenuController
- logger - Static variable in class edu.ntnu.idi.idatt.model.game.BoardGame
- logger - Static variable in class edu.ntnu.idi.idatt.view.common.BoardCreatorView
- logger - Static variable in class edu.ntnu.idi.idatt.view.common.BoardStackPane
- logger - Static variable in class edu.ntnu.idi.idatt.view.common.MenuView
- LUDO_GAME - Enum constant in enum class edu.ntnu.idi.idatt.navigation.ViewType
-
The main view for playing a Ludo game.
- LUDO_GAME_BOARD_CREATOR - Enum constant in enum class edu.ntnu.idi.idatt.navigation.ViewType
-
The view for creating or editing Ludo game boards.
- LUDO_GAME_MENU - Enum constant in enum class edu.ntnu.idi.idatt.navigation.ViewType
-
The menu screen for setting up a Ludo game.
- LudoBoardCreatorController - Class in edu.ntnu.idi.idatt.controller.ludo
-
LudoBoardCreatorController.
- LudoBoardCreatorController(BoardCreatorView) - Constructor for class edu.ntnu.idi.idatt.controller.ludo.LudoBoardCreatorController
-
Constructs a
LudoBoardCreatorController
. - LudoBoardCreatorView - Class in edu.ntnu.idi.idatt.view.ludo
-
LudoBoardCreatorView.
- LudoBoardCreatorView() - Constructor for class edu.ntnu.idi.idatt.view.ludo.LudoBoardCreatorView
-
Constructs a new
LudoBoardCreatorView
. - LudoBoardFactory - Class in edu.ntnu.idi.idatt.factory.board
-
LudoBoardFactory.
- LudoBoardFactory() - Constructor for class edu.ntnu.idi.idatt.factory.board.LudoBoardFactory
-
Constructs a new
LudoBoardFactory
. - LudoBoardFileHandlerGson - Class in edu.ntnu.idi.idatt.filehandler
-
LudoBoardFileHandlerGson.
- LudoBoardFileHandlerGson() - Constructor for class edu.ntnu.idi.idatt.filehandler.LudoBoardFileHandlerGson
- LudoBoardGame - Class in edu.ntnu.idi.idatt.model.game
-
LudoBoardGame.
- LudoBoardGame(Board, List<Player>, int) - Constructor for class edu.ntnu.idi.idatt.model.game.LudoBoardGame
-
Constructs a new
LudoBoardGame
. - ludoBoardToScreenCoordinates(int[], LudoGameBoard, double, double) - Static method in class edu.ntnu.idi.idatt.view.util.ViewUtils
-
Converts Ludo board coordinates (row, column) to screen coordinates (x, y).
- LudoGameBoard - Class in edu.ntnu.idi.idatt.model.board
-
LudoGameBoard.
- LudoGameBoard(String, String, String, int, Color[]) - Constructor for class edu.ntnu.idi.idatt.model.board.LudoGameBoard
-
Constructs a new
LudoGameBoard
. - ludoGameBoardCreateTilesValidator(int, int) - Static method in class edu.ntnu.idi.idatt.model.validator.ArgumentValidator
-
Validates the arguments for the populateTiles method in Board class.
- ludoGameBoardSetBoardSizeValidator(int) - Static method in class edu.ntnu.idi.idatt.model.validator.ArgumentValidator
-
Validates the arguments for the setBoardSize method in LudoGameBoard class.
- ludoGameBoardSetColorsValidator(Color[]) - Static method in class edu.ntnu.idi.idatt.model.validator.ArgumentValidator
-
Validates the arguments for the setColors method in LudoGameBoard class.
- ludoGameBoardSetRowsAndColumnsValidator(int[]) - Static method in class edu.ntnu.idi.idatt.model.validator.ArgumentValidator
-
Validates the arguments for the setRowsAndColumns method in LudoGameBoard class.
- LudoGameBoardStackPane - Class in edu.ntnu.idi.idatt.view.ludo
-
LudoGameBoardStackPane.
- LudoGameBoardStackPane() - Constructor for class edu.ntnu.idi.idatt.view.ludo.LudoGameBoardStackPane
-
Constructs a new
LudoGameBoardStackPane
. - LudoGameController - Class in edu.ntnu.idi.idatt.controller.ludo
-
LudoGameController.
- LudoGameController(LudoGameView, Board, List<Player>) - Constructor for class edu.ntnu.idi.idatt.controller.ludo.LudoGameController
-
Constructs a new
LudoGameController
. - LudoGameMenuView - Class in edu.ntnu.idi.idatt.view.ludo
-
LudoGameMenuView.
- LudoGameMenuView() - Constructor for class edu.ntnu.idi.idatt.view.ludo.LudoGameMenuView
-
Constructs a new
LudoGameMenuView
. - LudoGamePlayerRow - Class in edu.ntnu.idi.idatt.view.ludo
-
LudoGamePlayerRow.
- LudoGamePlayerRow(Player) - Constructor for class edu.ntnu.idi.idatt.view.ludo.LudoGamePlayerRow
-
Constructs a
LudoGamePlayerRow
for the given player. - LudoGamePlayersBox - Class in edu.ntnu.idi.idatt.view.ludo
-
LudoGamePlayersBox.
- LudoGamePlayersBox(List<Player>, int) - Constructor for class edu.ntnu.idi.idatt.view.ludo.LudoGamePlayersBox
-
Constructs a
LudoGamePlayersBox
with the given list of players and initial round number. - LudoGameStackPane - Class in edu.ntnu.idi.idatt.view.ludo
-
LudoGameStackPane.
- LudoGameStackPane(LudoGameBoard, List<Player>) - Constructor for class edu.ntnu.idi.idatt.view.ludo.LudoGameStackPane
-
Constructs a
LudoGameStackPane
for the given Ludo game board and list of players. - LudoGameView - Class in edu.ntnu.idi.idatt.view.ludo
-
LudoGameView.
- LudoGameView() - Constructor for class edu.ntnu.idi.idatt.view.ludo.LudoGameView
-
Constructs a new
LudoGameView
. - LudoMenuController - Class in edu.ntnu.idi.idatt.controller.ludo
-
LudoMenuController.
- LudoMenuController(MenuView) - Constructor for class edu.ntnu.idi.idatt.controller.ludo.LudoMenuController
-
Constructs a
LudoMenuController
with the specified menu view. - LudoPlayer - Class in edu.ntnu.idi.idatt.model.player
-
LudoPlayer.
- LudoPlayer(String, String, PlayerTokenType, boolean) - Constructor for class edu.ntnu.idi.idatt.model.player.LudoPlayer
-
Constructs a
LudoPlayer
with the specified name, color, token type, and bot status. - ludoPlayerFromCsvLine(String) - Method in class edu.ntnu.idi.idatt.filehandler.PlayerFileHandlerCsv
-
Parses a line from a CSV file, expecting
LudoPlayer
data format. - ludoPlayerMoveTokenValidator(int, Tile, LudoToken.TokenStatus) - Static method in class edu.ntnu.idi.idatt.model.validator.ArgumentValidator
-
Validates arguments for the moveToken method in LudoPlayer class.
- LudoTile - Class in edu.ntnu.idi.idatt.model.tile
-
LudoTile.
- LudoTile(int, int[], int, String) - Constructor for class edu.ntnu.idi.idatt.model.tile.LudoTile
-
Constructs a
LudoTile
with the specified properties. - LudoToken - Class in edu.ntnu.idi.idatt.model.token
-
LudoToken.
- LudoToken(int) - Constructor for class edu.ntnu.idi.idatt.model.token.LudoToken
-
Constructs a
LudoToken
with the given ID. - LudoToken.TokenStatus - Enum Class in edu.ntnu.idi.idatt.model.token
-
Enum representing the possible statuses of a
LudoToken
.
M
- main(String[]) - Static method in class edu.ntnu.idi.idatt.MainApp
-
The main method, which serves as the entry point for the Java application.
- MainApp - Class in edu.ntnu.idi.idatt
-
MainApp.
- MainApp() - Constructor for class edu.ntnu.idi.idatt.MainApp
- mainMenuPlayerRows - Variable in class edu.ntnu.idi.idatt.view.common.MenuView
- maximumPlayers - Variable in class edu.ntnu.idi.idatt.view.common.MenuView
- MenuController - Class in edu.ntnu.idi.idatt.controller.common
-
MenuController.
- MenuController(MenuView) - Constructor for class edu.ntnu.idi.idatt.controller.common.MenuController
-
Constructs a MenuController with the specified menu view.
- MenuPlayerRow - Class in edu.ntnu.idi.idatt.view.component
-
MenuPlayerRow.
- MenuPlayerRow(String, Color, PlayerTokenType, List<PlayerTokenType>, List<String>, boolean, boolean) - Constructor for class edu.ntnu.idi.idatt.view.component.MenuPlayerRow
-
Constructs a MenuPlayerRow.
- menuView - Variable in class edu.ntnu.idi.idatt.controller.common.MenuController
- MenuView - Class in edu.ntnu.idi.idatt.view.common
-
MenuView.
- MenuView(BoardStackPane) - Constructor for class edu.ntnu.idi.idatt.view.common.MenuView
-
Constructs a MenuView.
- minimumPlayers - Variable in class edu.ntnu.idi.idatt.view.common.MenuView
- movePlayer(int) - Method in class edu.ntnu.idi.idatt.model.game.LadderBoardGame
-
Moves the current player based on the provided dice roll value.
- movePlayer(Player, Tile, boolean, Runnable) - Method in class edu.ntnu.idi.idatt.view.laddergame.LadderGameStackPane
-
Moves the player to the new tile, with an optional straight line option to allow for a tile action animation.
- moveToken(int) - Method in class edu.ntnu.idi.idatt.model.game.LudoBoardGame
-
Moves a
LudoToken
of the current player by the given dice roll. - moveToken(int, Tile, LudoToken.TokenStatus) - Method in class edu.ntnu.idi.idatt.model.player.LudoPlayer
-
Moves the token with the given id to a new tile and updates its status.
- moveToken(LudoToken, Tile, Tile, boolean, Runnable) - Method in class edu.ntnu.idi.idatt.view.ludo.LudoGameStackPane
-
Animates the movement of a Ludo token from an old tile to a new tile on the game board.
- moveTokenToStartArea(Player, LudoToken) - Method in class edu.ntnu.idi.idatt.view.ludo.LudoGameStackPane
-
Animates the movement of a captured Ludo token back to its start area.
N
- name - Variable in class edu.ntnu.idi.idatt.model.board.BaseBoard
- navigateTo(ViewType) - Method in class edu.ntnu.idi.idatt.navigation.ViewNavigator
-
Navigates to the specified
ViewType
without any parameters. - navigateTo(ViewType, Map<String, Object>) - Method in class edu.ntnu.idi.idatt.navigation.ViewNavigator
-
Navigates to the specified
ViewType
, creating and displaying the corresponding view in theViewNavigator.appView
. - navigateToGameFinished(Map<String, Object>) - Method in class edu.ntnu.idi.idatt.controller.common.GameController
-
Navigates to the game finished view.
- NOT_RELEASED - Enum constant in enum class edu.ntnu.idi.idatt.model.token.LudoToken.TokenStatus
- notifyCurrentPlayerChanged(Player) - Method in class edu.ntnu.idi.idatt.model.game.BoardGame
-
Notifies all registered observers that the current player has changed.
- notifyCurrentPlayerChanged(Player) - Method in interface edu.ntnu.idi.idatt.observer.BoardGameSubject
-
Notifies the observers that the current player has changed.
- notifyGameFinished(Player) - Method in class edu.ntnu.idi.idatt.model.game.BoardGame
-
Notifies all registered observers that the game has finished.
- notifyGameFinished(Player) - Method in interface edu.ntnu.idi.idatt.observer.BoardGameSubject
-
Notifies the observers that the game has finished.
- notifyObservers(String) - Method in interface edu.ntnu.idi.idatt.observer.ButtonClickSubject
-
Notifies all observers.
- notifyObservers(String) - Method in class edu.ntnu.idi.idatt.view.common.BoardCreatorView
-
Notifies all observers of a button click.
- notifyObservers(String) - Method in class edu.ntnu.idi.idatt.view.common.GameFinishedView
- notifyObservers(String) - Method in class edu.ntnu.idi.idatt.view.common.GameSelectionView
-
Notifies all observers of a button click.
- notifyObservers(String) - Method in class edu.ntnu.idi.idatt.view.common.GameView
-
Notifies all registered observers of a button click event.
- notifyObservers(String) - Method in class edu.ntnu.idi.idatt.view.common.MenuView
-
Notifies all registered observers of a button click event.
- notifyObserversWithParams(String, Map<String, Object>) - Method in interface edu.ntnu.idi.idatt.observer.ButtonClickSubject
-
Notifies all observers, with a map of parameters.
- notifyObserversWithParams(String, Map<String, Object>) - Method in class edu.ntnu.idi.idatt.view.common.BoardCreatorView
-
Notifies all observers of a button click with parameters.
- notifyObserversWithParams(String, Map<String, Object>) - Method in class edu.ntnu.idi.idatt.view.common.GameFinishedView
- notifyObserversWithParams(String, Map<String, Object>) - Method in class edu.ntnu.idi.idatt.view.common.GameSelectionView
-
Notifies all observers of a button click with parameters.
- notifyObserversWithParams(String, Map<String, Object>) - Method in class edu.ntnu.idi.idatt.view.common.GameView
-
Notifies observers of a button click event with parameters.
- notifyObserversWithParams(String, Map<String, Object>) - Method in class edu.ntnu.idi.idatt.view.common.MenuView
-
Notifies all registered observers of a button click event that includes parameters.
- notifyRoundNumberIncremented(int) - Method in class edu.ntnu.idi.idatt.model.game.BoardGame
-
Notifies all registered observers that the round number has incremented.
- notifyRoundNumberIncremented(int) - Method in interface edu.ntnu.idi.idatt.observer.BoardGameSubject
-
Notifies the observers that the round number has incremented.
- notifyTileActionPerformed(Player, TileAction) - Method in class edu.ntnu.idi.idatt.model.game.LadderBoardGame
-
Notifies registered observers (specifically
LadderGameController
instances) that a tile action has been performed.
O
- observers - Variable in class edu.ntnu.idi.idatt.model.game.BoardGame
- observers - Variable in class edu.ntnu.idi.idatt.view.common.BoardCreatorView
- observers - Variable in class edu.ntnu.idi.idatt.view.common.GameView
- observers - Variable in class edu.ntnu.idi.idatt.view.common.MenuView
- onBackToGameSelection - Variable in class edu.ntnu.idi.idatt.controller.common.MenuController
-
Runnable action for navigating back to the game selection screen.
- onBackToMenu - Variable in class edu.ntnu.idi.idatt.controller.common.BoardCreatorController
-
Runnable action to execute when the "back to menu" event is triggered.
- onButtonClicked(String) - Method in class edu.ntnu.idi.idatt.controller.common.BoardCreatorController
-
Handles button click events without parameters.
- onButtonClicked(String) - Method in class edu.ntnu.idi.idatt.controller.common.GameController
-
Handles button click events without parameters from the
GameView
. - onButtonClicked(String) - Method in class edu.ntnu.idi.idatt.controller.common.GameFinishedController
-
Handles button click events from the
GameFinishedView
. - onButtonClicked(String) - Method in class edu.ntnu.idi.idatt.controller.common.GameSelectionController
-
Handles the button click event.
- onButtonClicked(String) - Method in class edu.ntnu.idi.idatt.controller.common.MenuController
-
Handles button click events without parameters from the
MenuView
. - onButtonClicked(String) - Method in class edu.ntnu.idi.idatt.controller.laddergame.LadderGameBoardCreatorController
-
Handles button click events from the
LadderGameBoardCreatorView
. - onButtonClicked(String) - Method in class edu.ntnu.idi.idatt.controller.laddergame.LadderGameController
-
Handles button click events from the
LadderGameView
. - onButtonClicked(String) - Method in class edu.ntnu.idi.idatt.controller.ludo.LudoGameController
-
Handles button click events from the
LudoGameView
. - onButtonClicked(String) - Method in class edu.ntnu.idi.idatt.navigation.ViewNavigator
-
Handles button click events without parameters.
- onButtonClicked(String) - Method in interface edu.ntnu.idi.idatt.observer.ButtonClickObserver
-
Handles button click events.
- onButtonClickedWithParams(String, Map<String, Object>) - Method in class edu.ntnu.idi.idatt.controller.common.BoardCreatorController
-
Handles button click events with parameters.
- onButtonClickedWithParams(String, Map<String, Object>) - Method in class edu.ntnu.idi.idatt.controller.common.GameController
-
Handles button click events with parameters from the
GameView
. - onButtonClickedWithParams(String, Map<String, Object>) - Method in class edu.ntnu.idi.idatt.controller.common.GameFinishedController
-
Handles button click events with parameters.
- onButtonClickedWithParams(String, Map<String, Object>) - Method in class edu.ntnu.idi.idatt.controller.common.GameSelectionController
-
Handles the button click event with parameters.
- onButtonClickedWithParams(String, Map<String, Object>) - Method in class edu.ntnu.idi.idatt.controller.common.MenuController
-
Handles button click events with parameters from the
MenuView
. - onButtonClickedWithParams(String, Map<String, Object>) - Method in class edu.ntnu.idi.idatt.controller.laddergame.LadderGameController
-
Handles button click events that may include parameters.
- onButtonClickedWithParams(String, Map<String, Object>) - Method in class edu.ntnu.idi.idatt.controller.ludo.LudoGameController
-
Handles button click events that may include parameters.
- onButtonClickedWithParams(String, Map<String, Object>) - Method in class edu.ntnu.idi.idatt.navigation.ViewNavigator
-
Handles button click events with parameters.
- onButtonClickedWithParams(String, Map<String, Object>) - Method in interface edu.ntnu.idi.idatt.observer.ButtonClickObserver
-
Handles button click events with parameters.
- onComponentDropped - Variable in class edu.ntnu.idi.idatt.view.common.BoardStackPane
-
Consumer for handling events when a component is dropped onto the board.
- onCreateBoard - Variable in class edu.ntnu.idi.idatt.controller.common.MenuController
-
Runnable action for navigating to the board creation screen.
- onCurrentPlayerChanged(Player) - Method in class edu.ntnu.idi.idatt.controller.common.GameController
-
Called when the current player in the
BoardGame
model changes. - onCurrentPlayerChanged(Player) - Method in class edu.ntnu.idi.idatt.controller.laddergame.LadderGameController
-
Handles the
currentPlayerChanged
event from theLadderBoardGame
model. - onCurrentPlayerChanged(Player) - Method in class edu.ntnu.idi.idatt.controller.ludo.LudoGameController
-
Handles the
currentPlayerChanged
event from theLudoBoardGame
model. - onCurrentPlayerChanged(Player) - Method in interface edu.ntnu.idi.idatt.observer.BoardGameObserver
-
Called when the current player changes.
- onGameFinished(Player) - Method in class edu.ntnu.idi.idatt.controller.common.GameController
-
Called when the
BoardGame
model signals that the game has finished. - onGameFinished(Player) - Method in class edu.ntnu.idi.idatt.controller.laddergame.LadderGameController
-
Handles the
gameFinished
event from theLadderBoardGame
model. - onGameFinished(Player) - Method in class edu.ntnu.idi.idatt.controller.ludo.LudoGameController
-
Handles the
gameFinished
event from theLudoBoardGame
model. - onGameFinished(Player) - Method in interface edu.ntnu.idi.idatt.observer.BoardGameObserver
-
Called when the game has finished.
- onNavigateToGameFinished - Variable in class edu.ntnu.idi.idatt.controller.common.GameController
-
Consumer action to execute when the game is finished.
- onPlayerMoved(Player, int, int) - Method in class edu.ntnu.idi.idatt.controller.laddergame.LadderGameController
-
Handles the
playerMoved
event from theLadderBoardGame
model. - onQuitGame - Variable in class edu.ntnu.idi.idatt.controller.common.GameController
-
Runnable action to execute when the game is quit.
- onRemoveComponentsOutsideGrid - Variable in class edu.ntnu.idi.idatt.view.common.BoardStackPane
-
Runnable action for removing components that are placed outside the valid grid area.
- onRoundNumberIncremented(int) - Method in class edu.ntnu.idi.idatt.controller.common.GameController
-
Called when the round number in the
BoardGame
model is incremented. - onRoundNumberIncremented(int) - Method in class edu.ntnu.idi.idatt.controller.laddergame.LadderGameController
-
Handles the
roundNumberIncremented
event from theLadderBoardGame
model. - onRoundNumberIncremented(int) - Method in class edu.ntnu.idi.idatt.controller.ludo.LudoGameController
-
Handles the
roundNumberIncremented
event from theLudoBoardGame
model. - onRoundNumberIncremented(int) - Method in interface edu.ntnu.idi.idatt.observer.BoardGameObserver
-
Called when the round number has been incremented.
- onStartGame - Variable in class edu.ntnu.idi.idatt.controller.common.MenuController
-
Consumer for handling the start game action, taking a Board and a List of Players.
- onTileActionPerformed(Player, TileAction) - Method in class edu.ntnu.idi.idatt.controller.laddergame.LadderGameController
-
Handles the
tileActionPerformed
event from theLadderBoardGame
model. - onTokenCaptured(Player, LudoToken, int) - Method in class edu.ntnu.idi.idatt.controller.ludo.LudoGameController
-
Handles the
tokenCaptured
event from theLudoBoardGame
model. - onTokenFinished(Player, LudoToken) - Method in class edu.ntnu.idi.idatt.controller.ludo.LudoGameController
-
Handles the
tokenFinished
event from theLudoBoardGame
model. - onTokenMoved(Player, LudoToken, int, int, int) - Method in class edu.ntnu.idi.idatt.controller.ludo.LudoGameController
-
Handles the
tokenMoved
event from theLudoBoardGame
model. - onTokenReleased(Player, int, int) - Method in class edu.ntnu.idi.idatt.controller.ludo.LudoGameController
-
Handles the
tokenReleased
event from theLudoBoardGame
model. - onTurnSkipped(Player, int) - Method in class edu.ntnu.idi.idatt.controller.ludo.LudoGameController
-
Handles the
turnSkipped
event from theLudoBoardGame
model.
P
- pattern - Variable in class edu.ntnu.idi.idatt.model.board.LadderGameBoard
- perform(Player, Board) - Method in class edu.ntnu.idi.idatt.model.tile.LadderAction
-
Performs the action on the given player and board.
- perform(Player, Board) - Method in class edu.ntnu.idi.idatt.model.tile.PortalAction
-
Performs the action on the given player and board.
- perform(Player, Board) - Method in class edu.ntnu.idi.idatt.model.tile.SlideAction
-
Performs the action on the given player and board.
- perform(Player, Board) - Method in interface edu.ntnu.idi.idatt.model.tile.TileAction
-
Performs the action on the given player and board.
- perform(Player, Board) - Method in class edu.ntnu.idi.idatt.model.tile.WormholeAction
-
Performs the action on the given player and board.
- performPlayerTurn() - Method in class edu.ntnu.idi.idatt.controller.common.GameController
-
Executes a single turn for the current player.
- performPlayerTurn() - Method in class edu.ntnu.idi.idatt.controller.laddergame.LadderGameController
-
Executes a single turn for the current player in the
LadderBoardGame
. - performPlayerTurn() - Method in class edu.ntnu.idi.idatt.controller.ludo.LudoGameController
-
Executes a single turn for the current player in the
LudoBoardGame
. - performPlayerTurn(int) - Method in class edu.ntnu.idi.idatt.model.game.LadderBoardGame
-
Performs a complete turn for the current player based on a dice roll.
- performPlayerTurn(int) - Method in class edu.ntnu.idi.idatt.model.game.LudoBoardGame
-
Performs a turn for the current player based on the given dice roll.
- performPlayerTurnForAllPlayers() - Method in class edu.ntnu.idi.idatt.controller.common.GameController
-
Executes a full turn for all players in the game sequentially.
- performPlayerTurnForAllPlayers() - Method in class edu.ntnu.idi.idatt.controller.laddergame.LadderGameController
-
Performs turns for all players sequentially until it is the first player's turn again.
- performPlayerTurnForAllPlayers() - Method in class edu.ntnu.idi.idatt.controller.ludo.LudoGameController
-
Performs turns for all players sequentially until it is the first player's turn again.
- placeOnTile(Tile) - Method in class edu.ntnu.idi.idatt.model.player.LadderGamePlayer
-
Places the player on the specified
Tile
. - Player - Class in edu.ntnu.idi.idatt.model.player
-
Player class
- Player(String, String, PlayerTokenType, boolean) - Constructor for class edu.ntnu.idi.idatt.model.player.Player
-
Constructor for Player class.
- PlayerFactory - Class in edu.ntnu.idi.idatt.factory.player
-
Factory class for creating Player objects.
- PlayerFileHandlerCsv - Class in edu.ntnu.idi.idatt.filehandler
-
PlayerFileHandlerCsv.
- PlayerFileHandlerCsv() - Constructor for class edu.ntnu.idi.idatt.filehandler.PlayerFileHandlerCsv
- playerListBox - Variable in class edu.ntnu.idi.idatt.view.common.MenuView
- players - Variable in class edu.ntnu.idi.idatt.model.game.BoardGame
- players - Variable in class edu.ntnu.idi.idatt.view.common.GameStackPane
- playersBox - Variable in class edu.ntnu.idi.idatt.view.common.GameView
- playersBoxRows - Variable in class edu.ntnu.idi.idatt.view.common.GamePlayersBox
- playerSelectionBox - Variable in class edu.ntnu.idi.idatt.view.common.MenuView
- playerSelectionHeader - Variable in class edu.ntnu.idi.idatt.view.common.MenuView
- playerSetColorHexValidator(String) - Static method in class edu.ntnu.idi.idatt.model.validator.ArgumentValidator
-
Validates the arguments for the setColorHex method in Player class.
- playerSetNameValidator(String) - Static method in class edu.ntnu.idi.idatt.model.validator.ArgumentValidator
-
Validates the arguments for the setName method in Player class.
- playerSetPlayerTokenTypeValidator(PlayerTokenType) - Static method in class edu.ntnu.idi.idatt.model.validator.ArgumentValidator
-
Validates the arguments for the setPlayerTokenType method in Player class.
- playersPane - Variable in class edu.ntnu.idi.idatt.view.common.GameStackPane
- playerTile - Variable in class edu.ntnu.idi.idatt.view.common.GamePlayerRow
- playerTileMap - Variable in class edu.ntnu.idi.idatt.view.laddergame.LadderGameStackPane
- PlayerTokenFactory - Class in edu.ntnu.idi.idatt.factory.view
-
PlayerTokenCreator class
- playerTokenMap - Variable in class edu.ntnu.idi.idatt.view.laddergame.LadderGameStackPane
- PlayerTokenType - Enum Class in edu.ntnu.idi.idatt.model.player
-
PlayerTokenType.
- PORTAL - Enum constant in enum class edu.ntnu.idi.idatt.dto.ComponentSpec.ComponentType
-
Portal component type.
- PortalAction - Class in edu.ntnu.idi.idatt.model.tile
-
PortalAction class
- PortalAction(String, int, String) - Constructor for class edu.ntnu.idi.idatt.model.tile.PortalAction
-
Constructor for PortalAction class.
Q
- quitGame() - Method in class edu.ntnu.idi.idatt.controller.common.GameController
-
Executes the quit game action, if one has been set.
R
- randomPortalDestination(int, int, List<Integer>) - Static method in class edu.ntnu.idi.idatt.view.util.ViewUtils
-
Generates a random destination tile ID for a portal (e.g., a snake or ladder).
- readFile(String) - Method in interface edu.ntnu.idi.idatt.filehandler.FileHandler
-
Reads the contents of a file and returns the file contents.
- readFile(String) - Method in class edu.ntnu.idi.idatt.filehandler.LadderGameBoardFileHandlerGson
-
Reads a file at the given path and returns a list of Board objects.
- readFile(String) - Method in class edu.ntnu.idi.idatt.filehandler.LudoBoardFileHandlerGson
-
Reads a Ludo game board configuration from a JSON file at the specified path.
- readFile(String) - Method in class edu.ntnu.idi.idatt.filehandler.PlayerFileHandlerCsv
-
Reads a list of
Player
objects from a CSV file at the specified path. - RELEASED - Enum constant in enum class edu.ntnu.idi.idatt.model.token.LudoToken.TokenStatus
- releaseToken(LudoPlayer, int) - Method in class edu.ntnu.idi.idatt.view.ludo.LudoGameStackPane
-
Animates the movement of a player's token from its start area to its designated start tile on the main track.
- removeComponent(TileCoordinates) - Method in class edu.ntnu.idi.idatt.view.common.BoardStackPane
-
Removes a
TileActionComponent
from the board at the specified coordinates. - removeComponentsOutsideGrid() - Method in class edu.ntnu.idi.idatt.controller.laddergame.LadderGameBoardCreatorController
-
Removes components from the board model and view if their origin or calculated destination falls outside the current grid boundaries (e.g., after grid dimensions are changed).
- removeFocusedPlayer() - Method in class edu.ntnu.idi.idatt.view.common.GamePlayersBox
-
Removes the visual focus style from all player rows in this box.
- removeObserver(BoardGameObserver) - Method in class edu.ntnu.idi.idatt.model.game.BoardGame
-
Removes an observer from the list of observers.
- removeObserver(BoardGameObserver) - Method in interface edu.ntnu.idi.idatt.observer.BoardGameSubject
-
Removes an observer from the subject.
- removeObserver(ButtonClickObserver) - Method in interface edu.ntnu.idi.idatt.observer.ButtonClickSubject
-
Removes an observer from the subject.
- removeObserver(ButtonClickObserver) - Method in class edu.ntnu.idi.idatt.view.common.BoardCreatorView
-
Removes an observer from the board creator view.
- removeObserver(ButtonClickObserver) - Method in class edu.ntnu.idi.idatt.view.common.GameFinishedView
- removeObserver(ButtonClickObserver) - Method in class edu.ntnu.idi.idatt.view.common.GameSelectionView
-
Removes an observer from the game selection view.
- removeObserver(ButtonClickObserver) - Method in class edu.ntnu.idi.idatt.view.common.GameView
-
Removes a
ButtonClickObserver
. - removeObserver(ButtonClickObserver) - Method in class edu.ntnu.idi.idatt.view.common.MenuView
-
Removes a
ButtonClickObserver
from this menu. - removePlayerRow(MenuPlayerRow) - Method in class edu.ntnu.idi.idatt.view.common.MenuView
-
Removes the specified
MenuPlayerRow
from the player list. - reset() - Method in class edu.ntnu.idi.idatt.view.common.BoardStackPane
-
Resets the BoardStackPane by clearing all internal maps (cells, components) and removing children from the grid and components panes.
- restartGame() - Method in class edu.ntnu.idi.idatt.controller.common.GameController
-
Restarts the current game.
- restartGame() - Method in class edu.ntnu.idi.idatt.controller.laddergame.LadderGameController
-
Restarts the current game.
- restartGame() - Method in class edu.ntnu.idi.idatt.controller.ludo.LudoGameController
-
Restarts the current Ludo game.
- RIGHT - Enum constant in enum class edu.ntnu.idi.idatt.dto.ComponentSpec.Direction
-
Right direction.
- roll() - Method in class edu.ntnu.idi.idatt.model.dice.Die
-
Rolls the die.
- roll(int, Runnable) - Method in class edu.ntnu.idi.idatt.view.component.AnimatedDie
-
Initiates a roll animation for the die.
- rollDice() - Method in class edu.ntnu.idi.idatt.model.dice.Dice
-
Rolls all the dice in the list.
- rollDice() - Method in class edu.ntnu.idi.idatt.model.game.LadderBoardGame
-
Rolls all dice in the game and returns their total value.
- rollDice() - Method in class edu.ntnu.idi.idatt.model.game.LudoBoardGame
-
Rolls the game's dice (typically one die for Ludo) and returns the total value.
- rollSingleDie(int) - Method in class edu.ntnu.idi.idatt.model.dice.Dice
-
Rolls a single die at the given index.
- ROUND_NUMBER_TEXT - Static variable in class edu.ntnu.idi.idatt.view.common.GamePlayersBox
- roundNumber - Variable in class edu.ntnu.idi.idatt.model.game.BoardGame
- roundNumberText - Variable in class edu.ntnu.idi.idatt.view.common.GamePlayersBox
- row() - Method in record class edu.ntnu.idi.idatt.dto.TileCoordinates
-
Returns the value of the
row
record component. - rowsAndColumns - Variable in class edu.ntnu.idi.idatt.model.board.LadderGameBoard
S
- savePlayersToFile(String) - Method in class edu.ntnu.idi.idatt.controller.common.MenuController
-
Saves the current list of players (obtained via
MenuController.getPlayers()
) to a specified file path using aPlayerFileHandlerCsv
. - selectedBoard - Variable in class edu.ntnu.idi.idatt.view.common.MenuView
- setBackground(String) - Method in class edu.ntnu.idi.idatt.model.board.BaseBoard
-
Sets the background of the board.
- setBackground(String) - Method in interface edu.ntnu.idi.idatt.model.board.Board
-
Sets the background of the board.
- setBackground(String) - Method in class edu.ntnu.idi.idatt.view.common.BoardStackPane
-
Sets the background image for the board.
- setBoard(Board) - Method in class edu.ntnu.idi.idatt.model.game.BoardGame
-
Sets the game board.
- setBoard(Board) - Method in interface edu.ntnu.idi.idatt.model.game.Game
-
Sets the game board.
- setBoard(Board) - Method in class edu.ntnu.idi.idatt.view.common.BoardStackPane
-
Sets the
Board
model for this display. - setBoardDimensions(double[]) - Method in class edu.ntnu.idi.idatt.view.common.BoardStackPane
-
Sets the pixel dimensions (width, height) for the board display area.
- setBoardFactory(BoardFactory) - Method in class edu.ntnu.idi.idatt.controller.common.MenuController
-
Sets the
BoardFactory
to be used for creating and loading boards. - setBoardSize(int) - Method in class edu.ntnu.idi.idatt.model.board.LudoGameBoard
-
Sets the size of the Ludo board.
- setBoardSizeSpinner(int) - Method in class edu.ntnu.idi.idatt.view.ludo.LudoBoardCreatorView
-
Sets the value of the board size spinner and re-attaches its change listener.
- setBot(boolean) - Method in class edu.ntnu.idi.idatt.model.player.Player
-
Sets whether the player is a bot or not.
- setColorHex(String) - Method in class edu.ntnu.idi.idatt.model.player.Player
-
Sets the color of the player in hex format.
- setColors(Color[]) - Method in class edu.ntnu.idi.idatt.model.board.LudoGameBoard
-
Sets the player colors for this Ludo board.
- setColumnSpinner(int) - Method in class edu.ntnu.idi.idatt.view.laddergame.LadderGameBoardCreatorView
-
Sets the value of the columns spinner and re-attaches its listener.
- setCurrentPlayer(Player) - Method in class edu.ntnu.idi.idatt.model.game.BoardGame
-
Sets the current player.
- setCurrentPlayer(Player) - Method in interface edu.ntnu.idi.idatt.model.game.Game
-
Sets the current player.
- setCurrentTile(Tile) - Method in class edu.ntnu.idi.idatt.model.token.LudoToken
-
Sets the current tile for this token.
- setDescription(String) - Method in class edu.ntnu.idi.idatt.model.board.BaseBoard
-
Sets the description of the board.
- setDescription(String) - Method in interface edu.ntnu.idi.idatt.model.board.Board
-
Sets the description of the board.
- setDescription(String) - Method in class edu.ntnu.idi.idatt.model.tile.LadderAction
-
Sets the description of the action.
- setDescription(String) - Method in class edu.ntnu.idi.idatt.model.tile.PortalAction
-
Sets the description of the action.
- setDescription(String) - Method in class edu.ntnu.idi.idatt.model.tile.SlideAction
-
Sets the description of the action.
- setDescription(String) - Method in interface edu.ntnu.idi.idatt.model.tile.TileAction
-
Sets the description of the action.
- setDescription(String) - Method in class edu.ntnu.idi.idatt.model.tile.WormholeAction
-
Sets the description of the action.
- setDestinationTileId(int) - Method in class edu.ntnu.idi.idatt.model.tile.LadderAction
-
Sets the destination tile ID.
- setDestinationTileId(int) - Method in class edu.ntnu.idi.idatt.model.tile.PortalAction
-
Sets the destination tile ID.
- setDestinationTileId(int) - Method in class edu.ntnu.idi.idatt.model.tile.SlideAction
-
Sets the destination tile ID.
- setDestinationTileId(int) - Method in interface edu.ntnu.idi.idatt.model.tile.TileAction
-
Sets the destination tile ID.
- setDestinationTileId(int) - Method in class edu.ntnu.idi.idatt.model.tile.WormholeAction
-
Sets the destination tile ID.
- setFocusedPlayer(int) - Method in class edu.ntnu.idi.idatt.view.common.GamePlayersBox
-
Applies a visual focus style to the player row at the specified index and removes it from any previously focused row.
- setIdentifier(String) - Method in class edu.ntnu.idi.idatt.model.tile.LadderAction
-
Sets the identifier of the action.
- setIdentifier(String) - Method in class edu.ntnu.idi.idatt.model.tile.PortalAction
-
Sets the identifier of the action.
- setIdentifier(String) - Method in class edu.ntnu.idi.idatt.model.tile.SlideAction
-
Sets the identifier of the action.
- setIdentifier(String) - Method in interface edu.ntnu.idi.idatt.model.tile.TileAction
-
Sets the identifier of the tile action.
- setIdentifier(String) - Method in class edu.ntnu.idi.idatt.model.tile.WormholeAction
-
Sets the identifier of the action.
- setLandAction(TileAction) - Method in class edu.ntnu.idi.idatt.model.tile.LadderGameTile
-
Sets the
TileAction
to be performed when a player lands on this tile. - setName(String) - Method in class edu.ntnu.idi.idatt.model.board.BaseBoard
-
Sets the name of the board.
- setName(String) - Method in interface edu.ntnu.idi.idatt.model.board.Board
-
Sets the name of the board.
- setName(String) - Method in class edu.ntnu.idi.idatt.model.player.Player
-
Sets the name of the player.
- setNodeListeners() - Method in class edu.ntnu.idi.idatt.view.common.BoardStackPane
-
Sets up listeners, particularly for changes in the
BoardStackPane.backgroundImageView
layout bounds, to updateBoardStackPane.boardDimensions
and triggerBoardStackPane.updateBoardVisuals()
. - setOnBackToGameSelection(Runnable) - Method in class edu.ntnu.idi.idatt.controller.common.MenuController
-
Sets the action to be performed when navigating back to the game selection screen.
- setOnBackToMenu(Runnable) - Method in class edu.ntnu.idi.idatt.controller.common.BoardCreatorController
-
Sets the action to be performed when the "back to menu" event is triggered.
- setOnComponentDropped(Consumer<ComponentDropEventData>) - Method in class edu.ntnu.idi.idatt.view.common.BoardStackPane
-
Sets a callback
Consumer
to be executed when a component is dropped onto the board. - setOnCreateBoard(Runnable) - Method in class edu.ntnu.idi.idatt.controller.common.MenuController
-
Sets the action to be performed when navigating to the board creation screen.
- setOnDelete(Runnable) - Method in class edu.ntnu.idi.idatt.view.component.MenuPlayerRow
-
Sets the action to be performed when the delete button for this row is clicked.
- setOnLadderGame(Runnable) - Method in class edu.ntnu.idi.idatt.controller.common.GameSelectionController
-
Sets the callback to run when the ladder game is selected.
- setOnLudoGame(Runnable) - Method in class edu.ntnu.idi.idatt.controller.common.GameSelectionController
-
Sets the callback to run when the ludo game is selected.
- setOnMainMenu(Runnable) - Method in class edu.ntnu.idi.idatt.controller.common.GameFinishedController
-
Sets the callback to run when the "Main Menu" button is clicked.
- setOnNavigateToGameFinished(Consumer<Map<String, Object>>) - Method in class edu.ntnu.idi.idatt.controller.common.GameController
-
Sets the
Consumer
action to be executed when the game is finished. - setOnQuitGame(Runnable) - Method in class edu.ntnu.idi.idatt.controller.common.GameController
-
Sets the
Runnable
action to be executed when the game is quit. - setOnQuitGame(Runnable) - Method in class edu.ntnu.idi.idatt.view.component.GameMenuBox
-
Sets the
Runnable
action to be executed when the "Quit Game" button is clicked. - setOnRemoveComponentsOutsideGrid(Runnable) - Method in class edu.ntnu.idi.idatt.view.common.BoardStackPane
-
Sets a
Runnable
action to be executed when components placed outside the grid need to be removed. - setOnRestartGame(Runnable) - Method in class edu.ntnu.idi.idatt.view.component.GameMenuBox
-
Sets the
Runnable
action to be executed when the "Restart Game" button is clicked. - setOnRollDice(Runnable) - Method in class edu.ntnu.idi.idatt.view.component.GameMenuBox
-
Sets the
Runnable
action to be executed when the "Roll Dice" button is clicked. - setOnStartGame(BiConsumer<Board, List<Player>>) - Method in class edu.ntnu.idi.idatt.controller.common.MenuController
-
Sets the action to be performed when the game is started.
- setOnUpdate(Runnable) - Method in class edu.ntnu.idi.idatt.view.component.MenuPlayerRow
-
Sets a callback to be executed when the player's details (color or token type) are updated.
- setPattern(String) - Method in class edu.ntnu.idi.idatt.model.board.LadderGameBoard
-
Sets the pattern of the board.
- setPattern(String) - Method in class edu.ntnu.idi.idatt.view.laddergame.LadderGameBoardStackPane
-
Sets the visual pattern for the board and applies it to the grid display.
- setPlayerFinishIndexes(int[]) - Method in class edu.ntnu.idi.idatt.model.board.LudoGameBoard
-
Sets the player finish indexes for this Ludo board.
- setPlayerFinishStartIndexes(int[]) - Method in class edu.ntnu.idi.idatt.model.board.LudoGameBoard
-
Sets the player finish start indexes for this Ludo board.
- setPlayers(List<Player>) - Method in class edu.ntnu.idi.idatt.model.game.BoardGame
-
Sets the list of players for the game.
- setPlayers(List<Player>) - Method in interface edu.ntnu.idi.idatt.model.game.Game
-
Sets the game players.
- setPlayers(List<Player>) - Method in class edu.ntnu.idi.idatt.view.common.MenuView
-
Replaces the current player rows in the menu with new rows based on the provided list of
Player
s. - setPlayerStartIndexes(int[]) - Method in class edu.ntnu.idi.idatt.model.board.LudoGameBoard
-
Sets the player start indexes for this Ludo board.
- setPlayerTokenType(PlayerTokenType) - Method in class edu.ntnu.idi.idatt.model.player.Player
-
Sets the type of player token to use for the player.
- setPlayerTrackStartIndexes(int[]) - Method in class edu.ntnu.idi.idatt.model.board.LudoGameBoard
-
Sets the player track start indexes for this Ludo board.
- setPortalColorNumber(int) - Method in class edu.ntnu.idi.idatt.view.component.TileActionComponent
-
Sets the color number for portal components (1-3).
- setRoundNumber(int) - Method in class edu.ntnu.idi.idatt.view.common.GamePlayersBox
-
Sets the displayed round number.
- setRowsAndColumns(int[]) - Method in class edu.ntnu.idi.idatt.model.board.LadderGameBoard
-
Sets the number of rows and columns in the board.
- setRowSpinner(int) - Method in class edu.ntnu.idi.idatt.view.laddergame.LadderGameBoardCreatorView
-
Sets the value of the rows spinner and re-attaches its listener.
- setSelectedBoard(Board) - Method in class edu.ntnu.idi.idatt.view.common.MenuView
-
Sets the currently selected board and updates the view to display its information.
- setSelectedBoard(Board) - Method in class edu.ntnu.idi.idatt.view.laddergame.LadderGameMenuView
-
Sets the currently selected
Board
to be displayed in the menu's preview area. - setSelectedBoard(Board) - Method in class edu.ntnu.idi.idatt.view.ludo.LudoGameMenuView
-
Sets the currently selected
Board
to be displayed in the menu's preview area. - setStartAreaSize(int) - Method in class edu.ntnu.idi.idatt.model.board.LudoGameBoard
-
Sets the start area size for this Ludo board.
- setStatus(LudoToken.TokenStatus) - Method in class edu.ntnu.idi.idatt.model.token.LudoToken
-
Sets the status of this token.
- setTileNumber(Player, String) - Method in class edu.ntnu.idi.idatt.view.common.GamePlayerRow
-
Sets the text of the
GamePlayerRow.playerTile
label, which usually displays the player's current tile number or status. - setTileNumber(Player, String) - Method in class edu.ntnu.idi.idatt.view.ludo.LudoGamePlayerRow
-
Updates the text displaying the number of finished tokens for the player.
- setTotalTrackTileCount(int) - Method in class edu.ntnu.idi.idatt.model.board.LudoGameBoard
-
Sets the total track tile count for this Ludo board.
- setType(String) - Method in class edu.ntnu.idi.idatt.model.tile.LudoTile
-
Sets the type of this Ludo tile.
- setValue(int) - Method in class edu.ntnu.idi.idatt.view.component.AnimatedDie
-
Sets the value of the die directly without playing an animation.
- showErrorAlert(String, String) - Method in class edu.ntnu.idi.idatt.view.common.BoardCreatorView
-
Shows an error alert.
- showErrorAlert(String, String) - Method in class edu.ntnu.idi.idatt.view.common.MenuView
-
Displays an error alert dialog.
- showGameSelection() - Method in class edu.ntnu.idi.idatt.MainApp
-
Navigates the application to display the game selection screen.
- showInfoAlert(String, String) - Method in class edu.ntnu.idi.idatt.view.common.BoardCreatorView
-
Shows an info alert.
- showInfoAlert(String, String) - Method in class edu.ntnu.idi.idatt.view.common.MenuView
-
Displays an information alert dialog.
- showView(Node) - Method in class edu.ntnu.idi.idatt.view.app.AppView
-
Shows the specified view within this AppView.
- SLIDE - Enum constant in enum class edu.ntnu.idi.idatt.dto.ComponentSpec.ComponentType
-
Slide component type.
- SlideAction - Class in edu.ntnu.idi.idatt.model.tile
-
SlideAction class
- SlideAction(String, int, String) - Constructor for class edu.ntnu.idi.idatt.model.tile.SlideAction
-
Constructor for SlideAction class.
- SQUARE - Enum constant in enum class edu.ntnu.idi.idatt.model.player.PlayerTokenType
-
Square token shape.
- start(Stage) - Method in class edu.ntnu.idi.idatt.MainApp
-
The main entry point.
- startGameButton - Variable in class edu.ntnu.idi.idatt.view.common.MenuView
T
- Tile - Class in edu.ntnu.idi.idatt.model.tile
-
Tile class
- Tile(int, int[], int) - Constructor for class edu.ntnu.idi.idatt.model.tile.Tile
-
Constructor for Tile class.
- Tile(int, int[], int, TileAction) - Constructor for class edu.ntnu.idi.idatt.model.tile.Tile
-
Constructor for Tile class.
- TileAction - Interface in edu.ntnu.idi.idatt.model.tile
-
TileAction interface
- TileActionComponent - Class in edu.ntnu.idi.idatt.view.component
-
TileActionComponent.
- TileActionComponent(String, String, Tile, int) - Constructor for class edu.ntnu.idi.idatt.view.component.TileActionComponent
-
Constructs a TileActionComponent.
- tileActionPerformValidator(Player, Board) - Static method in class edu.ntnu.idi.idatt.model.validator.ArgumentValidator
-
Validates the arguments for the perform method in LadderAction class.
- tileActionSetDescriptionValidator(String) - Static method in class edu.ntnu.idi.idatt.model.validator.ArgumentValidator
-
Validates the arguments for the setDescription method in TileAction class.
- tileActionSetDestinationTileIdValidator(int) - Static method in class edu.ntnu.idi.idatt.model.validator.ArgumentValidator
-
Validates the arguments for the setDestinationTileId method in TileAction class.
- tileActionSetIdentifierValidator(String) - Static method in class edu.ntnu.idi.idatt.model.validator.ArgumentValidator
-
Validates the arguments for the setIdentifier method in TileAction class.
- TileCoordinates - Record Class in edu.ntnu.idi.idatt.dto
-
TileCoordinates.
- TileCoordinates(int, int) - Constructor for record class edu.ntnu.idi.idatt.dto.TileCoordinates
-
Creates an instance of a
TileCoordinates
record class. - tileOffset - Variable in class edu.ntnu.idi.idatt.view.ludo.LudoGameStackPane
- tilePositionX - Variable in class edu.ntnu.idi.idatt.view.common.GameStackPane
- tilePositionY - Variable in class edu.ntnu.idi.idatt.view.common.GameStackPane
- tiles - Variable in class edu.ntnu.idi.idatt.model.board.BaseBoard
- tileSetCoordinatesValidator(int[]) - Static method in class edu.ntnu.idi.idatt.model.validator.ArgumentValidator
-
Validates the arguments for the setCoordinates method in Tile class.
- tileSetLandActionValidator(TileAction) - Static method in class edu.ntnu.idi.idatt.model.validator.ArgumentValidator
-
Validates the arguments for the setLandAction method in Tile class.
- tileSetNextTileIdValidator(int, int) - Static method in class edu.ntnu.idi.idatt.model.validator.ArgumentValidator
-
Validates the arguments for the setNextTileId method in Tile class.
- tileSetTileIdValidator(int) - Static method in class edu.ntnu.idi.idatt.model.validator.ArgumentValidator
-
Validates the arguments for the setTileId method in Tile class.
- tileSizeX - Variable in class edu.ntnu.idi.idatt.view.common.GameStackPane
- tileSizeY - Variable in class edu.ntnu.idi.idatt.view.common.GameStackPane
- toCsvLine(Player) - Method in class edu.ntnu.idi.idatt.filehandler.PlayerFileHandlerCsv
-
Converts a
Player
object to its CSV string representation. - tokenShapeMap - Variable in class edu.ntnu.idi.idatt.view.ludo.LudoGameStackPane
- toString() - Method in record class edu.ntnu.idi.idatt.dto.ComponentDropEventData
-
Returns a string representation of this record class.
- toString() - Method in record class edu.ntnu.idi.idatt.dto.ComponentSpec
-
Returns a string representation of this record class.
- toString() - Method in record class edu.ntnu.idi.idatt.dto.TileCoordinates
-
Returns a string representation of this record class.
- TRANSITION_DURATION - Static variable in class edu.ntnu.idi.idatt.view.common.GameStackPane
- TRIANGLE - Enum constant in enum class edu.ntnu.idi.idatt.model.player.PlayerTokenType
-
Triangular token shape.
- type() - Method in record class edu.ntnu.idi.idatt.dto.ComponentSpec
-
Returns the value of the
type
record component.
U
- UP - Enum constant in enum class edu.ntnu.idi.idatt.dto.ComponentSpec.Direction
-
Up direction.
- updateBoardVisuals() - Method in class edu.ntnu.idi.idatt.view.common.BoardStackPane
-
Updates all visual aspects of the board, including the grid and component placements.
- updateBoardVisuals() - Method in class edu.ntnu.idi.idatt.view.laddergame.LadderGameBoardStackPane
-
Updates the visual representation of all components (ladders, slides, portals) on the board.
- updateBoardVisuals() - Method in class edu.ntnu.idi.idatt.view.ludo.LudoGameBoardStackPane
-
Placeholder method.
- updateControls() - Method in class edu.ntnu.idi.idatt.view.common.MenuView
-
Updates the visibility of add player/bot buttons and calls
MenuView.validatePlayers()
to enable/disable the start game button based on the current player configuration. - updateCurrentPlayer() - Method in class edu.ntnu.idi.idatt.model.game.BoardGame
-
Updates the current player to the next player in the turn order and notifies observers of the change.
- updateGrid() - Method in class edu.ntnu.idi.idatt.view.common.BoardStackPane
-
Updates or recreates the grid display based on the current board dimensions and configuration.
- updateGrid() - Method in class edu.ntnu.idi.idatt.view.laddergame.LadderGameBoardStackPane
-
Updates the visual grid display of the board.
- updateGrid() - Method in class edu.ntnu.idi.idatt.view.ludo.LudoGameBoardStackPane
-
Updates the grid display for the Ludo board.
- updateSizeAndPosition(double, double, double, double) - Method in class edu.ntnu.idi.idatt.view.component.TileActionComponent
-
Updates the size and position of this component based on tile dimensions and a base coordinate.
V
- validatePlayers() - Method in class edu.ntnu.idi.idatt.view.common.MenuView
-
Validates the current player setup (e.g., number of players, unique colors/tokens) and enables/disables the start game button accordingly.
- validatePlayers() - Method in class edu.ntnu.idi.idatt.view.laddergame.LadderGameMenuView
-
Validates the current player configurations in the menu for a Ladder Game.
- validatePlayers() - Method in class edu.ntnu.idi.idatt.view.ludo.LudoGameMenuView
-
Validates the current player configurations in the menu for a Ludo Game.
- valueOf(String) - Static method in enum class edu.ntnu.idi.idatt.dto.ComponentSpec.ComponentType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class edu.ntnu.idi.idatt.dto.ComponentSpec.Direction
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class edu.ntnu.idi.idatt.model.player.PlayerTokenType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class edu.ntnu.idi.idatt.model.token.LudoToken.TokenStatus
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class edu.ntnu.idi.idatt.navigation.ViewType
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class edu.ntnu.idi.idatt.dto.ComponentSpec.ComponentType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class edu.ntnu.idi.idatt.dto.ComponentSpec.Direction
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class edu.ntnu.idi.idatt.model.player.PlayerTokenType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class edu.ntnu.idi.idatt.model.token.LudoToken.TokenStatus
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class edu.ntnu.idi.idatt.navigation.ViewType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- view - Variable in class edu.ntnu.idi.idatt.controller.common.BoardCreatorController
- ViewNavigator - Class in edu.ntnu.idi.idatt.navigation
-
ViewNavigator.
- ViewNavigator(AppView) - Constructor for class edu.ntnu.idi.idatt.navigation.ViewNavigator
-
Constructs a ViewNavigator.
- ViewType - Enum Class in edu.ntnu.idi.idatt.navigation
-
ViewType.
- ViewUtils - Class in edu.ntnu.idi.idatt.view.util
-
ViewUtils.
W
- widthDirection() - Method in record class edu.ntnu.idi.idatt.dto.ComponentSpec
-
Returns the value of the
widthDirection
record component. - widthTiles() - Method in record class edu.ntnu.idi.idatt.dto.ComponentSpec
-
Returns the value of the
widthTiles
record component. - WormholeAction - Class in edu.ntnu.idi.idatt.model.tile
-
WormholeAction class
- WormholeAction(String, int, String) - Constructor for class edu.ntnu.idi.idatt.model.tile.WormholeAction
-
Constructor for WormholeAction class.
- writeFile(String, List<Board>) - Method in class edu.ntnu.idi.idatt.filehandler.LadderGameBoardFileHandlerGson
-
Writes a list of Board objects to a JSON file at the given path.
- writeFile(String, List<Board>) - Method in class edu.ntnu.idi.idatt.filehandler.LudoBoardFileHandlerGson
-
Writes a list of Ludo game boards to a JSON file at the specified path.
- writeFile(String, List<Player>) - Method in class edu.ntnu.idi.idatt.filehandler.PlayerFileHandlerCsv
-
Writes a list of
Player
objects to a CSV file at the specified path. - writeFile(String, List<T>) - Method in interface edu.ntnu.idi.idatt.filehandler.FileHandler
-
Writes contents to a file, using the given file path.
All Classes and Interfaces|All Packages|Constant Field Values