|
|||||||||
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.ShowText
public class ShowText
Representation of the GameBots2004 command SHTXT. Shows for specified amount of time or removes a text from players HUD.
Field Summary | |
---|---|
protected java.lang.String |
Player
Name of the player on who's HUD should be the text shown. |
static java.lang.String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected java.lang.Boolean |
Show
False if the message should be removed, true if it should be shown. |
protected java.lang.String |
Text
The text that should be shown. |
protected java.awt.Color |
TextColor
The color of text. |
protected java.lang.Double |
Time
Number of seconds for which should be the text shown. |
Constructor Summary | |
---|---|
ShowText()
Creates new instance of command ShowText. |
|
ShowText(ShowText original)
Cloning constructor. |
|
ShowText(java.lang.String Player,
java.lang.String Text,
java.awt.Color TextColor,
java.lang.Double Time,
java.lang.Boolean Show)
Creates new instance of command ShowText. |
Method Summary | |
---|---|
java.lang.String |
getPlayer()
Name of the player on who's HUD should be the text shown. |
java.lang.String |
getText()
The text that should be shown. |
java.awt.Color |
getTextColor()
The color of text. |
java.lang.Double |
getTime()
Number of seconds for which should be the text shown. |
java.lang.Boolean |
isShow()
False if the message should be removed, true if it should be shown. |
ShowText |
setPlayer(java.lang.String Player)
Name of the player on who's HUD should be the text shown. |
ShowText |
setShow(java.lang.Boolean Show)
False if the message should be removed, true if it should be shown. |
ShowText |
setText(java.lang.String Text)
The text that should be shown. |
ShowText |
setTextColor(java.awt.Color TextColor)
The color of text. |
ShowText |
setTime(java.lang.Double Time)
Number of seconds for which should be the text shown. |
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 java.lang.String Player
protected java.lang.String Text
protected java.awt.Color TextColor
protected java.lang.Double Time
protected java.lang.Boolean Show
Constructor Detail |
---|
public ShowText(java.lang.String Player, java.lang.String Text, java.awt.Color TextColor, java.lang.Double Time, java.lang.Boolean Show)
Player
- Name of the player on who's HUD should be the text shown.Text
- The text that should be shown.TextColor
- The color of text.Time
- Number of seconds for which should be the text shown. The default is until manual removal.Show
- False if the message should be removed, true if it should be shown.public ShowText()
public ShowText(ShowText original)
original
- Method Detail |
---|
public java.lang.String getPlayer()
public ShowText setPlayer(java.lang.String Player)
public java.lang.String getText()
public ShowText setText(java.lang.String Text)
public java.awt.Color getTextColor()
public ShowText setTextColor(java.awt.Color TextColor)
public java.lang.Double getTime()
public ShowText setTime(java.lang.Double Time)
public java.lang.Boolean isShow()
public ShowText setShow(java.lang.Boolean Show)
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 |