E
- The entity type used.public interface AttackerUsedServices<E extends EntityStrategy> extends AttackerListener<E>, 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(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
getHeight, getLocationIntX, getLocationIntY, getWidth
boolean canAttack()
true
if can start the attack, false
else.int getDistanceInTile(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()
Copyright © 2014 Byron 3D Games Studio. All rights reserved.