|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.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 String |
Player
Name of the player on who's HUD should be the text shown. |
static String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected Boolean |
Show
False if the message should be removed, true if it should be shown. |
protected String |
Text
The text that should be shown. |
protected Color |
TextColor
The color of text. |
protected 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(String Player,
String Text,
Color TextColor,
Double Time,
Boolean Show)
Creates new instance of command ShowText. |
|
| Method Summary | |
|---|---|
String |
getPlayer()
Name of the player on who's HUD should be the text shown. |
String |
getText()
The text that should be shown. |
Color |
getTextColor()
The color of text. |
Double |
getTime()
Number of seconds for which should be the text shown. |
Boolean |
isShow()
False if the message should be removed, true if it should be shown. |
ShowText |
setPlayer(String Player)
Name of the player on who's HUD should be the text shown. |
ShowText |
setShow(Boolean Show)
False if the message should be removed, true if it should be shown. |
ShowText |
setText(String Text)
The text that should be shown. |
ShowText |
setTextColor(Color TextColor)
The color of text. |
ShowText |
setTime(Double Time)
Number of seconds for which should be the text shown. |
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 |
|---|
public static final String PROTOTYPE
protected String Player
protected String Text
protected Color TextColor
protected Double Time
protected Boolean Show
| Constructor Detail |
|---|
public ShowText(String Player,
String Text,
Color TextColor,
Double Time,
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 String getPlayer()
public ShowText setPlayer(String Player)
public String getText()
public ShowText setText(String Text)
public Color getTextColor()
public ShowText setTextColor(Color TextColor)
public Double getTime()
public ShowText setTime(Double Time)
public Boolean isShow()
public ShowText setShow(Boolean Show)
public String toString()
toString in class CommandMessagepublic String toHtmlString()
public String toMessage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||