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

Package class diagram package 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, ICompositeWorldObjectUpdatedEvent, ICompositeWorldObject, cz.cuni.amis.utils.listener.Event

public class TeamScoreMessage
extends TeamScore
implements IWorldObjectUpdatedEvent, ICompositeWorldObjectUpdatedEvent

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
 
Nested classes/interfaces inherited from interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdatedEvent
IWorldObjectUpdatedEvent.DestroyWorldObject
 
Field Summary
protected  UnrealId Id
          Message identifier.
protected  boolean Id_Set
          Whether property 'Id' was received from GB2004.
protected  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  boolean Score_Set
          Whether property 'Score' was received from GB2004.
protected  Integer Team
          Team identifier.
protected  boolean Team_Set
          Whether property 'Team' was received from GB2004.
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, Integer Team, Integer Score)
          Creates new instance of the message TeamScore.
 
Method Summary
 UnrealId getId()
          Message identifier.
 TeamScoreLocal getLocal()
           
 ILocalWorldObjectUpdatedEvent getLocalEvent()
           
 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()
           
 ISharedWorldObjectUpdatedEvent getSharedEvent()
           
 TeamScoreStatic getStatic()
           
 IStaticWorldObjectUpdatedEvent getStaticEvent()
           
 Integer getTeam()
          Team identifier.
 ITeamId getTeamId()
           
protected  void setTeamId(ITeamId TeamId)
          Used by Yylex to slip corretn TeamId.
 String toHtmlString()
           
 String toString()
           
 IWorldObjectUpdateResult<IWorldObject> update(IWorldObject object)
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.TeamScore
getSimTime, setSimTime, toJsonLiteral
 
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.


Id_Set

protected boolean Id_Set
Whether property 'Id' was received from GB2004.


Team

protected Integer Team
Team identifier.


Team_Set

protected boolean Team_Set
Whether property 'Team' was received from GB2004.


Score

protected 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.)


Score_Set

protected boolean Score_Set
Whether property 'Score' was received from GB2004.

Constructor Detail

TeamScoreMessage

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


TeamScoreMessage

public TeamScoreMessage(UnrealId Id,
                        Integer Team,
                        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 interface ICompositeWorldObjectUpdatedEvent
Specified by:
getId in class TeamScore

getTeam

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

Specified by:
getTeam in class TeamScore

getScore

public 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

getLocalEvent

public ILocalWorldObjectUpdatedEvent getLocalEvent()
Specified by:
getLocalEvent in interface ICompositeWorldObjectUpdatedEvent

getSharedEvent

public ISharedWorldObjectUpdatedEvent getSharedEvent()
Specified by:
getSharedEvent in interface ICompositeWorldObjectUpdatedEvent

getStaticEvent

public IStaticWorldObjectUpdatedEvent getStaticEvent()
Specified by:
getStaticEvent in interface ICompositeWorldObjectUpdatedEvent

toString

public String toString()
Overrides:
toString in class TeamScore

toHtmlString

public String toHtmlString()
Overrides:
toHtmlString in class TeamScore


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