Skip navigation links
A C D E F G I L M O P R S T W 

A

AbstractMultiplayerPlayer - Class in com.codingame.gameengine.core
The representation of a player's AI during the game's execution.
AbstractMultiplayerPlayer() - Constructor for class com.codingame.gameengine.core.AbstractMultiplayerPlayer
 
AbstractPlayer - Class in com.codingame.gameengine.core
The representation of the/a player's AI during the game's execution.
AbstractPlayer() - Constructor for class com.codingame.gameengine.core.AbstractPlayer
 
AbstractPlayer.TimeoutException - Exception in com.codingame.gameengine.core
An Exception thrown by getOutputs() when the player's AI did not respond in time after an execute().
AbstractReferee - Class in com.codingame.gameengine.core
The Referee is the brain of your game, it implements all the rules and the turn order.
AbstractReferee() - Constructor for class com.codingame.gameengine.core.AbstractReferee
 
AbstractSoloPlayer - Class in com.codingame.gameengine.core
The representation of the player's AI during the game's execution.
AbstractSoloPlayer() - Constructor for class com.codingame.gameengine.core.AbstractSoloPlayer
 
addToGameSummary(String) - Method in class com.codingame.gameengine.core.GameManager
Add a new line to the game summary for the current turn.
addTooltip(Tooltip) - Method in class com.codingame.gameengine.core.GameManager
Adds a tooltip for the current turn.
addTooltip(AbstractPlayer, String) - Method in class com.codingame.gameengine.core.GameManager
Adds a tooltip for the current turn.
allPlayersInactive() - Method in class com.codingame.gameengine.core.GameManager
 
allPlayersInactive() - Method in class com.codingame.gameengine.core.MultiplayerGameManager
 
allPlayersInactive() - Method in class com.codingame.gameengine.core.SoloGameManager
 

C

com.codingame.gameengine.core - package com.codingame.gameengine.core
 

D

deactivate() - Method in class com.codingame.gameengine.core.AbstractMultiplayerPlayer
Deactivate a player.
deactivate(String) - Method in class com.codingame.gameengine.core.AbstractMultiplayerPlayer
Deactivate a player and adds a tooltip with the reason.
dumpGameProperties() - Method in class com.codingame.gameengine.core.GameManager
 
dumpGameProperties() - Method in class com.codingame.gameengine.core.MultiplayerGameManager
 

E

endGame() - Method in class com.codingame.gameengine.core.GameManager
Set game end.
endGame() - Method in class com.codingame.gameengine.core.MultiplayerGameManager
Set game end.
execute() - Method in class com.codingame.gameengine.core.AbstractPlayer
Executes the player for a maximum of turnMaxTime milliseconds and store the output.
execute(T, int) - Method in class com.codingame.gameengine.core.GameManager
Executes a player for a maximum of turnMaxTime milliseconds and store the output.

F

formatErrorMessage(String) - Static method in class com.codingame.gameengine.core.GameManager
Helper function to display a colored message.
formatSuccessMessage(String) - Static method in class com.codingame.gameengine.core.GameManager
Helper function to display a colored message.

G

GameManager<T extends AbstractPlayer> - Class in com.codingame.gameengine.core
The GameManager takes care of running each turn of the game and computing each visual frame of the replay.
GameManager() - Constructor for class com.codingame.gameengine.core.GameManager
 
gameTurn(int) - Method in class com.codingame.gameengine.core.AbstractReferee
Called on the computation of each turn of the game.
getActivePlayers() - Method in class com.codingame.gameengine.core.MultiplayerGameManager
Get all the active players.
getAvatarToken() - Method in class com.codingame.gameengine.core.AbstractPlayer
Returns a string that will be converted into the real avatar by the viewer, if it exists.
getColorToken() - Method in class com.codingame.gameengine.core.AbstractMultiplayerPlayer
Returns an integer that will be converted into the player's real color by the viewer.
getExpectedOutputLines() - Method in class com.codingame.gameengine.core.AbstractPlayer
Returns the number of lines that the player must return.
getFrameDuration() - Method in class com.codingame.gameengine.core.GameManager
Returns the duration in milliseconds for the frame currently being computed.
getGameParameters() - Method in class com.codingame.gameengine.core.MultiplayerGameManager
The game parameters are used to get additional information from the Game Runner.
getGameSummaryOutputCommand() - Method in class com.codingame.gameengine.core.GameManager
 
getGameSummaryOutputCommand() - Method in class com.codingame.gameengine.core.MultiplayerGameManager
 
getGameSummaryOutputCommand() - Method in class com.codingame.gameengine.core.SoloGameManager
 
getIndex() - Method in class com.codingame.gameengine.core.AbstractMultiplayerPlayer
Get player index from 0 (included) to number of players (excluded).
getLeagueLevel() - Method in class com.codingame.gameengine.core.GameManager
Get current league level.
getMaxTurns() - Method in class com.codingame.gameengine.core.GameManager
Get the maximum amount of turns.
getNicknameToken() - Method in class com.codingame.gameengine.core.AbstractPlayer
Returns a string that will be converted into the real nickname by the viewer.
getOutputs() - Method in class com.codingame.gameengine.core.AbstractPlayer
Gets the output obtained after an execution.
getPlayer(int) - Method in class com.codingame.gameengine.core.MultiplayerGameManager
Get player with index i
getPlayer() - Method in class com.codingame.gameengine.core.SoloGameManager
Get the player
getPlayerCount() - Method in class com.codingame.gameengine.core.MultiplayerGameManager
Get initial number of players.
getPlayers() - Method in class com.codingame.gameengine.core.MultiplayerGameManager
Get all the players.
getScore() - Method in class com.codingame.gameengine.core.AbstractMultiplayerPlayer
Get current score.
getSeed() - Method in class com.codingame.gameengine.core.MultiplayerGameManager
The seed is used to generated parameters such as width and height.
If a seed is present in the given input, the input value should override the generated values.
getTestCaseInput() - Method in class com.codingame.gameengine.core.SoloGameManager
Returns the current test case the game got at initialization.
getTurnMaxTime() - Method in class com.codingame.gameengine.core.GameManager
Get the timeout delay for every players.

I

index - Variable in class com.codingame.gameengine.core.AbstractPlayer
 
init() - Method in class com.codingame.gameengine.core.AbstractReferee
Called on startup, this method exists to create the initial state of the game, according to the given input.
isActive() - Method in class com.codingame.gameengine.core.AbstractMultiplayerPlayer
Returns true is the player is still active in the game (can be executed).
isGameEnd() - Method in class com.codingame.gameengine.core.GameManager
Check if the game has been terminated by the referee.
isInProduction() - Static method in class com.codingame.gameengine.core.RefereeMain
 

L

log - Static variable in class com.codingame.gameengine.core.GameManager
 
loseGame() - Method in class com.codingame.gameengine.core.SoloGameManager
Ends the game as a fail
loseGame(String) - Method in class com.codingame.gameengine.core.SoloGameManager
Ends the game as a fail with a red message

M

main(String[]) - Static method in class com.codingame.gameengine.core.RefereeMain
 
Module - Interface in com.codingame.gameengine.core
A Module can be registered to the GameManager in order to send information to the game view or provide utility functions to the Referee.
MultiplayerGameManager<T extends AbstractMultiplayerPlayer> - Class in com.codingame.gameengine.core
The AbstractMultiplayerPlayer takes care of running each turn of a multiplayer game and computing each visual frame of the replay.
MultiplayerGameManager() - Constructor for class com.codingame.gameengine.core.MultiplayerGameManager
 

O

onAfterGameTurn() - Method in interface com.codingame.gameengine.core.Module
Called by the game manager after calling the Referee's gameTurn method.
onAfterOnEnd() - Method in interface com.codingame.gameengine.core.Module
Called by the game manager after calling the Referee's onEnd method.
onEnd() - Method in class com.codingame.gameengine.core.AbstractReferee
Optional.
onGameInit() - Method in interface com.codingame.gameengine.core.Module
Called by the game manager after calling the Referee's init method.
out - Variable in class com.codingame.gameengine.core.GameManager
 

P

players - Variable in class com.codingame.gameengine.core.GameManager
 
putMetadata(String, String) - Method in class com.codingame.gameengine.core.GameManager
Puts a new metadata that will be sent to the CodinGame IDE.

R

readGameProperties(InputCommand, Scanner) - Method in class com.codingame.gameengine.core.GameManager
 
readGameProperties(InputCommand, Scanner) - Method in class com.codingame.gameengine.core.MultiplayerGameManager
 
readGameProperties(InputCommand, Scanner) - Method in class com.codingame.gameengine.core.SoloGameManager
 
RefereeMain - Class in com.codingame.gameengine.core
 
RefereeMain() - Constructor for class com.codingame.gameengine.core.RefereeMain
 
registerModule(Module) - Method in class com.codingame.gameengine.core.GameManager
Register a module to the gameManager.

S

sendInputLine(String) - Method in class com.codingame.gameengine.core.AbstractPlayer
Adds a new line to the input to send to the player on execute.
setFrameDuration(int) - Method in class com.codingame.gameengine.core.GameManager
Specifies the frameDuration in milliseconds.
setMaxTurns(int) - Method in class com.codingame.gameengine.core.GameManager
Set the maximum amount of turns.
setScore(int) - Method in class com.codingame.gameengine.core.AbstractMultiplayerPlayer
Set current score.
setTurnMaxTime(int) - Method in class com.codingame.gameengine.core.GameManager
Set the timeout delay for every players.
setViewData(Object) - Method in class com.codingame.gameengine.core.GameManager
Set data for use by the viewer, for the current frame.
setViewData(String, Object) - Method in class com.codingame.gameengine.core.GameManager
Set data for use by the viewer, for the current frame, for a specific module.
setViewGlobalData(String, Object) - Method in class com.codingame.gameengine.core.GameManager
Set data for use by the viewer and not related to a specific frame.
SoloGameManager<T extends AbstractSoloPlayer> - Class in com.codingame.gameengine.core
The AbstractMultiplayerPlayer takes care of running each turn of a multiplayer game and computing each visual frame of the replay.
SoloGameManager() - Constructor for class com.codingame.gameengine.core.SoloGameManager
 
start(InputStream, PrintStream) - Static method in class com.codingame.gameengine.core.RefereeMain
 

T

TimeoutException() - Constructor for exception com.codingame.gameengine.core.AbstractPlayer.TimeoutException
 
Tooltip - Class in com.codingame.gameengine.core
The data for a tooltip which appears on the progress bar of the replay of a game to give information about significant game events.
Tooltip(int, String) - Constructor for class com.codingame.gameengine.core.Tooltip
Creates a tooltip which will appear on the replay of the current game.

W

winGame() - Method in class com.codingame.gameengine.core.SoloGameManager
Ends the game as a victory
winGame(String) - Method in class com.codingame.gameengine.core.SoloGameManager
Ends the game as a victory with a green message.
A C D E F G I L M O P R S T W 
Skip navigation links

Copyright © 2019. All rights reserved.