cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages
Class TeamScoreSharedImpl

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.TeamScoreSharedImpl
All Implemented Interfaces:
IWorldObject, ISharedWorldObject, java.lang.Cloneable

public class TeamScoreSharedImpl
extends TeamScoreShared

Implementation of the shared part of the GameBots2004 message TES.

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


Nested Class Summary
static class TeamScoreSharedImpl.TeamScoreSharedUpdate
           
 
Field Summary
protected  UnrealId Id
          Message identifier.
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  java.util.HashMap<PropertyId,ISharedProperty> propertyMap
           
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.TeamScoreShared
ScorePropertyToken, SharedPropertyTokens, SimTime, TeamPropertyToken
 
Constructor Summary
TeamScoreSharedImpl(TeamScoreSharedImpl source)
           
TeamScoreSharedImpl(WorldObjectId objectId, java.util.Collection<ISharedProperty> properties)
           
 
Method Summary
 TeamScoreSharedImpl clone()
           
 UnrealId getId()
          Message identifier.
 java.util.Map<PropertyId,ISharedProperty> getProperties()
           
 ISharedProperty getProperty(PropertyId id)
           
 java.lang.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.)
 java.lang.Integer getTeam()
          Team identifier.
 void setSimTime(long SimTime)
          Used by Yylex to slip correct time of the object or programmatically.
 java.lang.String toHtmlString()
           
 java.lang.String toString()
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.TeamScoreShared
getCompositeClass, getSimTime
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

propertyMap

protected java.util.HashMap<PropertyId,ISharedProperty> propertyMap

Id

protected UnrealId Id
Message identifier.


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

TeamScoreSharedImpl

public TeamScoreSharedImpl(TeamScoreSharedImpl source)

TeamScoreSharedImpl

public TeamScoreSharedImpl(WorldObjectId objectId,
                           java.util.Collection<ISharedProperty> properties)
Method Detail

setSimTime

public void setSimTime(long SimTime)
Description copied from class: TeamScoreShared
Used by Yylex to slip correct time of the object or programmatically.

Overrides:
setSimTime in class TeamScoreShared

clone

public TeamScoreSharedImpl clone()
Specified by:
clone in interface ISharedWorldObject
Specified by:
clone in class TeamScoreShared

getProperty

public ISharedProperty getProperty(PropertyId id)

getProperties

public java.util.Map<PropertyId,ISharedProperty> getProperties()

getId

public UnrealId getId()
Message identifier.

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

getTeam

public java.lang.Integer getTeam()
Team identifier.

Specified by:
getTeam in class TeamScoreShared

getScore

public java.lang.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 java.lang.String toString()
Overrides:
toString in class TeamScoreShared

toHtmlString

public java.lang.String toHtmlString()
Overrides:
toHtmlString in class TeamScoreShared