cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands
Class SetEmoticon

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands.SetEmoticon

public class SetEmoticon
extends CommandMessage

Representation of the GameBots2004 command SETEMOT. Sets the emoticon for current bot.


Field Summary
protected  java.lang.Integer BubbleSize
          Sets the bubble size behind the emoticons.
protected  java.lang.String BubbleType
          Sets the bubble type behind the emoticons.
protected  java.lang.String Center
          Sets the center emoticon.
protected  java.lang.Integer CenterSize
          Sets the center emoticon size.
protected  java.lang.String Left
          Sets the left emoticon.
protected  java.lang.Integer LeftSize
          Sets the left emoticon size.
static java.lang.String PROTOTYPE
          Example how the message looks like - used during parser tests.
protected  java.lang.String Right
          Sets the right emoticon.
protected  java.lang.Integer RightSize
          Sets the right emoticon size.
protected  java.lang.Double Time
          Fade out of the emoticons in seconds.
 
Constructor Summary
SetEmoticon()
          Creates new instance of command SetEmoticon.
SetEmoticon(SetEmoticon original)
          Cloning constructor.
SetEmoticon(java.lang.String Center, java.lang.Integer CenterSize, java.lang.String Left, java.lang.Integer LeftSize, java.lang.String Right, java.lang.Integer RightSize, java.lang.String BubbleType, java.lang.Integer BubbleSize, java.lang.Double Time)
          Creates new instance of command SetEmoticon.
 
Method Summary
 java.lang.Integer getBubbleSize()
          Sets the bubble size behind the emoticons.
 java.lang.String getBubbleType()
          Sets the bubble type behind the emoticons.
 java.lang.String getCenter()
          Sets the center emoticon.
 java.lang.Integer getCenterSize()
          Sets the center emoticon size.
 java.lang.String getLeft()
          Sets the left emoticon.
 java.lang.Integer getLeftSize()
          Sets the left emoticon size.
 java.lang.String getRight()
          Sets the right emoticon.
 java.lang.Integer getRightSize()
          Sets the right emoticon size.
 java.lang.Double getTime()
          Fade out of the emoticons in seconds.
 SetEmoticon setBubbleSize(java.lang.Integer BubbleSize)
          Sets the bubble size behind the emoticons.
 SetEmoticon setBubbleType(java.lang.String BubbleType)
          Sets the bubble type behind the emoticons.
 SetEmoticon setCenter(java.lang.String Center)
          Sets the center emoticon.
 SetEmoticon setCenterSize(java.lang.Integer CenterSize)
          Sets the center emoticon size.
 SetEmoticon setLeft(java.lang.String Left)
          Sets the left emoticon.
 SetEmoticon setLeftSize(java.lang.Integer LeftSize)
          Sets the left emoticon size.
 SetEmoticon setRight(java.lang.String Right)
          Sets the right emoticon.
 SetEmoticon setRightSize(java.lang.Integer RightSize)
          Sets the right emoticon size.
 SetEmoticon setTime(java.lang.Double Time)
          Fade out of the emoticons in seconds.
 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

PROTOTYPE

public static final java.lang.String PROTOTYPE
Example how the message looks like - used during parser tests.

See Also:
Constant Field Values

Center

protected java.lang.String Center
Sets the center emoticon.


CenterSize

protected java.lang.Integer CenterSize
Sets the center emoticon size. 0 will disable the emoticon.


Left

protected java.lang.String Left
Sets the left emoticon.


LeftSize

protected java.lang.Integer LeftSize
Sets the left emoticon size. 0 will disable the emoticon.


Right

protected java.lang.String Right
Sets the right emoticon.


RightSize

protected java.lang.Integer RightSize
Sets the right emoticon size. 0 will disable the emoticon.


BubbleType

protected java.lang.String BubbleType
Sets the bubble type behind the emoticons.


BubbleSize

protected java.lang.Integer BubbleSize
Sets the bubble size behind the emoticons. 0 for no bubble.


Time

protected java.lang.Double Time
Fade out of the emoticons in seconds.

Constructor Detail

SetEmoticon

public SetEmoticon(java.lang.String Center,
                   java.lang.Integer CenterSize,
                   java.lang.String Left,
                   java.lang.Integer LeftSize,
                   java.lang.String Right,
                   java.lang.Integer RightSize,
                   java.lang.String BubbleType,
                   java.lang.Integer BubbleSize,
                   java.lang.Double Time)
Creates new instance of command SetEmoticon. Sets the emoticon for current bot. Corresponding GameBots message for this command is SETEMOT.

Parameters:
Center - Sets the center emoticon.
CenterSize - Sets the center emoticon size. 0 will disable the emoticon.
Left - Sets the left emoticon.
LeftSize - Sets the left emoticon size. 0 will disable the emoticon.
Right - Sets the right emoticon.
RightSize - Sets the right emoticon size. 0 will disable the emoticon.
BubbleType - Sets the bubble type behind the emoticons.
BubbleSize - Sets the bubble size behind the emoticons. 0 for no bubble.
Time - Fade out of the emoticons in seconds.

SetEmoticon

public SetEmoticon()
Creates new instance of command SetEmoticon. Sets the emoticon for current bot. Corresponding GameBots message for this command is SETEMOT.

WARNING: this is empty-command constructor, you have to use setters to fill it up with data that should be sent to GameBots2004!


SetEmoticon

public SetEmoticon(SetEmoticon original)
Cloning constructor.

Parameters:
original -
Method Detail

getCenter

public java.lang.String getCenter()
Sets the center emoticon.


setCenter

public SetEmoticon setCenter(java.lang.String Center)
Sets the center emoticon.


getCenterSize

public java.lang.Integer getCenterSize()
Sets the center emoticon size. 0 will disable the emoticon.


setCenterSize

public SetEmoticon setCenterSize(java.lang.Integer CenterSize)
Sets the center emoticon size. 0 will disable the emoticon.


getLeft

public java.lang.String getLeft()
Sets the left emoticon.


setLeft

public SetEmoticon setLeft(java.lang.String Left)
Sets the left emoticon.


getLeftSize

public java.lang.Integer getLeftSize()
Sets the left emoticon size. 0 will disable the emoticon.


setLeftSize

public SetEmoticon setLeftSize(java.lang.Integer LeftSize)
Sets the left emoticon size. 0 will disable the emoticon.


getRight

public java.lang.String getRight()
Sets the right emoticon.


setRight

public SetEmoticon setRight(java.lang.String Right)
Sets the right emoticon.


getRightSize

public java.lang.Integer getRightSize()
Sets the right emoticon size. 0 will disable the emoticon.


setRightSize

public SetEmoticon setRightSize(java.lang.Integer RightSize)
Sets the right emoticon size. 0 will disable the emoticon.


getBubbleType

public java.lang.String getBubbleType()
Sets the bubble type behind the emoticons.


setBubbleType

public SetEmoticon setBubbleType(java.lang.String BubbleType)
Sets the bubble type behind the emoticons.


getBubbleSize

public java.lang.Integer getBubbleSize()
Sets the bubble size behind the emoticons. 0 for no bubble.


setBubbleSize

public SetEmoticon setBubbleSize(java.lang.Integer BubbleSize)
Sets the bubble size behind the emoticons. 0 for no bubble.


getTime

public java.lang.Double getTime()
Fade out of the emoticons in seconds.


setTime

public SetEmoticon setTime(java.lang.Double Time)
Fade out of the emoticons in seconds.


toString

public java.lang.String toString()
Overrides:
toString in class CommandMessage

toHtmlString

public java.lang.String toHtmlString()

toMessage

public java.lang.String toMessage()