|
||||||||||
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.CommandMessage cz.cuni.amis.pogamut.udk.communication.messages.gbcommands.SendMessage
public class SendMessage
Send a message to the world or just your team. Corresponding GameBots command is MESSAGE.
Field Summary | |
---|---|
protected double |
FadeOut
Enables text bubble. |
protected boolean |
Global
If True it is sent to everyone. |
protected UnrealId |
Id
Here we can specify Id of the bot, that will receive this message privately (with "Private:" string at the beginning of the message). |
protected String |
Text
Text to send. |
Constructor Summary | |
---|---|
SendMessage()
Creates new instance of command SendMessage. |
|
SendMessage(SendMessage original)
Cloning constructor. |
|
SendMessage(UnrealId Id,
String Text,
boolean Global,
double FadeOut)
Creates new instance of command SendMessage. |
Method Summary | |
---|---|
double |
getFadeOut()
Enables text bubble. |
UnrealId |
getId()
Here we can specify Id of the bot, that will receive this message privately (with "Private:" string at the beginning of the message). |
String |
getText()
Text to send. |
boolean |
isGlobal()
If True it is sent to everyone. |
SendMessage |
setFadeOut(double FadeOut)
Enables text bubble. |
SendMessage |
setGlobal(boolean Global)
If True it is sent to everyone. |
SendMessage |
setId(UnrealId Id)
Here we can specify Id of the bot, that will receive this message privately (with "Private:" string at the beginning of the message). |
SendMessage |
setText(String Text)
Text to send. |
String |
toHtmlString()
|
String |
toMessage()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected UnrealId Id
protected String Text
protected boolean Global
protected double FadeOut
Constructor Detail |
---|
public SendMessage(UnrealId Id, String Text, boolean Global, double FadeOut)
Id
- Here we can specify Id of the bot, that will receive this message privately (with "Private:" string at the beginning of the message). Doesn't work for players (but if text bubble enabled, players will see this message above the bot head).Text
- Text to send.Global
- If True it is sent to everyone. Otherwise (or if not
specified), just your team.FadeOut
- Enables text bubble. Sets how long the bubble should stay (in seconds, counted ~ 12 + FadeOut seconds - dunno why, some UT mechanics?). If -1 the bubble won't be shown.public SendMessage()
public SendMessage(SendMessage original)
Method Detail |
---|
public UnrealId getId()
public SendMessage setId(UnrealId Id)
public String getText()
public SendMessage setText(String Text)
public boolean isGlobal()
public SendMessage setGlobal(boolean Global)
public double getFadeOut()
public SendMessage setFadeOut(double FadeOut)
public String toString()
toString
in class CommandMessage
public String toHtmlString()
public String toMessage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |