Class PlaceAction
- java.lang.Object
-
- page.codeberg.terratactician_expandoria.bots.actions.Action
-
- page.codeberg.terratactician_expandoria.bots.actions.PlaceAction
-
public class PlaceAction extends Action
Action is used to place a tile. In challenge mode this action is restricted by the game logic and the action limit.
-
-
Constructor Summary
Constructors Constructor Description PlaceAction(Tile tile)
Create a PlaceAction with a tile.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
Name of the action in the json package.boolean
isLimited()
Returns true if the action is limited in challenge mode, by the action cap.java.lang.Object
serializeData()
Serializes the data of the Action.
-
-
-
Field Detail
-
tile
public Tile tile
tile to place
-
-
Constructor Detail
-
PlaceAction
public PlaceAction(Tile tile)
Create a PlaceAction with a tile. The tile will be placed to the coordinate in the Tile.- Parameters:
tile
- the tile to place.
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from class:Action
Name of the action in the json package.
-
serializeData
public java.lang.Object serializeData()
Description copied from class:Action
Serializes the data of the Action. This may returns a JSONObject or String or an other supported datatype.- Specified by:
serializeData
in classAction
- Returns:
- JSONObject or String
-
-