Class TooltipData

java.lang.Object
com.codingame.gameengine.runner.simulate.TooltipData

public class TooltipData extends Object
A data class for tooltips displayed on the progress bar of the viewer.

Used to show important events during a game such as point scoring.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Equal to the id of on of the agents, changes the tooltips colours to the colour of that player.
    The text contained in this progress bar tooltip.
    int
    The viewer frame on which the tooltip will be visible.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TooltipData(String text, int eventId, int turn)
    These tooltips would be displayed on the progress bar of the viewer.
  • Method Summary

    Methods inherited from class java.lang.Object

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

    • turn

      public int turn
      The viewer frame on which the tooltip will be visible.
    • text

      public String text
      The text contained in this progress bar tooltip.
    • event

      public Integer event
      Equal to the id of on of the agents, changes the tooltips colours to the colour of that player.
  • Constructor Details

    • TooltipData

      public TooltipData(String text, int eventId, int turn)
      These tooltips would be displayed on the progress bar of the viewer.
      Parameters:
      text - the text displayed in the tooltip. Should be short
      eventId - equal to the id of on of the agents, changes the tooltips colours to the colour of that player
      turn - the viewer frame on which the tooltip will be visible