|
|||||||||
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 java.lang.String |
GameMessage
Message that will be displayed in the middle of the HUD. |
protected java.lang.Double |
GameMessageTime
Time the displayed message will stay on the HUD. |
static java.lang.String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected java.lang.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(java.lang.Boolean Restart,
java.lang.String GameMessage,
java.lang.Double GameMessageTime)
Creates new instance of command GameConfiguration. |
|
GameConfiguration(GameConfiguration original)
Cloning constructor. |
Method Summary | |
---|---|
java.lang.String |
getGameMessage()
Message that will be displayed in the middle of the HUD. |
java.lang.Double |
getGameMessageTime()
Time the displayed message will stay on the HUD. |
java.lang.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(java.lang.String GameMessage)
Message that will be displayed in the middle of the HUD. |
GameConfiguration |
setGameMessageTime(java.lang.Double GameMessageTime)
Time the displayed message will stay on the HUD. |
GameConfiguration |
setRestart(java.lang.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). |
java.lang.String |
toHtmlString()
|
java.lang.String |
toMessage()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROTOTYPE
protected java.lang.Boolean Restart
protected java.lang.String GameMessage
protected java.lang.Double GameMessageTime
Constructor Detail |
---|
public GameConfiguration(java.lang.Boolean Restart, java.lang.String GameMessage, java.lang.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 java.lang.Boolean isRestart()
public GameConfiguration setRestart(java.lang.Boolean Restart)
public java.lang.String getGameMessage()
public GameConfiguration setGameMessage(java.lang.String GameMessage)
public java.lang.Double getGameMessageTime()
public GameConfiguration setGameMessageTime(java.lang.Double GameMessageTime)
public java.lang.String toString()
toString
in class CommandMessage
public java.lang.String toHtmlString()
public java.lang.String toMessage()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |