|
||||||||||
| 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.udk.communication.messages.GBObjectUpdate
cz.cuni.amis.pogamut.udk.communication.messages.gbinfomessages.TeamScore
public class TeamScore
Synchronous message. Contains the info about team score. Corresponding GameBots message is TES.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdatedEvent |
|---|
cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdatedEvent.DestroyWorldObject |
| Field Summary | |
|---|---|
protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
Id
Message identifier. |
static String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected int |
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 int |
Team
Team identifier. |
protected double |
Time
|
| Constructor Summary | |
|---|---|
TeamScore()
Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package). |
|
TeamScore(TeamScore original)
Cloning constructor. |
|
TeamScore(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id,
int Team,
int Score)
Creates new instance of command TeamScore. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
getId()
Message identifier. |
double |
getLastSeenTime()
|
cz.cuni.amis.pogamut.multi.communication.worldview.object.ILocalWorldObject |
getLocal()
|
cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject |
getObject()
Returns original object (if method update() has already been called, for bot-programmer that is always true as the original object is updated and then the event is propagated). |
int |
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.) |
cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedWorldObject |
getShared()
|
long |
getSimTime()
|
cz.cuni.amis.pogamut.multi.communication.worldview.object.IStaticWorldObject |
getStatic()
|
int |
getTeam()
Team identifier. |
protected double |
getTime()
|
int |
hashCode()
|
protected void |
setTime(double time)
|
String |
toHtmlString()
|
String |
toString()
|
cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdateResult |
update(cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject obj)
|
| Methods inherited from class cz.cuni.amis.pogamut.base.communication.messages.InfoMessage |
|---|
toJsonLiteral |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String PROTOTYPE
protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id
protected int Team
protected int Score
protected double Time
| Constructor Detail |
|---|
public TeamScore(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id,
int Team,
int Score)
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.)public TeamScore(TeamScore original)
public TeamScore()
| Method Detail |
|---|
public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()
getId in interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdatedEventgetId in interface cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObjectpublic int getTeam()
public int getScore()
protected double getTime()
protected void setTime(double time)
public double getLastSeenTime()
public cz.cuni.amis.pogamut.multi.communication.worldview.object.ILocalWorldObject getLocal()
public cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedWorldObject getShared()
public cz.cuni.amis.pogamut.multi.communication.worldview.object.IStaticWorldObject getStatic()
public long getSimTime()
getSimTime in interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldChangeEventgetSimTime in interface cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObjectpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdateResult update(cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject obj)
update in interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdatedEventpublic cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject getObject()
public String toString()
toString in class cz.cuni.amis.pogamut.base.communication.messages.InfoMessagepublic String toHtmlString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||