Class 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).
    • 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.
    • Constructor Detail

      • ChallengeTickEvent

        public ChallengeTickEvent()
        Creates an empty ChallengeTickEvent.
      • ChallengeTickEvent

        public ChallengeTickEvent​(org.json.JSONObject data)
        Creates a ChallengeTickEvent from json data. The date will be deserialized.
        Parameters:
        data - json data
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object