|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.base.communication.messages.CommandMessage cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands.GameConfiguration
public class GameConfiguration
Representation of the GameBots2004 command CONFGAME. Configures various attributes of the game.
Field Summary | |
---|---|
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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String PROTOTYPE
protected Boolean Restart
protected String GameMessage
protected Double GameMessageTime
Constructor Detail |
---|
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
- Method Detail |
---|
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 CommandMessage
public String toHtmlString()
public String toMessage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |