|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.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 String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected Double |
Speed
Can range from 0.1 to 50. |
Constructor Summary | |
---|---|
SetGameSpeed()
Creates new instance of command SetGameSpeed. |
|
SetGameSpeed(Double Speed)
Creates new instance of command SetGameSpeed. |
|
SetGameSpeed(SetGameSpeed original)
Cloning constructor. |
Method Summary | |
---|---|
Double |
getSpeed()
Can range from 0.1 to 50. |
SetGameSpeed |
setSpeed(Double Speed)
Can range from 0.1 to 50. |
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 Double Speed
Constructor Detail |
---|
public SetGameSpeed(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 Double getSpeed()
public SetGameSpeed setSpeed(Double Speed)
public String toString()
toString
in class cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
public String toHtmlString()
public String toMessage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |