#include <Shockwave.h>
Collaboration diagram for Shockwave:

Definition at line 31 of file Shockwave.h.
Public Member Functions | |
| Shockwave (void) | |
| default constructor | |
| Shockwave (Vector vPos, float energy) | |
| general constructor | |
| ~Shockwave (void) | |
| remove the effect | |
| void | Draw (void) |
| draws the effect in it's current state | |
| bool | Step (float timeStep) |
| advance the state of the effect | |
| void | SetColor (float r, float g, float b) |
| set the color used to draw the effect | |
Public Attributes | |
| Vector | vPosition |
| absolute position of the effect's origin | |
| float | fEnergy |
| energy of the wave (relates to lifespan) | |
| float | fDecayRate |
| rate at which wave loses energy | |
| float | fAge |
| how long the wave has been around | |
| float | fColorR |
| red color component | |
| float | fColorG |
| green color component | |
| float | fColorB |
| blue color component | |
| Shockwave::Shockwave | ( | void | ) |
| Shockwave::Shockwave | ( | Vector | vPos, | |
| float | energy | |||
| ) |
| Shockwave::~Shockwave | ( | void | ) |
Definition at line 55 of file Shockwave.cpp.
| void Shockwave::Draw | ( | void | ) |
Definition at line 61 of file Shockwave.cpp.
References DrawCircle(), DrawDisc(), DrawStar(), fAge, fColorB, fColorG, fColorR, fEnergy, vPosition, Vector::x, and Vector::y.
Referenced by CEffect::Draw().
Here is the call graph for this function:

Here is the caller graph for this function:

| bool Shockwave::Step | ( | float | timeStep | ) |
As the effect is stepped forward in time, a set of concentric rings orginating at the effects center are expanded and reduced in opacity to create the 'shock wave' effect.
Definition at line 87 of file Shockwave.cpp.
Referenced by CEffect::Step().
Here is the caller graph for this function:

| void Shockwave::SetColor | ( | float | r, | |
| float | g, | |||
| float | b | |||
| ) |
Set the color of the effect, with individual intensity values for red, green, and blue color components.
Definition at line 106 of file Shockwave.cpp.
References fColorB, fColorG, and fColorR.
Referenced by RemoveDeadObjects().
Here is the caller graph for this function:

| float Shockwave::fEnergy |
| float Shockwave::fDecayRate |
Definition at line 36 of file Shockwave.h.
| float Shockwave::fAge |
| float Shockwave::fColorR |
| float Shockwave::fColorG |
| float Shockwave::fColorB |
Copyright Windsor Schmidt 2006 - All rights reserved.