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

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

PROTOTYPE

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

See Also:
Constant Field Values

Center

protected String Center
Sets the center emoticon.


CenterSize

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


Left

protected String Left
Sets the left emoticon.


LeftSize

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


Right

protected String Right
Sets the right emoticon.


RightSize

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


BubbleType

protected String BubbleType
Sets the bubble type behind the emoticons.


BubbleSize

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


Time

protected Double Time
Fade out of the emoticons in seconds.

Constructor Detail

SetEmoticon

public SetEmoticon(String Center,
                   Integer CenterSize,
                   String Left,
                   Integer LeftSize,
                   String Right,
                   Integer RightSize,
                   String BubbleType,
                   Integer BubbleSize,
                   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 String getCenter()
Sets the center emoticon.


setCenter

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


getCenterSize

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


setCenterSize

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


getLeft

public String getLeft()
Sets the left emoticon.


setLeft

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


getLeftSize

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


setLeftSize

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


getRight

public String getRight()
Sets the right emoticon.


setRight

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


getRightSize

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


setRightSize

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


getBubbleType

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


setBubbleType

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


getBubbleSize

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


setBubbleSize

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


getTime

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


setTime

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


toString

public String toString()
Overrides:
toString in class CommandMessage

toHtmlString

public String toHtmlString()

toMessage

public String toMessage()


Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.