E
- The entity type used.public interface AttackerListener<E extends EntityRts>
Modifier and Type | Method and Description |
---|---|
void |
notifyAttackAnimEnded()
Notify when attacker has played his attack completely.
|
void |
notifyAttackEnded(int damages,
E target)
Notify when attacker has done his attack.
|
void |
notifyAttackStarted(E target)
Notify when attacker is going to attack.
|
void |
notifyPreparingAttack()
Notify while attacker is waiting for next attack.
|
void |
notifyReachingTarget(E target)
Notify while attacker is reaching target.
|
void |
notifyTargetLost(E target)
Notify when attacker lost its target.
|
void notifyReachingTarget(E target)
target
- The target to reach.void notifyAttackStarted(E target)
target
- The target reference.void notifyAttackEnded(int damages, E target)
target
- The target reference.damages
- The final damages.void notifyAttackAnimEnded()
void notifyPreparingAttack()
void notifyTargetLost(E target)
target
- The target lost.