|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.base.communication.messages.InfoMessage cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.PlayerScore
public class PlayerScore
Definition of the event PLS.
Complete message documentation: Synchronous message. Contains the info about player score.
Field Summary | |
---|---|
protected int |
Deaths
Number of players deaths. |
protected UnrealId |
Id
Unique Id of the player. |
protected double |
lastSeenTime
When was the last time we've received info about this object. |
static java.lang.String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected int |
Score
Number of player frags (how many times the player killed other players) or number of victory points (player frags + some special measurement that can differ from game type to game type). |
protected long |
SimTime
|
Constructor Summary | |
---|---|
PlayerScore()
Parameter-less contructor for the message. |
|
PlayerScore(double lastSeenTime,
UnrealId Id,
int Score,
int Deaths)
Creates new instance of the message PlayerScore. |
|
PlayerScore(PlayerScore original)
Cloning constructor from the full message. |
Method Summary | |
---|---|
int |
getDeaths()
Number of players deaths. |
UnrealId |
getId()
Unique Id of the player. |
double |
getLastSeenTime()
When was the last time we've received info about this object. |
int |
getScore()
Number of player frags (how many times the player killed other players) or number of victory points (player frags + some special measurement that can differ from game type to game type). |
long |
getSimTime()
Returns the simulation time when the event has occurred. |
protected 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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROTOTYPE
protected long SimTime
protected double lastSeenTime
protected UnrealId Id
protected int Score
protected int Deaths
Constructor Detail |
---|
public PlayerScore()
public PlayerScore(double lastSeenTime, UnrealId Id, int Score, int Deaths)
lastSeenTime
- When was the last time we've received info about this
object.Id
- Unique Id of the player.Score
- Number of player frags (how many times the player killed
other players) or number of victory points (player frags +
some special measurement that can differ from game type to
game type).Deaths
- Number of players deaths.public PlayerScore(PlayerScore original)
original
- Method Detail |
---|
public long getSimTime()
IWorldEvent
getSimTime
in interface IWorldChangeEvent
getSimTime
in interface IWorldEvent
protected void setSimTime(long SimTime)
public double getLastSeenTime()
public UnrealId getId()
public int getScore()
public int getDeaths()
public java.lang.String toString()
toString
in class InfoMessage
public java.lang.String toHtmlString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |