#include <structs.h>
Collaboration diagram for CEffect:

Definition at line 69 of file structs.h.
Public Member Functions | |
| ~CEffect (void) | |
| destructor | |
| CEffect (int type) | |
| general constructor | |
| void | Draw (void) |
| draw the effect on screen | |
| bool | Step (float timeDelta) |
| updates an effect's state | |
Public Attributes | |
| int | iType |
| which type this effect will be initialized to (particle system, etc.) | |
| bool | bExpired |
| flag indicating whether or not this effect is complete | |
| PSystem * | PSys |
| pointers to this effects real data type (flyweight pattern) =) | |
| Shockwave * | SWave |
| TileAnim * | TAnim |
| TileStorm * | TStorm |
| MiniShock * | MShock |
| CEffect * | Previous |
| a link to the previous CEffect when this object is in a linked list | |
| CEffect * | Next |
| a link to the next CEffect when this object is in a linked list | |
| CEffect::~CEffect | ( | void | ) |
Remove the effect and any associated data.
Definition at line 44 of file structs.cpp.
| CEffect::CEffect | ( | int | type | ) |
Initializes an effect object based on the effect ID type passed as a parameter.
Definition at line 56 of file structs.cpp.
References bExpired, EFFECTID_MINISHOCK, EFFECTID_NULL, EFFECTID_PSYSTEM, EFFECTID_SHOCKWAVE, EFFECTID_TILEANIM, EFFECTID_TILESTORM, iType, MShock, Next, Previous, PSys, SWave, TAnim, and TStorm.
| void CEffect::Draw | ( | void | ) |
Draws the effect on screen, based on it's effect ID type and it's current instance data.
Definition at line 104 of file structs.cpp.
References MiniShock::Draw(), TileAnim::Draw(), TileStorm::Draw(), Shockwave::Draw(), PSystem::Draw(), EFFECTID_MINISHOCK, EFFECTID_NULL, EFFECTID_PSYSTEM, EFFECTID_SHOCKWAVE, EFFECTID_TILEANIM, EFFECTID_TILESTORM, iType, MShock, PSys, SWave, TAnim, and TStorm.
Referenced by CWorld::DrawEffects().
Here is the call graph for this function:

Here is the caller graph for this function:

| bool CEffect::Step | ( | float | timeDelta | ) |
Updates an effect's state, based on a time delta value passed as a parameter to the function.
Definition at line 141 of file structs.cpp.
References EFFECTID_MINISHOCK, EFFECTID_NULL, EFFECTID_PSYSTEM, EFFECTID_SHOCKWAVE, EFFECTID_TILEANIM, EFFECTID_TILESTORM, iType, MShock, PSys, MiniShock::Step(), TileAnim::Step(), TileStorm::Step(), Shockwave::Step(), PSystem::Step(), SWave, TAnim, and TStorm.
Referenced by CWorld::UpdateEffects().
Here is the call graph for this function:

Here is the caller graph for this function:

| int CEffect::iType |
| bool CEffect::bExpired |
Definition at line 74 of file structs.h.
Referenced by CEffect(), CWorld::DrawEffects(), and CWorld::UpdateEffects().
Definition at line 76 of file structs.h.
Referenced by CEffect(), Draw(), GameLogicFire(), ProcessTileCollisions(), RemoveDeadObjects(), Step(), and ~CEffect().
Definition at line 77 of file structs.h.
Referenced by CEffect(), Draw(), RemoveDeadObjects(), Step(), and ~CEffect().
Definition at line 78 of file structs.h.
Referenced by CEffect(), Draw(), PlayGame(), RemoveDeadObjects(), and Step().
Definition at line 80 of file structs.h.
Referenced by CEffect(), Draw(), PhysicsReflect(), RemoveDeadObjects(), and Step().
Definition at line 82 of file structs.h.
Referenced by CWorld::AddEffect(), CEffect(), and CWorld::RemoveEffect().
Definition at line 83 of file structs.h.
Referenced by CWorld::AddEffect(), CEffect(), CWorld::DrawEffects(), CWorld::RemoveEffect(), and CWorld::UpdateEffects().
Copyright Windsor Schmidt 2006 - All rights reserved.