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 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

      void setIdentifier(String identifier)
      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

      void setDescription(String description)
      Sets the description of the action.
      Parameters:
      description - The description to set.
    • perform

      void perform(Player player, Board board)
      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.