nl.tudelft.goal.ut2004.visualizer.data
Class GameStatusData
java.lang.Object
nl.tudelft.goal.ut2004.visualizer.data.AbstractData
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GameStatusData
public GameStatusData()
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.