cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands
Class SetGameSpeed

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands.SetGameSpeed

public class SetGameSpeed
extends CommandMessage

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

PROTOTYPE

public static final java.lang.String PROTOTYPE
Example how the message looks like - used during parser tests.

See Also:
Constant Field Values

Speed

protected java.lang.Double 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.

Constructor Detail

SetGameSpeed

public SetGameSpeed(java.lang.Double Speed)
Creates new instance of command SetGameSpeed. Will set speed of the game. Corresponding GameBots message for this command is SETGAMESPEED.

Parameters:
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.

SetGameSpeed

public SetGameSpeed()
Creates new instance of command SetGameSpeed. Will set speed of the game. Corresponding GameBots message for this command is SETGAMESPEED.

WARNING: this is empty-command constructor, you have to use setters to fill it up with data that should be sent to GameBots2004!


SetGameSpeed

public SetGameSpeed(SetGameSpeed original)
Cloning constructor.

Parameters:
original -
Method Detail

getSpeed

public java.lang.Double getSpeed()
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.


setSpeed

public SetGameSpeed setSpeed(java.lang.Double 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.


toString

public java.lang.String toString()
Overrides:
toString in class CommandMessage

toHtmlString

public java.lang.String toHtmlString()

toMessage

public java.lang.String toMessage()