Bandidos
|
Public Member Functions | |
BaseEnemyAttackComponent (float dmg, int rangeInTiles) | |
abstract boolean | isAttacking () |
void | attack (HealthComponent hc) |
void | stopAttacking () |
int | getRangeInTiles () |
float | getDamage () |
void | setAnimationComponent (AnimationComponent animationComponent) |
Public Member Functions inherited from com.mygdx.game.engine.entities.components.BaseEntityComponent | |
EngineTween | startTweenOnComponent (Tween tween, TweenStartType tweenStartType) |
Timeline | startTimelineOnComponent (Timeline timeline, boolean updateInGameTime) |
EngineTween | doFloat (TweenableFloat floatToTween, float newValue, float duration, TweenStartType tweenStartType) |
void | stopAllComponentTweens () |
void | initialize (BaseEntity parentEntity) |
BaseEntity | getParentOfComponent () |
boolean | isActive () |
boolean | isDestroyed () |
void | setActiveState (boolean activeState) |
void | destroy () |
void | update (float deltaTime) |
abstract void | awake () |
Public Member Functions inherited from com.mygdx.game.engine.events.EventDispatcher | |
void | addEventListener (String type, IEventReceiver listeningClass) |
void | dispatchEvent (Event event) |
void | removeEventListener (String type, IEventReceiver listener) |
boolean | hasEventListener (String type) |
ArrayList< ListenerItem > | getAllListeners () |
void | destroyAllListeners () |
void | clean () |
Static Public Attributes | |
static final String | STARTED_ATTACKING_EVENT = "StartedAttackingEvent" |
static final String | STOPPED_ATTACKING_EVENT = "StoppedAttackingEvent" |
Protected Member Functions | |
AnimationComponent | getAnimationComponent () |
void | destroyed () |
abstract void | attackCall (HealthComponent hc) |
abstract void | stopAttackingCall () |
Protected Member Functions inherited from com.mygdx.game.engine.entities.components.BaseEntityComponent | |
abstract void | updated (float deltaTime) |
abstract void | destroyed () |
abstract void | activeStateChanged () |
This is the base component of enemy attack logics. A specific handling of enemy attack behavior should derive from this class to be used by the Enemy class
com.mygdx.game.components.attacking.BaseEnemyAttackComponent.BaseEnemyAttackComponent | ( | float | dmg, |
int | rangeInTiles | ||
) |
void com.mygdx.game.components.attacking.BaseEnemyAttackComponent.attack | ( | HealthComponent | hc | ) |
Requests the component to attack the given HealthComponent
hc | is the health component to attack |
|
abstractprotected |
Is called when an attack request is put on the component
hc | is the HealthComponent to attack. |
|
protected |
|
protected |
Returns the animationComponent given to this component in the 'setAnimationComponent' to use to visualize the attacking with
float com.mygdx.game.components.attacking.BaseEnemyAttackComponent.getDamage | ( | ) |
Returns the damage each attack would inflict on a health component
int com.mygdx.game.components.attacking.BaseEnemyAttackComponent.getRangeInTiles | ( | ) |
Returns the amount of tiles this component has attacking range to.
|
abstract |
Returns whether this component is in its attack handeling after the 'attack' method was called
void com.mygdx.game.components.attacking.BaseEnemyAttackComponent.setAnimationComponent | ( | AnimationComponent | animationComponent | ) |
Sets the animation component this component can use to visualize the attacking motion
animationComponent | to give this component to visualize the attack with |
void com.mygdx.game.components.attacking.BaseEnemyAttackComponent.stopAttacking | ( | ) |
Stops the attacking on the healthcomponent given in the 'attack' method
|
abstractprotected |
Is called when an stop attacking request is put on the component
|
static |
|
static |