cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages
Class TeamScoreMessage.TeamScoreSharedMessage

Package class diagram package TeamScoreMessage.TeamScoreSharedMessage
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.TeamScoreShared
          extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.TeamScoreMessage.TeamScoreSharedMessage
All Implemented Interfaces:
IWorldObject, ISharedWorldObject, Cloneable
Enclosing class:
TeamScoreMessage

public class TeamScoreMessage.TeamScoreSharedMessage
extends TeamScoreShared

Implementation of the shared part of the GameBots2004 message TES, used to facade TESMessage.

Complete message documentation: Synchronous message. Contains the info about team score.


Field Summary
protected  IntegerProperty myScore
          The score of the team (can be some special measurement that differs from game type to game type - number of stolen flags in CTF game, number of team frags in TeamGame, etc.)
protected  IntegerProperty myTeam
          Team identifier.
protected  HashMap<PropertyId,ISharedProperty> propertyMap
           
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.TeamScoreShared
ScorePropertyToken, SharedPropertyTokens, SimTime, TeamPropertyToken
 
Constructor Summary
TeamScoreMessage.TeamScoreSharedMessage()
           
 
Method Summary
 TeamScoreMessage.TeamScoreSharedMessage clone()
           
 UnrealId getId()
          Message identifier.
 Map<PropertyId,ISharedProperty> getProperties()
           
 ISharedProperty getProperty(PropertyId id)
           
 Integer getScore()
          The score of the team (can be some special measurement that differs from game type to game type - number of stolen flags in CTF game, number of team frags in TeamGame, etc.)
 Integer getTeam()
          Team identifier.
 String toHtmlString()
           
 String toString()
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.TeamScoreShared
getCompositeClass, getSimTime, setSimTime
 
Methods inherited from class cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
toJsonLiteral
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

propertyMap

protected HashMap<PropertyId,ISharedProperty> propertyMap

myTeam

protected IntegerProperty myTeam
Team identifier.


myScore

protected IntegerProperty myScore
The score of the team (can be some special measurement that differs from game type to game type - number of stolen flags in CTF game, number of team frags in TeamGame, etc.)

Constructor Detail

TeamScoreMessage.TeamScoreSharedMessage

public TeamScoreMessage.TeamScoreSharedMessage()
Method Detail

clone

public TeamScoreMessage.TeamScoreSharedMessage clone()
Specified by:
clone in interface ISharedWorldObject
Specified by:
clone in class TeamScoreShared

getProperty

public ISharedProperty getProperty(PropertyId id)

getProperties

public Map<PropertyId,ISharedProperty> getProperties()

getId

public UnrealId getId()
Message identifier.

Specified by:
getId in interface IWorldObject
Specified by:
getId in class TeamScoreShared

getTeam

public Integer getTeam()
Team identifier.

Specified by:
getTeam in class TeamScoreShared

getScore

public Integer getScore()
The score of the team (can be some special measurement that differs from game type to game type - number of stolen flags in CTF game, number of team frags in TeamGame, etc.)

Specified by:
getScore in class TeamScoreShared

toString

public String toString()
Overrides:
toString in class TeamScoreShared

toHtmlString

public String toHtmlString()
Overrides:
toHtmlString in class TeamScoreShared


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