|
||||||||||
| 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.GBEvent
cz.cuni.amis.pogamut.udk.communication.messages.gbinfomessages.PlayerScore
public class PlayerScore
Synchronous message. Contains the info about player score. Corresponding GameBots message is PLS.
| Field Summary | |
|---|---|
protected int |
Deaths
Number of players deaths. |
protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
Id
Unique Id of the player. |
protected double |
lastSeenTime
When was the last time we've received info about this object. |
static 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). |
| Constructor Summary | |
|---|---|
PlayerScore()
Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package). |
|
PlayerScore(double lastSeenTime,
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id,
int Score,
int Deaths)
Creates new instance of command PlayerScore. |
|
PlayerScore(PlayerScore original)
Cloning constructor. |
|
| Method Summary | |
|---|---|
int |
getDeaths()
Number of players deaths. |
cz.cuni.amis.pogamut.unreal.communication.messages.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()
|
String |
toHtmlString()
|
String |
toString()
|
| Methods inherited from class cz.cuni.amis.pogamut.udk.communication.messages.GBEvent |
|---|
getWorldEvent |
| Methods inherited from class cz.cuni.amis.pogamut.base.communication.messages.InfoMessage |
|---|
toJsonLiteral |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String PROTOTYPE
protected double lastSeenTime
protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id
protected int Score
protected int Deaths
| Constructor Detail |
|---|
public PlayerScore(double lastSeenTime,
cz.cuni.amis.pogamut.unreal.communication.messages.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)
public PlayerScore()
| Method Detail |
|---|
public double getLastSeenTime()
public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()
public int getScore()
public int getDeaths()
public long getSimTime()
getSimTime in interface IWorldChangeEventgetSimTime in interface IWorldEventgetSimTime in class GBEventpublic String toString()
toString in class InfoMessagepublic String toHtmlString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||