|
|||||||||||
| 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.AttackAction
| Constructor Summary | |
AttackAction(CreatureActionScheduler scheduler,
Creature actor,
Creature attacked,
Weapon w,
int times)
|
|
| Method Summary | |
void |
actionFinished()
Called by CreatureActionScheduler when the action is finished. |
void |
actionStarted()
Called by CreatureActionScheduler when the action is started. |
int |
getCost()
Subclasses should calculate the cost in actionpoints to complete this action in this method |
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 |
addAnimation, animationFinished, getActorCreature, getAnimations, getCreatureActionScheduler, getEndLocation, isAllowed |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AttackAction(CreatureActionScheduler scheduler,
Creature actor,
Creature attacked,
Weapon w,
int times)
| Method Detail |
public int getCost()
CreatureAction
getCost in class CreatureActionCreature.getActionPoints()public int isValid()
CreatureAction
isValid in class CreatureActionpublic void actionStarted()
CreatureAction
actionStarted in class CreatureActionpublic void actionFinished()
CreatureAction
actionFinished in class CreatureAction
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||