Package edu.ntnu.idi.idatt.model.tile
Interface TileAction
- All Known Implementing Classes:
LadderAction
,PortalAction
,SlideAction
,WormholeAction
public interface TileAction
TileAction interface
This interface defines methods for performing actions on tiles.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the description of the action.int
Returns the destination tile ID.Returns the identifier of the tile action.void
Performs the action on the given player and board.void
setDescription
(String description) Sets the description of the action.void
setDestinationTileId
(int destinationTileId) Sets the destination tile ID.void
setIdentifier
(String identifier) Sets the identifier of the tile action.
-
Method Details
-
getIdentifier
String getIdentifier()Returns the identifier of the tile action. -
getDestinationTileId
int getDestinationTileId()Returns the destination tile ID. -
getDescription
String getDescription()Returns the description of the action. -
setIdentifier
Sets the identifier of the tile action.- Parameters:
identifier
- The identifier to set.
-
setDestinationTileId
void setDestinationTileId(int destinationTileId) Sets the destination tile ID.- Parameters:
destinationTileId
- The destination tile ID to set.
-
setDescription
Sets the description of the action.- Parameters:
description
- The description to set.
-
perform
Performs the action on the given player and board.- Parameters:
player
- The player to perform the action on.board
- The board to perform the action on.
-