cz.cuni.amis.pogamut.defcon.communication.messages.infos
Class GameSpeedChanged

Package class diagram package GameSpeedChanged
java.lang.Object
  extended by cz.cuni.amis.pogamut.defcon.communication.messages.infos.DefConEvent
      extended by cz.cuni.amis.pogamut.defcon.communication.messages.infos.GameSpeedChanged
All Implemented Interfaces:
IWorldChangeEvent, IWorldEvent, cz.cuni.amis.utils.listener.Event, IDefConBasicEvent

public class GameSpeedChanged
extends DefConEvent

Informs about change in game speed.


Constructor Summary
GameSpeedChanged(GameSpeed oldSpeed, GameSpeed newSpeed, double time)
          Creates new instance of message GameSpeedChanged.
 
Method Summary
 GameSpeed getNewSpeed()
          New speed.
 GameSpeed getOldSpeed()
          Old 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.infos.DefConEvent
getSimTime, getStringizedFields, getTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GameSpeedChanged

public GameSpeedChanged(GameSpeed oldSpeed,
                        GameSpeed newSpeed,
                        double time)
Creates new instance of message GameSpeedChanged. Informs about change in game speed.

Parameters:
oldSpeed - Old speed.
newSpeed - New speed.
time -
Method Detail

getOldSpeed

public GameSpeed getOldSpeed()
Old speed.

Returns:
GameSpeed

getNewSpeed

public GameSpeed getNewSpeed()
New speed.

Returns:
GameSpeed

toString

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

Overrides:
toString in class Object
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.