Bandidos
Public Member Functions | Protected Member Functions | List of all members
com.mygdx.game.components.attacking.HeavyBanditAttackComponent Class Reference
Inheritance diagram for com.mygdx.game.components.attacking.HeavyBanditAttackComponent:
com.mygdx.game.components.attacking.BaseEnemyAttackComponent com.mygdx.game.engine.events.IEventReceiver com.mygdx.game.engine.entities.components.BaseEntityComponent com.mygdx.game.engine.events.EventDispatcher

Public Member Functions

 HeavyBanditAttackComponent (float dmg, int rangeInTiles, float attackDelayTime)
 
boolean isAttacking ()
 
void awake ()
 
void onReceiveEvent (Event event)
 
- Public Member Functions inherited from com.mygdx.game.components.attacking.BaseEnemyAttackComponent
 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< ListenerItemgetAllListeners ()
 
void destroyAllListeners ()
 
void clean ()
 

Protected Member Functions

void attackCall (HealthComponent hc)
 
void stopAttackingCall ()
 
void updated (float deltaTime)
 
void activeStateChanged ()
 
- Protected Member Functions inherited from com.mygdx.game.components.attacking.BaseEnemyAttackComponent
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 ()
 

Additional Inherited Members

- Static Public Attributes inherited from com.mygdx.game.components.attacking.BaseEnemyAttackComponent
static final String STARTED_ATTACKING_EVENT = "StartedAttackingEvent"
 
static final String STOPPED_ATTACKING_EVENT = "StoppedAttackingEvent"
 

Detailed Description

The attack logics of the Heavy Bandit (Minigun enemy)

Author
Ramses Di Perna

Constructor & Destructor Documentation

◆ HeavyBanditAttackComponent()

com.mygdx.game.components.attacking.HeavyBanditAttackComponent.HeavyBanditAttackComponent ( float  dmg,
int  rangeInTiles,
float  attackDelayTime 
)

Member Function Documentation

◆ activeStateChanged()

void com.mygdx.game.components.attacking.HeavyBanditAttackComponent.activeStateChanged ( )
protected

◆ attackCall()

void com.mygdx.game.components.attacking.HeavyBanditAttackComponent.attackCall ( HealthComponent  hc)
protected

◆ awake()

void com.mygdx.game.components.attacking.HeavyBanditAttackComponent.awake ( )

◆ isAttacking()

boolean com.mygdx.game.components.attacking.HeavyBanditAttackComponent.isAttacking ( )

◆ onReceiveEvent()

void com.mygdx.game.components.attacking.HeavyBanditAttackComponent.onReceiveEvent ( Event  event)

This will be triggered when an event has been fired of type which this implementing class was listening to.

Parameters
eventwhich has one of the event types which is listened to.

Implements com.mygdx.game.engine.events.IEventReceiver.

◆ stopAttackingCall()

void com.mygdx.game.components.attacking.HeavyBanditAttackComponent.stopAttackingCall ( )
protected

◆ updated()

void com.mygdx.game.components.attacking.HeavyBanditAttackComponent.updated ( float  deltaTime)
protected

The documentation for this class was generated from the following file: