gecco.game.dke3
Class AutoFireWorkerAction

java.lang.Object
  |
  +--gecco.server.core.Action
        |
        +--gecco.game.dke3.WarUnitDKE3Action
              |
              +--gecco.game.dke3.AutoFireWorkerAction

public class AutoFireWorkerAction
extends WarUnitDKE3Action

AutoFireOnAction.java Created: Mon Feb 02 10:10:36 2004

Author:
Hans Sandström

Constructor Summary
AutoFireWorkerAction()
           
 
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.
 
Methods inherited from class gecco.game.dke3.WarUnitDKE3Action
getWarUnitDKE3
 
Methods inherited from class gecco.server.core.Action
canSeePosition, getActionDefinition, getActionHandle, getArgumentUnit, getArgumentX, getArgumentY, getAutomatonState, getCooperativeUnits, getId, getNewActionHandle, getUnit, getUnitHandle, initiate, initiate, initiate, isInstantaneous, isOutsideMap, prepareAbortion, 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

AutoFireWorkerAction

public AutoFireWorkerAction()
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 Action
Parameters:
actionHandle - A unique handle that should identify this action.
unitHandle - The handle of the executing unit.

checkPoint

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

Specified by:
checkPoint in class Action
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.