#include <RayEffect.h>
Inherits SubsystemInterface.
Public Member Functions | |
| RayEffectSystem (void) | |
| ~RayEffectSystem (void) | |
| virtual void | init (void) |
| virtual void | reset (void) |
| virtual void | update (void) |
| void | addRayEffect (const Drawable *draw, const Coord3D *startLoc, const Coord3D *endLoc) |
| add a ray effect entry for this drawable | |
| void | deleteRayEffect (const Drawable *draw) |
| given a drawable, remove its effect from the system | |
| void | getRayEffectData (const Drawable *draw, RayEffectData *effectData) |
Public Member Functions inherited from SubsystemInterface | |
| SubsystemInterface () | |
| virtual | ~SubsystemInterface () |
| virtual void | postProcessLoad () |
| virtual void | draw (void) |
| void | UPDATE (void) |
| void | DRAW (void) |
| AsciiString | getName (void) |
| void | setName (AsciiString name) |
Protected Types | |
| enum | { MAX_RAY_EFFECTS = 128 } |
Protected Member Functions | |
| RayEffectData * | findEntry (const Drawable *draw) |
| find an effect data entry based on the drawable | |
Protected Attributes | |
| RayEffectData | m_effectData [MAX_RAY_EFFECTS] |
| all the ray effects | |
Protected Attributes inherited from SubsystemInterface | |
| AsciiString | m_name |
This class maintains all the ray effects visible in the world
Definition at line 57 of file RayEffect.h.
|
protected |
| Enumerator | |
|---|---|
| MAX_RAY_EFFECTS | |
Definition at line 84 of file RayEffect.h.
| RayEffectSystem::RayEffectSystem | ( | void | ) |
Definition at line 71 of file RayEffect.cpp.
| RayEffectSystem::~RayEffectSystem | ( | void | ) |
Definition at line 80 of file RayEffect.cpp.
| void RayEffectSystem::addRayEffect | ( | const Drawable * | draw, |
| const Coord3D * | startLoc, | ||
| const Coord3D * | endLoc ) |
add a ray effect entry for this drawable
add a ray effect entry for this drawable
Definition at line 117 of file RayEffect.cpp.
| void RayEffectSystem::deleteRayEffect | ( | const Drawable * | draw | ) |
given a drawable, remove its effect from the system
given a drawable, remove its effect from the system
Definition at line 160 of file RayEffect.cpp.
|
protected |
find an effect data entry based on the drawable
Find an effect entry given a drawable
Definition at line 44 of file RayEffect.cpp.
| void RayEffectSystem::getRayEffectData | ( | const Drawable * | draw, |
| RayEffectData * | effectData ) |
given a drawable, if it is in the ray effect system list retrieve the ray effect data for its entry
Definition at line 184 of file RayEffect.cpp.
|
virtual |
|
virtual |
|
inlinevirtual |
Implements SubsystemInterface.
Definition at line 67 of file RayEffect.h.
|
protected |
all the ray effects
Definition at line 88 of file RayEffect.h.