gecco.game.testgame
Class AttackAction

java.lang.Object
  |
  +--gecco.server.core.Action
        |
        +--gecco.game.testgame.AttackAction

public class AttackAction
extends Action

Description of the Class


Field Summary
private  double addX
          Description of the Field
private  double addY
          Description of the Field
private  int attackFactor
          Description of the Field
private  int ATTACKING_BEHAVIOUR
          Description of the Field
private  double attackRadiusSquared
          Description of the Field
private  int behaviourState
          Description of the Field
private  int MOVEMENT_BEHAVIOUR
          Description of the Field
private  int NONE_BEHAVIOUR
          Description of the Field
private  double stepLength
          Description of the Field
 
Fields inherited from class gecco.server.core.Action
actionHandle, argUnit, argX, argY, isInstantaneous, unit
 
Constructor Summary
AttackAction()
          Constructor for the AttackAction object
 
Method Summary
 ActionReturn checkPoint()
          Description of the Method
 void initiate(int _actionHandle, int _unitHandle)
          Description of the Method
 void initiate(int _actionHandle, int _unitHandle, double _argX, double _argY)
          Description of the Method
 void initiate(int _actionHandle, int _unitHandle, int _argUnitHandle)
          Description of the Method
 
Methods inherited from class gecco.server.core.Action
canSeePosition, getActionHandle, getArgumentUnit, getArgumentX, getArgumentY, getAutomatonState, getUnit, getUnitHandle, isInstantaneous, sendEventToAutomaton, sendEventToUnit, setInstantaneous
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

NONE_BEHAVIOUR

private final int NONE_BEHAVIOUR
Description of the Field

ATTACKING_BEHAVIOUR

private final int ATTACKING_BEHAVIOUR
Description of the Field

MOVEMENT_BEHAVIOUR

private final int MOVEMENT_BEHAVIOUR
Description of the Field

addX

private double addX
Description of the Field

addY

private double addY
Description of the Field

stepLength

private double stepLength
Description of the Field

attackFactor

private int attackFactor
Description of the Field

behaviourState

private int behaviourState
Description of the Field

attackRadiusSquared

private double attackRadiusSquared
Description of the Field
Constructor Detail

AttackAction

public AttackAction()
Constructor for the AttackAction object
Method Detail

initiate

public void initiate(int _actionHandle,
                     int _unitHandle)
Description of the Method
Overrides:
initiate in class Action
Parameters:
_actionHandle - Description of Parameter
_unitHandle - Description of Parameter

initiate

public void initiate(int _actionHandle,
                     int _unitHandle,
                     int _argUnitHandle)
Description of the Method
Overrides:
initiate in class Action
Parameters:
_actionHandle - Description of Parameter
_unitHandle - Description of Parameter
_argUnitHandle - Description of Parameter

initiate

public void initiate(int _actionHandle,
                     int _unitHandle,
                     double _argX,
                     double _argY)
Description of the Method
Overrides:
initiate in class Action
Parameters:
_actionHandle - Description of Parameter
_unitHandle - Description of Parameter
_argX - Description of Parameter
_argY - Description of Parameter

checkPoint

public ActionReturn checkPoint()
Description of the Method
Overrides:
checkPoint in class Action
Returns:
Description of the Returned Value