|
|||||||||
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.ut2004.communication.messages.gbcommands.SendMessage
public class SendMessage
Representation of the GameBots2004 command MESSAGE. Send a message to the world or just your team.
Field Summary | |
---|---|
protected java.lang.Double |
FadeOut
Enables text bubble. |
protected java.lang.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). |
static java.lang.String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected java.lang.String |
Text
Text to send. |
Constructor Summary | |
---|---|
SendMessage()
Creates new instance of command SendMessage. |
|
SendMessage(SendMessage original)
Cloning constructor. |
|
SendMessage(UnrealId Id,
java.lang.String Text,
java.lang.Boolean Global,
java.lang.Double FadeOut)
Creates new instance of command SendMessage. |
Method Summary | |
---|---|
java.lang.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). |
java.lang.String |
getText()
Text to send. |
java.lang.Boolean |
isGlobal()
If True it is sent to everyone. |
SendMessage |
setFadeOut(java.lang.Double FadeOut)
Enables text bubble. |
SendMessage |
setGlobal(java.lang.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(java.lang.String Text)
Text to send. |
java.lang.String |
toHtmlString()
|
java.lang.String |
toMessage()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROTOTYPE
protected UnrealId Id
protected java.lang.String Text
protected java.lang.Boolean Global
protected java.lang.Double FadeOut
Constructor Detail |
---|
public SendMessage(UnrealId Id, java.lang.String Text, java.lang.Boolean Global, java.lang.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)
original
- Method Detail |
---|
public UnrealId getId()
public SendMessage setId(UnrealId Id)
public java.lang.String getText()
public SendMessage setText(java.lang.String Text)
public java.lang.Boolean isGlobal()
public SendMessage setGlobal(java.lang.Boolean Global)
public java.lang.Double getFadeOut()
public SendMessage setFadeOut(java.lang.Double FadeOut)
public java.lang.String toString()
toString
in class CommandMessage
public java.lang.String toHtmlString()
public java.lang.String toMessage()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |