|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgecco.server.core.Action
gecco.game.dke.AttackAction
Constructor Summary | |
AttackAction()
|
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. |
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, 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 |
public AttackAction()
Method Detail |
public void initiate(int _actionHandle, int _unitHandle)
Action
initiate
in class Action
_actionHandle
- A unique handle that should identify this action._unitHandle
- The handle of the executing unit.public void initiate(int _actionHandle, int _unitHandle, int _argUnitHandle)
Action
initiate
in class Action
_actionHandle
- A unique handle that should identify this action._unitHandle
- The handle of the executing unit._argUnitHandle
- The handle of the target unit.public void initiate(int _actionHandle, int _unitHandle, double _argX, double _argY)
Action
initiate
in class Action
_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.public ActionReturn checkPoint()
Action
checkPoint
in class Action
public void prepareAbortion()
Action
prepareAbortion
in class Action
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |