public abstract class AbstractMultiplayerPlayer extends AbstractPlayer
AbstractPlayer.TimeoutExceptionindex| Constructor and Description |
|---|
AbstractMultiplayerPlayer() |
| Modifier and Type | Method and Description |
|---|---|
void |
deactivate()
Deactivate a player.
|
void |
deactivate(String reason)
Deactivate a player and adds a tooltip with the reason.
|
int |
getColorToken()
Returns an integer that will be converted into the player's real color by the viewer.
|
int |
getIndex()
Get player index from 0 (included) to number of players (excluded).
|
int |
getScore()
Get current score.
|
boolean |
isActive()
Returns true is the player is still active in the game (can be executed).
|
void |
setScore(int score)
Set current score.
|
execute, getAvatarToken, getExpectedOutputLines, getNicknameToken, getOutputs, sendInputLinepublic final int getColorToken()
public final boolean isActive()
public final int getIndex()
public final int getScore()
public final void setScore(int score)
score - public final void deactivate()
public final void deactivate(String reason)
reason - Message to display in the tooltip.Copyright © 2019. All rights reserved.