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

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.TeamScoreCompositeImpl
All Implemented Interfaces:
IWorldChangeEvent, IWorldEvent, IWorldObject, ICompositeWorldObject, Event

public class TeamScoreCompositeImpl
extends TeamScore

Composite implementation of the TES abstract message. It wraps Local/Shared/Static parts in single object allowing to presenting a nice facade for users.

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


Nested Class Summary
 
Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.TeamScore
TeamScore.TeamScoreUpdate
 
Field Summary
protected  TeamScoreLocalImpl partLocal
           
protected  TeamScoreStaticImpl partStatic
           
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.TeamScore
PROTOTYPE, SimTime
 
Constructor Summary
TeamScoreCompositeImpl()
          Parameter-less contructor for the message.
TeamScoreCompositeImpl(TeamScoreCompositeImpl original)
          Cloning constructor.
TeamScoreCompositeImpl(TeamScoreLocalImpl partLocal, TeamScoreSharedImpl partShared, TeamScoreStaticImpl partStatic)
          Composite-impl constructor.
 
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.
 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.TeamScore
getSimTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

partStatic

protected TeamScoreStaticImpl partStatic

partLocal

protected TeamScoreLocalImpl partLocal
Constructor Detail

TeamScoreCompositeImpl

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


TeamScoreCompositeImpl

public TeamScoreCompositeImpl(TeamScoreLocalImpl partLocal,
                              TeamScoreSharedImpl partShared,
                              TeamScoreStaticImpl partStatic)
Composite-impl constructor. It assembles the message from its three fragments - local/shared/static.

Parameters:
partLocal - local-part of the message
partShared - shared-part of the message
partStatic - static-part of the message

TeamScoreCompositeImpl

public TeamScoreCompositeImpl(TeamScoreCompositeImpl original)
Cloning constructor.

Parameters:
original -
Method Detail

setSimTime

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

Overrides:
setSimTime in class TeamScore

getStatic

public TeamScoreStatic getStatic()

getLocal

public TeamScoreLocal getLocal()

getShared

public TeamScoreShared getShared()

getId

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

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

toString

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

toHtmlString

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