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

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

public class SetWalk
extends CommandMessage

Representation of the GameBots2004 command SETWALK. Set whether you are walking or running (default is run).


Field Summary
static java.lang.String PROTOTYPE
          Example how the message looks like - used during parser tests.
protected  java.lang.String RunAnim
          Change name of running animation.
protected  java.lang.Boolean Walk
          True or false to enable/disable bot walking.
protected  java.lang.String WalkAnim
          Change name of walking animation.
 
Constructor Summary
SetWalk()
          Creates new instance of command SetWalk.
SetWalk(java.lang.Boolean Walk, java.lang.String WalkAnim, java.lang.String RunAnim)
          Creates new instance of command SetWalk.
SetWalk(SetWalk original)
          Cloning constructor.
 
Method Summary
 java.lang.String getRunAnim()
          Change name of running animation.
 java.lang.String getWalkAnim()
          Change name of walking animation.
 java.lang.Boolean isWalk()
          True or false to enable/disable bot walking.
 SetWalk setRunAnim(java.lang.String RunAnim)
          Change name of running animation.
 SetWalk setWalk(java.lang.Boolean Walk)
          True or false to enable/disable bot walking.
 SetWalk setWalkAnim(java.lang.String WalkAnim)
          Change name of walking animation.
 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

Walk

protected java.lang.Boolean Walk
True or false to enable/disable bot walking.


WalkAnim

protected java.lang.String WalkAnim
Change name of walking animation. Supported in UE2.


RunAnim

protected java.lang.String RunAnim
Change name of running animation. Supported in UE2

Constructor Detail

SetWalk

public SetWalk(java.lang.Boolean Walk,
               java.lang.String WalkAnim,
               java.lang.String RunAnim)
Creates new instance of command SetWalk. Set whether you are walking or running (default is run). Corresponding GameBots message for this command is SETWALK.

Parameters:
Walk - True or false to enable/disable bot walking.
WalkAnim - Change name of walking animation. Supported in UE2.
RunAnim - Change name of running animation. Supported in UE2

SetWalk

public SetWalk()
Creates new instance of command SetWalk. Set whether you are walking or running (default is run). Corresponding GameBots message for this command is SETWALK.

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


SetWalk

public SetWalk(SetWalk original)
Cloning constructor.

Parameters:
original -
Method Detail

isWalk

public java.lang.Boolean isWalk()
True or false to enable/disable bot walking.


setWalk

public SetWalk setWalk(java.lang.Boolean Walk)
True or false to enable/disable bot walking.


getWalkAnim

public java.lang.String getWalkAnim()
Change name of walking animation. Supported in UE2.


setWalkAnim

public SetWalk setWalkAnim(java.lang.String WalkAnim)
Change name of walking animation. Supported in UE2.


getRunAnim

public java.lang.String getRunAnim()
Change name of running animation. Supported in UE2


setRunAnim

public SetWalk setRunAnim(java.lang.String RunAnim)
Change name of running animation. Supported in UE2


toString

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

toHtmlString

public java.lang.String toHtmlString()

toMessage

public java.lang.String toMessage()