Class TakeAction


  • public class TakeAction
    extends Action
    Action for taking/reclaiming a tile. This action is restricted in challenge mode by a 5 sec timer, whether the hand has a free slot, and the action limit. This action may be used unrestricted in creative mode to remove tiles.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      CubeCoordinate coord
      Coordinate of the tile to take.
    • Constructor Summary

      Constructors 
      Constructor Description
      TakeAction​(CubeCoordinate tile)
      Create a take action with a coordinate
    • 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.
      java.lang.Object serializeData()
      Serializes the data of the Action.
      • Methods inherited from class page.codeberg.terratactician_expandoria.bots.actions.Action

        serialize
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

    • Constructor Detail

      • TakeAction

        public TakeAction​(CubeCoordinate tile)
        Create a take action with a coordinate
        Parameters:
        tile - coordinate of the tile
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from class: Action
        Name of the action in the json package.
        Specified by:
        getName in class Action
        Returns:
        API name of this Action
      • 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 class Action
        Returns:
        JSONObject or String