gecco.game.dke
Class RegainStrengthAction
java.lang.Object
|
+--gecco.server.core.Action
|
+--gecco.game.dke.RegainStrengthAction
- public class RegainStrengthAction
- extends Action
RegainStrengthAction.java
Created: Fri Sep 12 13:50:41 2003
- Author:
- Hans Sandström
Method Summary |
ActionReturn |
checkPoint()
This method is called periodically by the game engine. |
void |
initiate(int param1,
int param2)
Initialise the action without any arguments. |
void |
prepareAbortion()
Called from ActionProcessor when Action is aborted,
lets Action abort gracefully |
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, 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 |
RegainStrengthAction
public RegainStrengthAction()
initiate
public void initiate(int param1,
int param2)
- Description copied from class:
Action
- Initialise the action without any arguments.
- Overrides:
initiate
in class Action
- Parameters:
param1
- param2
-
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.
prepareAbortion
public void prepareAbortion()
- Description copied from class:
Action
- Called from ActionProcessor when Action is aborted,
lets Action abort gracefully
- Overrides:
prepareAbortion
in class Action