Class ChallengeTickEvent
- java.lang.Object
-
- page.codeberg.terratactician_expandoria.bots.events.Event
-
- page.codeberg.terratactician_expandoria.bots.events.ChallengeTickEvent
-
public class ChallengeTickEvent extends Event
A ChallengeTickEvent is a event send by the game to indicate, that the challenge bot should play a move. This Event should be acknowledged by sending an ActionsList (may be empty).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class page.codeberg.terratactician_expandoria.bots.events.Event
Event.EventType
-
-
Field Summary
Fields Modifier and Type Field Description int
actionCount
amount of actions that can be playedBuildArea
buildArea
World buildArea.Hand
hand
Cards in hand, that are placeable.Map
map
Current map of tiles, in the world.Metrics
metrics
Current metrics of the players.Metrics
metricsRate
Current players metrics rate.Metrics
metricsTarget
Metrics target of the current round.Metrics
redrawCosts
Currents costs for redrawing.double
redrawTime
Time left to wait for a free redraw.Rewards
rewards
All rewards, that are collectable.int
round
Current game round.double
roundTime
Time left in the current round.
-
Constructor Summary
Constructors Constructor Description ChallengeTickEvent()
Creates an empty ChallengeTickEvent.ChallengeTickEvent(org.json.JSONObject data)
Creates a ChallengeTickEvent 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
-
actionCount
public int actionCount
amount of actions that can be played
-
map
public Map map
Current map of tiles, in the world.
-
round
public int round
Current game round.
-
roundTime
public double roundTime
Time left in the current round.
-
hand
public Hand hand
Cards in hand, that are placeable.
-
buildArea
public BuildArea buildArea
World buildArea. This area limits the place to place tiles in.
-
rewards
public Rewards rewards
All rewards, that are collectable.
-
redrawCosts
public Metrics redrawCosts
Currents costs for redrawing. Is 0 if a redraw is free.
-
redrawTime
public double redrawTime
Time left to wait for a free redraw.
-
metrics
public Metrics metrics
Current metrics of the players.
-
metricsTarget
public Metrics metricsTarget
Metrics target of the current round. If target is not fulfilled on the end of a round twice, the game is lost.
-
metricsRate
public Metrics metricsRate
Current players metrics rate.
-
-