Class CollectRewardAction
- java.lang.Object
-
- page.codeberg.terratactician_expandoria.bots.actions.Action
-
- page.codeberg.terratactician_expandoria.bots.actions.CollectRewardAction
-
public class CollectRewardAction extends Action
CollectReward is a action used for collecting small rewards. This action is restricted by the existents of the reward and the actions limit.
-
-
Field Summary
Fields Modifier and Type Field Description CubeCoordinatecoordcoordinate to collect a reward from.
-
Constructor Summary
Constructors Constructor Description CollectRewardAction(CubeCoordinate coord)Creates a collect reward action from a coordinate
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()Name of the action in the json package.booleanisLimited()Returns true if the action is limited in challenge mode, by the action cap.java.lang.ObjectserializeData()Serializes the data of the Action.
-
-
-
Field Detail
-
coord
public CubeCoordinate coord
coordinate to collect a reward from.
-
-
Constructor Detail
-
CollectRewardAction
public CollectRewardAction(CubeCoordinate coord)
Creates a collect reward action from a coordinate- Parameters:
coord- coordinate of the reward
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from class:ActionName of the action in the json package.
-
serializeData
public java.lang.Object serializeData()
Description copied from class:ActionSerializes the data of the Action. This may returns a JSONObject or String or an other supported datatype.- Specified by:
serializeDatain classAction- Returns:
- JSONObject or String
-
-