All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.codingame.gameengine.runner.dto.Tooltip Maven / Gradle / Ivy

Go to download

Runner / Testbed to locally run Games created using the CodinGame engine toolkit.

There is a newer version: 4.5.0
Show newest version
package com.codingame.gameengine.runner.dto;

/**
 * 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. *

*/ public class Tooltip { int turn; String text; Integer event; /** * These tooltips would be displayed on the progress bar of the viewer. * @param text the text displayed in the tooltip. Should be short * @param eventId equal to the id of on of the agents, changes the tooltips colours to the colour of that player * @param turn the viewer frame on which the tooltip will be visible */ public Tooltip(String text, int eventId, int turn) { this.turn = turn; this.text = text; this.event = eventId; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy