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

Package class diagram package Dodge
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
      extended by cz.cuni.amis.pogamut.udk.communication.messages.gbcommands.Dodge

public class Dodge
extends CommandMessage

Causes the bot to dodge (do jump) to supported direction. Corresponding GameBots command is DODGE.


Field Summary
protected  javax.vecmath.Vector3d Direction
          Relative vector, will be normalized.
 
Constructor Summary
Dodge()
          Creates new instance of command Dodge.
Dodge(Dodge original)
          Cloning constructor.
Dodge(javax.vecmath.Vector3d Direction)
          Creates new instance of command Dodge.
 
Method Summary
 javax.vecmath.Vector3d getDirection()
          Relative vector, will be normalized.
 Dodge setDirection(javax.vecmath.Vector3d Direction)
          Relative vector, will be normalized.
 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

Direction

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

Constructor Detail

Dodge

public Dodge(javax.vecmath.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!


Dodge

public Dodge(Dodge original)
Cloning constructor.

Method Detail

getDirection

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


setDirection

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


toString

public String toString()
Overrides:
toString in class CommandMessage

toHtmlString

public String toHtmlString()

toMessage

public String toMessage()


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