cz.cuni.amis.pogamut.defcon.communication.messages.commands
Class RequestGameSpeed

Package class diagram package RequestGameSpeed
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
      extended by cz.cuni.amis.pogamut.defcon.communication.messages.commands.DefConCommand
          extended by cz.cuni.amis.pogamut.defcon.communication.messages.commands.RequestGameSpeed

public class RequestGameSpeed
extends DefConCommand

Requests to change game speed.


Constructor Summary
RequestGameSpeed(GameSpeed speed)
          Creates new instance of command RequestGameSpeed.
RequestGameSpeed(RequestGameSpeed original)
          Cloning constructor...
 
Method Summary
 GameSpeed getSpeed()
          Requested speed.
 void perform()
          Performs the command - to be used only by the DefConCommandExecutor.
 RequestGameSpeed setSpeed(GameSpeed speed)
          Requested speed.
 String toHtmlString()
          Returns message in html format.
 String toString()
          Returns human readable serialization of the message.
 
Methods inherited from class cz.cuni.amis.pogamut.defcon.communication.messages.commands.DefConCommand
getStringizedFields, toMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RequestGameSpeed

public RequestGameSpeed(GameSpeed speed)
Creates new instance of command RequestGameSpeed. Requests to change game speed.

Parameters:
speed - Requested speed.

RequestGameSpeed

public RequestGameSpeed(RequestGameSpeed original)
Cloning constructor...

Parameters:
original -
Method Detail

getSpeed

public GameSpeed getSpeed()
Requested speed.

Returns:
GameSpeed

setSpeed

public RequestGameSpeed setSpeed(GameSpeed speed)
Requested speed.

Parameters:
speed -
Returns:
this object, allows you to chain setters

perform

public void perform()
Performs the command - to be used only by the DefConCommandExecutor.

Specified by:
perform in class DefConCommand

toString

public String toString()
Returns human readable serialization of the message.

Overrides:
toString in class CommandMessage
Returns:
human readable string

toHtmlString

public String toHtmlString()
Returns message in html format.

Returns:
html message


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