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

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

public class Dodge
extends CommandMessage

Representation of the GameBots2004 command DODGE. Causes the bot to dodge (do jump) to supported direction.


Field Summary
protected  Vector3d Direction
          Relative vector, will be normalized.
static java.lang.String PROTOTYPE
          Example how the message looks like - used during parser tests.
 
Constructor Summary
Dodge()
          Creates new instance of command Dodge.
Dodge(Vector3d Direction)
          Creates new instance of command Dodge.
 
Method Summary
 Vector3d getDirection()
          Relative vector, will be normalized.
 Dodge setDirection(Vector3d Direction)
          Relative vector, will be normalized.
 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

Direction

protected Vector3d Direction
Relative vector, will be normalized. The direction of the dodge will be added to current bot rotation.

Constructor Detail

Dodge

public Dodge(Vector3d Direction)
Creates new instance of command Dodge. Causes the bot to dodge (do jump) to supported direction. Corresponding GameBots message for this command is DODGE.

Parameters:
Direction - Relative vector, will be normalized. The direction of the dodge will be added to current bot rotation.

Dodge

public Dodge()
Creates new instance of command Dodge. Causes the bot to dodge (do jump) to supported direction. Corresponding GameBots message for this command is DODGE.

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

Method Detail

getDirection

public Vector3d getDirection()
Relative vector, will be normalized. The direction of the dodge will be added to current bot rotation.


setDirection

public Dodge setDirection(Vector3d Direction)
Relative vector, will be normalized. The direction of the dodge will be added to current bot rotation.


toString

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

toHtmlString

public java.lang.String toHtmlString()

toMessage

public java.lang.String toMessage()