public class TeamScore extends GBObjectUpdate implements IGBWorldObjectEvent, IWorldObject
IWorldObjectUpdatedEvent.DestroyWorldObject| Modifier and Type | Field and Description |
|---|---|
protected 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 and Description |
|---|
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(UnrealId Id,
int Team,
int Score)
Creates new instance of command TeamScore.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
UnrealId |
getId()
Message identifier.
|
double |
getLastSeenTime() |
ILocalWorldObject |
getLocal() |
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.)
|
ISharedWorldObject |
getShared() |
long |
getSimTime() |
IStaticWorldObject |
getStatic() |
int |
getTeam()
Team identifier.
|
protected double |
getTime() |
int |
hashCode() |
protected void |
setTime(double time) |
String |
toHtmlString() |
String |
toString() |
IWorldObjectUpdateResult |
update(IWorldObject obj) |
toJsonLiteralpublic static final String PROTOTYPE
protected UnrealId Id
protected int Team
protected int Score
protected double Time
public TeamScore(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()
public UnrealId getId()
getId in interface IWorldObjectUpdatedEventgetId in interface IWorldObjectpublic int getTeam()
public int getScore()
protected double getTime()
protected void setTime(double time)
public double getLastSeenTime()
public ILocalWorldObject getLocal()
public ISharedWorldObject getShared()
public IStaticWorldObject getStatic()
public long getSimTime()
getSimTime in interface IWorldChangeEventgetSimTime in interface IWorldObjectpublic IWorldObjectUpdateResult update(IWorldObject obj)
update in interface IWorldObjectUpdatedEventpublic IWorldObject getObject()
public String toString()
toString in class InfoMessagepublic String toHtmlString()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.