nl.tudelft.goal.ut2004.visualizer.data
Class GameStatusData

Package class diagram package GameStatusData
java.lang.Object
  extended by nl.tudelft.goal.ut2004.visualizer.data.AbstractData
      extended by nl.tudelft.goal.ut2004.visualizer.data.GameStatusData

public class GameStatusData
extends AbstractData

AbstractData object that keeps track of the objects that refer to the status of the game. More precisely stores the latest GameStatus and FlagInfo objects.

Author:
Lennard de Rijk

Constructor Summary
GameStatusData()
           
 
Method Summary
 Collection<cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.FlagInfo> getFlagInfoCollection()
           
 cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.GameInfo getGameInfo()
           
 Collection<cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.TeamScore> getTeamScoreCollection()
           
 void serverChanged(cz.cuni.amis.pogamut.ut2004.server.IUT2004Server server)
          Listener for the server.
 
Methods inherited from class nl.tudelft.goal.ut2004.visualizer.data.AbstractData
notifyListeners, subscribe, unsubscribe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GameStatusData

public GameStatusData()
Method Detail

serverChanged

public void serverChanged(cz.cuni.amis.pogamut.ut2004.server.IUT2004Server server)
Listener for the server. May be called from another thread.

Specified by:
serverChanged in class AbstractData
Parameters:
server - the new server or null if the connection was lost.

getGameInfo

public cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.GameInfo getGameInfo()
Returns:
The most recent GameStatus

getFlagInfoCollection

public Collection<cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.FlagInfo> getFlagInfoCollection()
Returns:
the flagInfoCollection

getTeamScoreCollection

public Collection<cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.TeamScore> getTeamScoreCollection()
Returns:
the teamScoreCollection


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