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

Package class diagram package SetGameSpeed
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
      extended by cz.cuni.amis.pogamut.udk.communication.messages.gbcommands.SetGameSpeed

public class SetGameSpeed
extends CommandMessage

Will set speed of the game. Corresponding GameBots command is SETGAMESPEED.


Field Summary
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

Speed

protected 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(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!


SetGameSpeed

public SetGameSpeed(SetGameSpeed original)
Cloning constructor.

Method Detail

getSpeed

public 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(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 String toString()
Overrides:
toString in class CommandMessage

toHtmlString

public String toHtmlString()

toMessage

public String toMessage()


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.