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

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

Walk

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


WalkAnim

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


RunAnim

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

Constructor Detail

SetWalk

public SetWalk(Boolean Walk,
               String WalkAnim,
               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 Boolean isWalk()
True or false to enable/disable bot walking.


setWalk

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


getWalkAnim

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


setWalkAnim

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


getRunAnim

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


setRunAnim

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


toString

public String toString()
Overrides:
toString in class CommandMessage

toHtmlString

public String toHtmlString()

toMessage

public String toMessage()


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