public class GlobalChat extends GBEvent implements cz.cuni.amis.pogamut.base.communication.worldview.event.IWorldEvent, cz.cuni.amis.pogamut.base.communication.translator.event.IWorldChangeEvent
Modifier and Type | Field and Description |
---|---|
protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
Id
Unique UnrealId of the sender.
|
protected String |
Name
Human readable name of the sender.
|
static String |
PROTOTYPE
Example how the message looks like - used during parser tests.
|
protected String |
Text
A human readable message sent by another player in the game
on the global channel.
|
Constructor and Description |
---|
GlobalChat()
Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package).
|
GlobalChat(GlobalChat original)
Cloning constructor.
|
GlobalChat(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id,
String Name,
String Text)
Creates new instance of command GlobalChat.
|
Modifier and Type | Method and Description |
---|---|
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
getId()
Unique UnrealId of the sender.
|
String |
getName()
Human readable name of the sender.
|
long |
getSimTime() |
String |
getText()
A human readable message sent by another player in the game
on the global channel.
|
String |
toHtmlString() |
String |
toString() |
getWorldEvent
public static final String PROTOTYPE
protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id
protected String Name
protected String Text
public GlobalChat(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id, String Name, String Text)
Id
- Unique UnrealId of the sender.Name
- Human readable name of the sender.Text
- A human readable message sent by another player in the game
on the global channel.public GlobalChat(GlobalChat original)
public GlobalChat()
public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()
public String getName()
public String getText()
public long getSimTime()
getSimTime
in interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldChangeEvent
getSimTime
in interface cz.cuni.amis.pogamut.base.communication.worldview.event.IWorldEvent
getSimTime
in class GBEvent
public String toString()
toString
in class cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
public String toHtmlString()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.