public class PlayerLeft extends GBEvent implements IWorldEvent, IWorldChangeEvent
| Modifier and Type | Field and Description |
|---|---|
protected UnrealId |
Id
Unique Id of the player who left.
|
protected String |
Name
The name of the player.
|
static String |
PROTOTYPE
Example how the message looks like - used during parser tests.
|
| Constructor and Description |
|---|
PlayerLeft()
Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package).
|
PlayerLeft(PlayerLeft original)
Cloning constructor.
|
PlayerLeft(UnrealId Id,
String Name)
Creates new instance of command PlayerLeft.
|
| Modifier and Type | Method and Description |
|---|---|
UnrealId |
getId()
Unique Id of the player who left.
|
String |
getName()
The name of the player.
|
long |
getSimTime() |
String |
toHtmlString() |
String |
toString() |
getWorldEventtoJsonLiteralpublic static final String PROTOTYPE
protected UnrealId Id
protected String Name
public PlayerLeft(UnrealId Id, String Name)
Id - Unique Id of the player who left.Name - The name of the player.public PlayerLeft(PlayerLeft original)
public PlayerLeft()
public UnrealId getId()
public String getName()
public long getSimTime()
getSimTime in interface IWorldChangeEventgetSimTime in interface IWorldEventgetSimTime in class GBEventpublic 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.