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

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.TeamScore
          extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.TeamScoreMessage
All Implemented Interfaces:
IWorldChangeEvent, IWorldObjectUpdatedEvent, IWorldEvent, IWorldObject, ICompositeWorldObject, Event

public class TeamScoreMessage
extends TeamScore
implements IWorldObjectUpdatedEvent

Implementation of the GameBots2004 message TES contains also its Local/Shared/Static subpart class definitions..

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


Nested Class Summary
 class TeamScoreMessage.TeamScoreLocalMessage
          Implementation of the local part of the GameBots2004 message TES, used to facade TESMessage.
 class TeamScoreMessage.TeamScoreSharedMessage
          Implementation of the shared part of the GameBots2004 message TES, used to facade TESMessage.
 class TeamScoreMessage.TeamScoreStaticMessage
          Implementation of the static part of the GameBots2004 message TES, used to facade TESMessage.
 
Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.TeamScore
TeamScore.TeamScoreUpdate
 
Field Summary
protected  UnrealId Id
          Message identifier.
protected  java.lang.Integer Score
          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  java.lang.Integer Team
          Team identifier.
protected  ITeamId TeamId
           
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.TeamScore
PROTOTYPE, SimTime
 
Constructor Summary
TeamScoreMessage()
          Parameter-less contructor for the message.
TeamScoreMessage(TeamScoreMessage original)
          Cloning constructor from the full message.
TeamScoreMessage(UnrealId Id, java.lang.Integer Team, java.lang.Integer Score)
          Creates new instance of the message TeamScore.
 
Method Summary
 UnrealId getId()
          Message identifier.
 TeamScoreLocal getLocal()
           
 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.)
 TeamScoreShared getShared()
           
 TeamScoreStatic getStatic()
           
 java.lang.Integer getTeam()
          Team identifier.
 ITeamId getTeamId()
           
protected  void setTeamId(ITeamId TeamId)
          Used by Yylex to slip corretn TeamId.
 java.lang.String toHtmlString()
           
 java.lang.String toString()
           
 IWorldObjectUpdateResult<IWorldObject> update(IWorldObject object)
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.TeamScore
getSimTime, setSimTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldChangeEvent
getSimTime
 

Field Detail

TeamId

protected ITeamId TeamId

Id

protected UnrealId Id
Message identifier.


Team

protected java.lang.Integer Team
Team identifier.


Score

protected java.lang.Integer Score
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

public TeamScoreMessage()
Parameter-less contructor for the message.


TeamScoreMessage

public TeamScoreMessage(UnrealId Id,
                        java.lang.Integer Team,
                        java.lang.Integer Score)
Creates new instance of the message TeamScore. Synchronous message. Contains the info about team score. Corresponding GameBots message is TES.

Parameters:
Id - Message identifier.
Team - Team identifier.
Score - 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.)

TeamScoreMessage

public TeamScoreMessage(TeamScoreMessage original)
Cloning constructor from the full message.

Parameters:
original -
Method Detail

setTeamId

protected void setTeamId(ITeamId TeamId)
Used by Yylex to slip corretn TeamId.


getTeamId

public ITeamId getTeamId()

getId

public UnrealId getId()
Description copied from class: TeamScore
Message identifier.

Specified by:
getId in interface IWorldObjectUpdatedEvent
Specified by:
getId in interface IWorldObject
Specified by:
getId in class TeamScore
Returns:

getTeam

public java.lang.Integer getTeam()
Description copied from class: TeamScore
Team identifier.

Specified by:
getTeam in class TeamScore

getScore

public java.lang.Integer getScore()
Description copied from class: TeamScore
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 TeamScore

getLocal

public TeamScoreLocal getLocal()
Specified by:
getLocal in interface ICompositeWorldObject

getShared

public TeamScoreShared getShared()
Specified by:
getShared in interface ICompositeWorldObject

getStatic

public TeamScoreStatic getStatic()
Specified by:
getStatic in interface ICompositeWorldObject

update

public IWorldObjectUpdateResult<IWorldObject> update(IWorldObject object)
Specified by:
update in interface IWorldObjectUpdatedEvent

toString

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

toHtmlString

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