Uses of Class
edu.ntnu.idi.idatt.model.tile.Tile
Packages that use Tile
Package
Description
-
Uses of Tile in edu.ntnu.idi.idatt.model.board
Fields in edu.ntnu.idi.idatt.model.board with type parameters of type TileMethods in edu.ntnu.idi.idatt.model.board that return TileModifier and TypeMethodDescriptionBaseBoard.getTile
(int tileId) Gets a tile by its ID.Board.getTile
(int tileId) Gets a tile by its ID.Methods in edu.ntnu.idi.idatt.model.board that return types with arguments of type TileModifier and TypeMethodDescriptionBaseBoard.getTiles()
Gets all tiles on the board.Board.getTiles()
Gets all tiles on the board.Methods in edu.ntnu.idi.idatt.model.board with parameters of type Tile -
Uses of Tile in edu.ntnu.idi.idatt.model.player
Methods in edu.ntnu.idi.idatt.model.player that return TileModifier and TypeMethodDescriptionLadderGamePlayer.getCurrentTile()
Returns theLadderGameTile
the player is currently on.Methods in edu.ntnu.idi.idatt.model.player with parameters of type TileModifier and TypeMethodDescriptionvoid
LudoPlayer.moveToken
(int pieceId, Tile tile, LudoToken.TokenStatus status) Moves the token with the given id to a new tile and updates its status.void
LadderGamePlayer.placeOnTile
(Tile tile) Places the player on the specifiedTile
. -
Uses of Tile in edu.ntnu.idi.idatt.model.tile
Subclasses of Tile in edu.ntnu.idi.idatt.model.tile -
Uses of Tile in edu.ntnu.idi.idatt.model.token
Methods in edu.ntnu.idi.idatt.model.token that return TileModifier and TypeMethodDescriptionLudoToken.getCurrentTile()
Gets the tile this token currently occupies.Methods in edu.ntnu.idi.idatt.model.token with parameters of type TileModifier and TypeMethodDescriptionvoid
LudoToken.setCurrentTile
(Tile currentTile) Sets the current tile for this token. -
Uses of Tile in edu.ntnu.idi.idatt.model.validator
Methods in edu.ntnu.idi.idatt.model.validator with parameters of type TileModifier and TypeMethodDescriptionstatic void
ArgumentValidator.boardAddTileValidator
(Tile tile) Validates the arguments for the addTile method in Board class.static void
ArgumentValidator.ladderGamePlayerPlaceOnTileValidator
(Tile tile) Validates the arguments for the placeOnTile method in Player class.static void
ArgumentValidator.ludoPlayerMoveTokenValidator
(int pieceId, Tile tile, LudoToken.TokenStatus status) Validates arguments for the moveToken method in LudoPlayer class. -
Uses of Tile in edu.ntnu.idi.idatt.view.component
Methods in edu.ntnu.idi.idatt.view.component that return TileModifier and TypeMethodDescriptionTileActionComponent.getTile()
Gets the sourceTile
for this action component.Constructors in edu.ntnu.idi.idatt.view.component with parameters of type TileModifierConstructorDescriptionTileActionComponent
(String type, String imagePath, Tile tile, int destinationTileId) Constructs a TileActionComponent. -
Uses of Tile in edu.ntnu.idi.idatt.view.laddergame
Fields in edu.ntnu.idi.idatt.view.laddergame with type parameters of type TileMethods in edu.ntnu.idi.idatt.view.laddergame that return types with arguments of type TileModifier and TypeMethodDescriptionLadderGameStackPane.getPathTiles
(Tile startTile, Tile endTile) Gets the list of tiles between the start and end tiles.Methods in edu.ntnu.idi.idatt.view.laddergame with parameters of type TileModifier and TypeMethodDescriptionLadderGameStackPane.getPathTiles
(Tile startTile, Tile endTile) Gets the list of tiles between the start and end tiles.void
LadderGameStackPane.movePlayer
(Player player, Tile newTile, boolean straightLine, Runnable onFinished) Moves the player to the new tile, with an optional straight line option to allow for a tile action animation. -
Uses of Tile in edu.ntnu.idi.idatt.view.ludo
Methods in edu.ntnu.idi.idatt.view.ludo that return types with arguments of type TileModifier and TypeMethodDescriptionLudoGameStackPane.getPathTiles
(int playerIndex, Tile startTile, Tile endTile) 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.Methods in edu.ntnu.idi.idatt.view.ludo with parameters of type TileModifier and TypeMethodDescriptionLudoGameStackPane.getPathTiles
(int playerIndex, Tile startTile, Tile endTile) 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.void
LudoGameStackPane.moveToken
(LudoToken token, Tile oldTile, Tile newTile, boolean straightLine, Runnable onFinished) Animates the movement of a Ludo token from an old tile to a new tile on the game board.