gecco.game.dke
Class IndirectFireUnitAction

java.lang.Object
  |
  +--gecco.server.core.Action
        |
        +--gecco.game.dke.IndirectFireAction
              |
              +--gecco.game.dke.IndirectFireUnitAction

public class IndirectFireUnitAction
extends IndirectFireAction

IndirectFireUnitAction.java Created: Mon Nov 18 00:12:59 2002

Author:
Hans Sandström

Constructor Summary
IndirectFireUnitAction()
           
 
Method Summary
 ActionReturn checkPoint()
          This method is called periodically by the game engine.
 void initiate(int _actionHandle, int _unitHandle)
          Initialise the action without any arguments.
 void initiate(int _actionHandle, int _unitHandle, double _argX, double _argY)
          Initialise the action with a point as argument.
 void initiate(int _actionHandle, int _unitHandle, int _argUnitHandle)
          Initialise the action with a unit as argument.
 
Methods inherited from class gecco.game.dke.IndirectFireAction
prepareAbortion
 
Methods inherited from class gecco.server.core.Action
canSeePosition, getActionDefinition, getActionHandle, getArgumentUnit, getArgumentX, getArgumentY, getAutomatonState, getCooperativeUnits, getId, getNewActionHandle, getUnit, getUnitHandle, initiate, isInstantaneous, isOutsideMap, sendEventToAutomaton, sendEventToUnit, setActionDefinition, setArgumentUnit, setArgumentX, setArgumentY, setInstantaneous
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndirectFireUnitAction

public IndirectFireUnitAction()
Method Detail

initiate

public void initiate(int _actionHandle,
                     int _unitHandle)
Description copied from class: Action
Initialise the action without any arguments.

Overrides:
initiate in class IndirectFireAction
Parameters:
_actionHandle - A unique handle that should identify this action.
_unitHandle - The handle of the executing unit.

initiate

public void initiate(int _actionHandle,
                     int _unitHandle,
                     int _argUnitHandle)
Description copied from class: Action
Initialise the action with a unit as argument.

Overrides:
initiate in class IndirectFireAction
Parameters:
_actionHandle - A unique handle that should identify this action.
_unitHandle - The handle of the executing unit.
_argUnitHandle - The handle of the target unit.

initiate

public void initiate(int _actionHandle,
                     int _unitHandle,
                     double _argX,
                     double _argY)
Description copied from class: Action
Initialise the action with a point as argument.

Overrides:
initiate in class IndirectFireAction
Parameters:
_actionHandle - A unique handle that should identify this action.
_unitHandle - The handle of the executing unit.
_argX - The x coordinate of the target point.
_argY - The y coordinate of the target point.

checkPoint

public ActionReturn checkPoint()
Description copied from class: Action
This method is called periodically by the game engine.

Overrides:
checkPoint in class IndirectFireAction
Returns:
An object of type ActionReturn, which encapsulates data about the status of the action after the checkpoint. Different instances of the class ActionReturn should be returned depending on whether the action is completed, aborted, or if the action should be requeued and the checkpoint method called again at some time later.