Bandidos
Public Member Functions | Protected Member Functions | List of all members
com.mygdx.game.entities.weapons.projectiles.BaseHitProjectile Class Referenceabstract
Inheritance diagram for com.mygdx.game.entities.weapons.projectiles.BaseHitProjectile:
com.mygdx.game.entities.weapons.projectiles.BaseProjectile com.mygdx.game.engine.entities.BaseEntity com.mygdx.game.engine.events.IEventReceiver com.mygdx.game.engine.events.EventDispatcher com.mygdx.game.entities.weapons.projectiles.ExplosiveProjectile com.mygdx.game.entities.weapons.projectiles.FreezeProjectile com.mygdx.game.entities.weapons.projectiles.NormalProjectile com.mygdx.game.entities.weapons.projectiles.PoisonProjectile

Public Member Functions

 BaseHitProjectile (RenderInfo renderSheetProjectile, float speed, final float damage, final float fullDamageDrawPotential)
 
- Public Member Functions inherited from com.mygdx.game.entities.weapons.projectiles.BaseProjectile
 BaseProjectile (RenderInfo renderSheetProjectile, float speed)
 
RenderComponent getRenderComponent ()
 
HeightStage getHeightStage ()
 
void onReceiveEvent (Event event)
 
Vector2 getLandingPositionWithDrawWeight (float drawWeight)
 
void fire (float drawWeight, float drawPower)
 
- Public Member Functions inherited from com.mygdx.game.engine.entities.BaseEntity
 BaseEntity ()
 
TransformComponent getTransformComponent ()
 
boolean hasInstanceOfComponent (BaseEntityComponent componentInstance)
 
void addTag (String tag)
 
void removeTag (String tag)
 
boolean hasTag (String tag)
 
void update (float dt)
 
void render (RenderComponents renderComponents)
 
void destroy ()
 
boolean isDestroyed ()
 
- 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 onCollisionEvent (CollisionEvent event)
 
void setOnHitLandAndDestroy (boolean value)
 
abstract int getHitTool ()
 
abstract int [] getGroundHitTypes ()
 
abstract int [] getHealthHitTypes ()
 
abstract int [] getNonHealthHitTypes ()
 
void onLandedOnGround ()
 
- Protected Member Functions inherited from com.mygdx.game.entities.weapons.projectiles.BaseProjectile
float getDrawPower ()
 
void awake ()
 
abstract void onCollisionEvent (CollisionEvent event)
 
abstract float getWeight ()
 
abstract void onStageChanged (HeightStage newHeightStage)
 
abstract void onLandedOnGround ()
 
void destroyed ()
 
void setHeightStage (HeightStage heightStage)
 
void updated (float dt)
 
- Protected Member Functions inherited from com.mygdx.game.engine.entities.BaseEntity
abstract void awake ()
 
abstract void updated (float dt)
 
abstract void rendered (RenderComponents renderComponents)
 
abstract void destroyed ()
 

Detailed Description

This is the base class for projectiles which can hit and damage entities with HealthComponents

Author
Ramses Di Perna

Constructor & Destructor Documentation

◆ BaseHitProjectile()

com.mygdx.game.entities.weapons.projectiles.BaseHitProjectile.BaseHitProjectile ( RenderInfo  renderSheetProjectile,
float  speed,
final float  damage,
final float  fullDamageDrawPotential 
)

The base information needed for a Hit projectile

Parameters
renderSheetProjectileis what to render the projectile as
speedthe max speed the projectile travels
damagethe max damage the projectile inflicts on impact with an enemy
fullDamageDrawPotentialthe draw strength it should be fired with to meet its full potential in damage and speed

Member Function Documentation

◆ getGroundHitTypes()

abstract int [] com.mygdx.game.entities.weapons.projectiles.BaseHitProjectile.getGroundHitTypes ( )
abstractprotected

Returns The hit types which should be registered to the HitRegistrationPoint when this projectile hits the ground

Returns
The hit types which should be registered to the HitRegistrationPoint when this projectile hits the ground

◆ getHealthHitTypes()

abstract int [] com.mygdx.game.entities.weapons.projectiles.BaseHitProjectile.getHealthHitTypes ( )
abstractprotected

Returns The hit types which should be registered to the HitRegistrationPoint when this projectile hits an entity with a HealthComponent

Returns
The hit types which should be registered to the HitRegistrationPoint when this projectile hits an entity with a HealthComponent

◆ getHitTool()

abstract int com.mygdx.game.entities.weapons.projectiles.BaseHitProjectile.getHitTool ( )
abstractprotected

Returns the hit tool which this projectile represents to the HitRegistrationPoint

Returns
The hit tool which this projectile represents to the HitRegistrationPoint

◆ getNonHealthHitTypes()

abstract int [] com.mygdx.game.entities.weapons.projectiles.BaseHitProjectile.getNonHealthHitTypes ( )
abstractprotected

Returns The hit types which should be registered to the HitRegistrationPoint when this projectile hits an entity without a HealthComponent

Returns
The hit types which should be registered to the HitRegistrationPoint when this projectile hits an entity without a HealthComponent

◆ onCollisionEvent()

void com.mygdx.game.entities.weapons.projectiles.BaseHitProjectile.onCollisionEvent ( CollisionEvent  event)
protected

◆ onLandedOnGround()

void com.mygdx.game.entities.weapons.projectiles.BaseHitProjectile.onLandedOnGround ( )
protected

◆ setOnHitLandAndDestroy()

void com.mygdx.game.entities.weapons.projectiles.BaseHitProjectile.setOnHitLandAndDestroy ( boolean  value)
protected

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