|
|||||||||
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.SetGameSpeed
public class SetGameSpeed
Representation of the GameBots2004 command SETGAMESPEED. Will set speed of the game.
Field Summary | |
---|---|
static java.lang.String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected java.lang.Double |
Speed
Can range from 0.1 to 50. |
Constructor Summary | |
---|---|
SetGameSpeed()
Creates new instance of command SetGameSpeed. |
|
SetGameSpeed(java.lang.Double Speed)
Creates new instance of command SetGameSpeed. |
|
SetGameSpeed(SetGameSpeed original)
Cloning constructor. |
Method Summary | |
---|---|
java.lang.Double |
getSpeed()
Can range from 0.1 to 50. |
SetGameSpeed |
setSpeed(java.lang.Double Speed)
Can range from 0.1 to 50. |
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.Double Speed
Constructor Detail |
---|
public SetGameSpeed(java.lang.Double Speed)
Speed
- Can range from 0.1 to 50. 1 is normal game speed. The
reasonable speeding up is around 10. The game engine stops
catching up at higher values.public SetGameSpeed()
public SetGameSpeed(SetGameSpeed original)
original
- Method Detail |
---|
public java.lang.Double getSpeed()
public SetGameSpeed setSpeed(java.lang.Double Speed)
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 |