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

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

public class GameRunningChanged
extends DefConEvent

Sent whenever the DefCon game begins (game switches to the map and unit-placing phase begins) or stops.


Constructor Summary
GameRunningChanged(Boolean running, double time)
          Creates new instance of message GameRunningChanged.
 
Method Summary
 Boolean getRunning()
          Is game running?
 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

GameRunningChanged

public GameRunningChanged(Boolean running,
                          double time)
Creates new instance of message GameRunningChanged. Sent whenever the DefCon game begins (game switches to the map and unit-placing phase begins) or stops.

Parameters:
running - Is game running?
time -
Method Detail

getRunning

public Boolean getRunning()
Is game running?

Returns:
Boolean

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 © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.