gecco.game.dke3
Class AutoFireOffAction
java.lang.Object
|
+--gecco.server.core.Action
|
+--gecco.game.dke3.WarUnitDKE3Action
|
+--gecco.game.dke3.AutoFireOffAction
- public class AutoFireOffAction
- extends WarUnitDKE3Action
AutoFireOffAction.java
Created: Mon Feb 02 10:11:54 2004
- Author:
- Hans Sandström
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.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 |
AutoFireOffAction
public AutoFireOffAction()
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.