public class GameConfiguration extends CommandMessage
| Modifier and Type | Field and Description |
|---|---|
protected String |
GameMessage
Message that will be displayed in the middle of the HUD.
|
protected Double |
GameMessageTime
Time the displayed message will stay on the HUD.
|
static String |
PROTOTYPE
Example how the message looks like - used during parser tests.
|
protected Boolean |
Restart
When set to true, the game state will be restarted (all scores reset to
0 and all players and bots will be restarted).
|
| Constructor and Description |
|---|
GameConfiguration()
Creates new instance of command GameConfiguration.
|
GameConfiguration(Boolean Restart,
String GameMessage,
Double GameMessageTime)
Creates new instance of command GameConfiguration.
|
GameConfiguration(GameConfiguration original)
Cloning constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getGameMessage()
Message that will be displayed in the middle of the HUD.
|
Double |
getGameMessageTime()
Time the displayed message will stay on the HUD.
|
Boolean |
isRestart()
When set to true, the game state will be restarted (all scores reset to
0 and all players and bots will be restarted).
|
GameConfiguration |
setGameMessage(String GameMessage)
Message that will be displayed in the middle of the HUD.
|
GameConfiguration |
setGameMessageTime(Double GameMessageTime)
Time the displayed message will stay on the HUD.
|
GameConfiguration |
setRestart(Boolean Restart)
When set to true, the game state will be restarted (all scores reset to
0 and all players and bots will be restarted).
|
String |
toHtmlString() |
String |
toMessage() |
String |
toString() |
public static final String PROTOTYPE
protected Boolean Restart
protected String GameMessage
protected Double GameMessageTime
public GameConfiguration(Boolean Restart, String GameMessage, Double GameMessageTime)
Restart - When set to true, the game state will be restarted (all scores reset to
0 and all players and bots will be restarted). This does not affect
Unreal native bots! Note that the restart is then announced by GameRestarted message and when finished
another GameRestarted message is sent to mark the end.GameMessage - Message that will be displayed in the middle of the HUD.GameMessageTime - Time the displayed message will stay on the HUD.public GameConfiguration()
public GameConfiguration(GameConfiguration original)
original - public Boolean isRestart()
public GameConfiguration setRestart(Boolean Restart)
public String getGameMessage()
public GameConfiguration setGameMessage(String GameMessage)
public Double getGameMessageTime()
public GameConfiguration setGameMessageTime(Double GameMessageTime)
public String toString()
toString in class CommandMessagepublic String toHtmlString()
public String toMessage()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.