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

Definition at line 31 of file MiniShock.h.
Public Member Functions | |
| MiniShock (void) | |
| default constructor | |
| MiniShock (Vector vPos, float energy) | |
| general constructor | |
| ~MiniShock (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 | |
| MiniShock::MiniShock | ( | void | ) |
| MiniShock::MiniShock | ( | Vector | vPos, | |
| float | energy | |||
| ) |
| MiniShock::~MiniShock | ( | void | ) |
Definition at line 48 of file MiniShock.cpp.
| void MiniShock::Draw | ( | void | ) |
Definition at line 52 of file MiniShock.cpp.
References DrawCircle(), 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 MiniShock::Step | ( | float | timeStep | ) |
Definition at line 72 of file MiniShock.cpp.
Referenced by CEffect::Step().
Here is the caller graph for this function:

| void MiniShock::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 90 of file MiniShock.cpp.
References fColorB, fColorG, and fColorR.
Referenced by PhysicsReflect(), and RemoveDeadObjects().
Here is the caller graph for this function:

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