Class TileStatusEvent
- java.lang.Object
-
- page.codeberg.terratactician_expandoria.bots.events.Event
-
- page.codeberg.terratactician_expandoria.bots.events.TileStatusEvent
-
public class TileStatusEvent extends Event
Event gets send when the map was updated. Either by the user or the bot or something else.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TileStatusEvent.TileStatusKind
TileStatusKind descripes the reason, why an event was send.-
Nested classes/interfaces inherited from class page.codeberg.terratactician_expandoria.bots.events.Event
Event.EventType
-
-
Field Summary
Fields Modifier and Type Field Description CubeCoordinate
coordinate
Coordinate of changed tileTileStatusEvent.TileStatusKind
kind
Kind of the evnet.Tile
tile
Data of the changed tile.
-
Constructor Summary
Constructors Constructor Description TileStatusEvent(org.json.JSONObject data)
Creates a TileClickedEvent from json data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
-
Methods inherited from class page.codeberg.terratactician_expandoria.bots.events.Event
deserialize, getEventType
-
-
-
-
Field Detail
-
coordinate
public CubeCoordinate coordinate
Coordinate of changed tile
-
tile
public Tile tile
Data of the changed tile. This field may be null. (e.g. on remove)
-
kind
public TileStatusEvent.TileStatusKind kind
Kind of the evnet. Possible kinds are: manuel, add, remove, changed
-
-