|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectbe.saltwater.jaqel.scheduler.CreatureAction
be.saltwater.jaqel.scheduler.MoveAction
| Constructor Summary | |
MoveAction(CreatureActionScheduler scheduler,
Creature actor,
java.util.List movePath)
|
|
| Method Summary | |
void |
actionFinished()
Called by CreatureActionScheduler when the action is finished. |
int |
getCost()
Subclasses should calculate the cost in actionpoints to complete this action in this method |
java.awt.Point |
getEndLocation()
If this action modifies the location of the Creature, return the end location, default implementation returns null. |
int |
isValid()
Subclasses should return a Creature.ORDER_* status code that indicates if this action is valid. return Creature.ORDER_OK if all is ok. |
| Methods inherited from class be.saltwater.jaqel.scheduler.CreatureAction |
actionStarted, addAnimation, animationFinished, getActorCreature, getAnimations, getCreatureActionScheduler, isAllowed |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MoveAction(CreatureActionScheduler scheduler,
Creature actor,
java.util.List movePath)
| Method Detail |
public int getCost()
CreatureAction
getCost in class CreatureActionCreature.getActionPoints()public int isValid()
CreatureAction
isValid in class CreatureActionpublic void actionFinished()
CreatureAction
actionFinished in class CreatureActionpublic java.awt.Point getEndLocation()
CreatureAction
getEndLocation in class CreatureAction
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||