|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.pogamut.base.communication.messages.InfoMessage
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.TeamScoreShared
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.TeamScoreSharedImpl
public class TeamScoreSharedImpl
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 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,
Collection<ISharedProperty> properties)
|
|
| Method Summary | |
|---|---|
TeamScoreSharedImpl |
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. |
void |
setSimTime(long SimTime)
Used by Yylex to slip correct time of the object or programmatically. |
String |
toHtmlString()
|
String |
toString()
|
| Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.TeamScoreShared |
|---|
getCompositeClass, getSimTime |
| 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 |
|---|
protected HashMap<PropertyId,ISharedProperty> propertyMap
protected UnrealId Id
protected IntegerProperty myTeam
protected IntegerProperty myScore
| Constructor Detail |
|---|
public TeamScoreSharedImpl(TeamScoreSharedImpl source)
public TeamScoreSharedImpl(WorldObjectId objectId,
Collection<ISharedProperty> properties)
| Method Detail |
|---|
public void setSimTime(long SimTime)
TeamScoreShared
setSimTime in class TeamScoreSharedpublic TeamScoreSharedImpl clone()
clone in interface ISharedWorldObjectclone in class TeamScoreSharedpublic ISharedProperty getProperty(PropertyId id)
public Map<PropertyId,ISharedProperty> getProperties()
public UnrealId getId()
getId in interface IWorldObjectgetId in class TeamScoreSharedpublic Integer getTeam()
getTeam in class TeamScoreSharedpublic Integer getScore()
getScore in class TeamScoreSharedpublic String toString()
toString in class TeamScoreSharedpublic String toHtmlString()
toHtmlString in class TeamScoreShared
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||