#include <Explosion.h>
Public Member Functions | |
Explosion () | |
Explosion (Vec3 pos, float power=1.0f, bool sphere=false) | |
void | explode (Vec3 pos, float power=1.0f, bool sphere=false) |
virtual | ~Explosion () |
void | drawAndUpdate (float dTime) |
bool | isAlive () |
Protected Member Functions | |
Vec3 | newVelocity (bool sphere=false) |
Protected Attributes | |
float | life |
float | totLife |
float | power |
explosionParticle | particles [NUM_EXPLOSION_PARTICLES] |
explosionDebris | debris [NUM_EXPLOSION_DEBRIS] |
Definition at line 36 of file Explosion.h.
|
Author: Petter Alstermark, petter@alstermark.com Definition at line 9 of file Explosion.cpp. |
|
Definition at line 12 of file Explosion.cpp. References explode(). Here is the call graph for this function: |
|
Definition at line 16 of file Explosion.cpp. |
|
Definition at line 55 of file Explosion.cpp. References app, Renderer::apply(), explosionDebris::color, explosionParticle::color, debris, GL_TEXTURE0_ARB, glMultiTexCoord2fARB, LEQUAL, life, NUM_EXPLOSION_DEBRIS, NUM_EXPLOSION_PARTICLES, ONE, particles, explosionDebris::position, explosionParticle::position, power, Application::renderer, explosionDebris::rotation, explosionDebris::rotationSpeed, explosionDebris::scale, Renderer::setBlending(), Renderer::setDepthFunc(), SRC_ALPHA, totLife, explosionDebris::velocity, explosionParticle::velocity, Vec4::w, Vec4::x, Vec3::y, Vec4::y, Vec3::z, and Vec4::z. Referenced by Play::drawExplosions(). Here is the call graph for this function: |
|
Definition at line 19 of file Explosion.cpp. References explosionDebris::color, explosionParticle::color, debris, EXPLOSION_RAND, life, newVelocity(), NUM_EXPLOSION_DEBRIS, NUM_EXPLOSION_PARTICLES, particles, explosionDebris::position, explosionParticle::position, explosionDebris::rotation, explosionDebris::rotationSpeed, explosionDebris::scale, totLife, explosionDebris::velocity, and explosionParticle::velocity. Referenced by Play::createExplosion(), and Explosion(). Here is the call graph for this function: |
|
Definition at line 44 of file Explosion.h. References life. |
|
Definition at line 42 of file Explosion.cpp. References EXPLOSION_RAND, Vec3::normalize(), Vec3::x, Vec3::y, and Vec3::z. Referenced by explode(). Here is the call graph for this function: |
|
Definition at line 54 of file Explosion.h. Referenced by drawAndUpdate(), and explode(). |
|
Definition at line 50 of file Explosion.h. Referenced by drawAndUpdate(), explode(), and isAlive(). |
|
Definition at line 53 of file Explosion.h. Referenced by drawAndUpdate(), and explode(). |
|
Definition at line 52 of file Explosion.h. Referenced by drawAndUpdate(). |
|
Definition at line 51 of file Explosion.h. Referenced by drawAndUpdate(), and explode(). |