Bandidos
|
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< ListenerItem > | getAllListeners () |
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 () |
This is the base class for projectiles which can hit and damage entities with HealthComponents
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
renderSheetProjectile | is what to render the projectile as |
speed | the max speed the projectile travels |
damage | the max damage the projectile inflicts on impact with an enemy |
fullDamageDrawPotential | the draw strength it should be fired with to meet its full potential in damage and speed |
|
abstractprotected |
Returns The hit types which should be registered to the HitRegistrationPoint when this projectile hits the ground
|
abstractprotected |
Returns The hit types which should be registered to the HitRegistrationPoint when this projectile hits an entity with a HealthComponent
|
abstractprotected |
Returns the hit tool which this projectile represents to the HitRegistrationPoint
|
abstractprotected |
Returns The hit types which should be registered to the HitRegistrationPoint when this projectile hits an entity without a HealthComponent
|
protected |
|
protected |
|
protected |