cz.cuni.pogamut.MessageObjects
Class GameStatus

java.lang.Object
  extended by cz.cuni.pogamut.MessageObjects.MessageObject
      extended by cz.cuni.pogamut.MessageObjects.GameStatus
All Implemented Interfaces:
Visible, java.io.Serializable, java.lang.Cloneable

public class GameStatus
extends MessageObject
implements java.io.Serializable

GameStatus contains information about teams and players scores, which are stored in two hashmaps

See Also:
Serialized Form

Field Summary
 double damageModifier
          damage from weapons are multiplied by this number
 java.util.HashMap<java.lang.Integer,java.lang.Integer> domPoints
          in case of Domination points, this is filled ...
 java.lang.String enemyFlag
          sent in CTF games, if some enemy bot is carrying flag of your team
 java.lang.String myFlag
          sent in CTF games, if the bot is carrying the flag
 java.util.HashMap<java.lang.Integer,java.lang.Double> playerScores
          List of player scores.
 java.util.HashMap<java.lang.Integer,java.lang.Double> teamScores
           
 
Fields inherited from class cz.cuni.pogamut.MessageObjects.MessageObject
ID, type, types, UnrealID, visible
 
Constructor Summary
GameStatus()
           
GameStatus(int ID, java.lang.String UnrealID)
           
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class cz.cuni.pogamut.MessageObjects.MessageObject
clone, diff, equals, getID, getType, getUnrealID, getVisibility, hasID, isVisible, setID, setType, setUnrealID, setVisible, update
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

playerScores

public java.util.HashMap<java.lang.Integer,java.lang.Double> playerScores
List of player scores. Stored in format InID of player -> Score


teamScores

public java.util.HashMap<java.lang.Integer,java.lang.Double> teamScores

domPoints

public java.util.HashMap<java.lang.Integer,java.lang.Integer> domPoints
in case of Domination points, this is filled ... IntID_of_point -> number of team owning dompoint


myFlag

public java.lang.String myFlag
sent in CTF games, if the bot is carrying the flag


enemyFlag

public java.lang.String enemyFlag
sent in CTF games, if some enemy bot is carrying flag of your team


damageModifier

public double damageModifier
damage from weapons are multiplied by this number

Constructor Detail

GameStatus

public GameStatus()

GameStatus

public GameStatus(int ID,
                  java.lang.String UnrealID)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class MessageObject