public class TeamChat
extends cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
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 long |
SimTime |
protected String |
Text
A human readable message sent by a team mate in the game on
the private team channel.
|
Constructor and Description |
---|
TeamChat()
Parameter-less contructor for the message.
|
TeamChat(TeamChat original)
Cloning constructor from the full message.
|
TeamChat(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id,
String Name,
String Text)
Creates new instance of the message TeamChat.
|
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()
Simulation time in MILLI SECONDS !!!
|
String |
getText()
A human readable message sent by a team mate in the game on
the private team channel.
|
protected void |
setSimTime(long SimTime)
Used by Yylex to slip correct time of the object or programmatically.
|
String |
toHtmlString() |
String |
toString() |
public static final String PROTOTYPE
protected long SimTime
protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id
protected String Name
protected String Text
public TeamChat()
public TeamChat(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 a team mate in the game on
the private team channel.public TeamChat(TeamChat original)
original
- 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
protected void setSimTime(long SimTime)
public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()
public String getName()
public String getText()
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.