E
- The entity type used.public interface AttackerUsedServices<E extends EntityRts> extends AttackerListener<E>, com.b3dgs.lionengine.game.Surface
Modifier and Type | Method and Description |
---|---|
boolean |
canAttack()
Check if the attacker can attack (called when attack is possible).
|
com.b3dgs.lionengine.anim.AnimState |
getAnimState()
Get the current animation state.
|
int |
getDistanceInTile(com.b3dgs.lionengine.game.Tiled target,
boolean fromCenter)
Get the distance in tile between attacker and target.
|
int |
getFrame()
Get the current playing frame.
|
notifyAttackAnimEnded, notifyAttackEnded, notifyAttackStarted, notifyPreparingAttack, notifyReachingTarget, notifyTargetLost
boolean canAttack()
true
if can start the attack, false
else.int getDistanceInTile(com.b3dgs.lionengine.game.Tiled target, boolean fromCenter)
target
- The target reference.fromCenter
- true
to get distance from center only, false
from the global area.int getFrame()
com.b3dgs.lionengine.anim.AnimState getAnimState()