Class Tooltip

java.lang.Object
com.codingame.gameengine.core.Tooltip

public class Tooltip extends Object
The data for a tooltip which appears on the progress bar of the replay of a game to give information about significant game events. You may create several tooltips for the same turn.
  • Constructor Details

    • Tooltip

      public Tooltip(int player, String message)
      Creates a tooltip which will appear on the replay of the current game. The tooltip will have the same color as one of the players.

      The message to display is typically no longer than 30 characters.

      Parameters:
      player - the index of the player the tooltip information is about.
      message - the message to display in the tooltip.