#include <WaveGuideUpdate.h>
Inherits UpdateModule.
Protected Types | |
| enum | { MAX_WAVEGUIDE_SHAPE_POINTS = 64 } |
| enum | { MAX_SHAPE_EFFECTS = 3 } |
Protected Member Functions | |
| Bool | initWaveGuide (void) |
| initialize the waveguide on motion start | |
| Bool | startMoving (void) |
| start the waveguide moving | |
| void | computeWaveShapePoints (void) |
| compute the wave shape points | |
| void | transformWaveShape (void) |
| build an array we can re-use of the wave shape points | |
| void | doShapeEffects (void) |
| maintenance for the wave shape effects | |
| void | doWaterMotion (void) |
| do the push up water motion | |
| void | doShoreEffects (void) |
| do any effects on the shorelines | |
| void | doDamage (void) |
| do damage to things that have crossed our path | |
Protected Member Functions inherited from UpdateModule | |
| void | setWakeFrame (Object *obj, UpdateSleepTime wakeDelay) |
| UpdateSleepTime | getWakeFrame () const |
| virtual SleepyUpdatePhase | getUpdatePhase () const |
| UpdateSleepTime | frameToSleepTime (UnsignedInt frame1, UnsignedInt frame2=FOREVER, UnsignedInt frame3=FOREVER, UnsignedInt frame4=FOREVER) |
Protected Member Functions inherited from BehaviorModule | |
| virtual void | crc (Xfer *xfer) |
| virtual void | xfer (Xfer *xfer) |
| virtual void | loadPostProcess (void) |
Protected Member Functions inherited from ObjectModule | |
| Object * | getObject () |
| const Object * | getObject () const |
Protected Member Functions inherited from Module | |
| const ModuleData * | getModuleData () const |
Protected Member Functions inherited from MemoryPoolObject | |
| virtual | ~MemoryPoolObject () |
| void * | operator new (size_t s) |
| void | operator delete (void *p) |
| virtual MemoryPool * | getObjectMemoryPool ()=0 |
Protected Attributes | |
| UnsignedInt | m_activeFrame |
| frame we became active on | |
| Bool | m_needDisable |
| Bool | m_initialized |
| set to TRUE after we're enabled and in motion | |
| Coord3D | m_shapePoints [MAX_WAVEGUIDE_SHAPE_POINTS] |
| array that will be our "shape" of sample points to affect the water | |
| Coord3D | m_transformedShapePoints [MAX_WAVEGUIDE_SHAPE_POINTS] |
| m_shapePoints transformed into current world coords | |
| ParticleSystemID | m_shapeEffects [MAX_WAVEGUIDE_SHAPE_POINTS][MAX_SHAPE_EFFECTS] |
| particle effects on the wavefront | |
| Int | m_shapePointCount |
| number of points in m_shape | |
| UnsignedInt | m_splashSoundFrame |
| frame we last tried to play a splash sound on | |
| Coord3D | m_finalDestination |
| the final destination of the waveguide path | |
Additional Inherited Members | |
Static Public Member Functions inherited from UpdateModule | |
| static Int | getInterfaceMask () |
Static Public Member Functions inherited from BehaviorModule | |
| static Int | getInterfaceMask () |
| static ModuleType | getModuleType () |
Static Public Member Functions inherited from Module | |
| static ModuleData * | friend_newModuleData (INI *ini) |
Definition at line 72 of file WaveGuideUpdate.h.
|
protected |
| Enumerator | |
|---|---|
| MAX_WAVEGUIDE_SHAPE_POINTS | |
Definition at line 103 of file WaveGuideUpdate.h.
|
protected |
| Enumerator | |
|---|---|
| MAX_SHAPE_EFFECTS | |
Definition at line 106 of file WaveGuideUpdate.h.
| WaveGuideUpdate::WaveGuideUpdate | ( | Thing * | thing, |
| const ModuleData * | moduleData ) |
Definition at line 117 of file WaveGuideUpdate.cpp.
|
protected |
compute the wave shape points
Definition at line 313 of file WaveGuideUpdate.cpp.
|
protected |
do damage to things that have crossed our path
Do damage to things that have fallen victim in the path of this enourmous wave
Definition at line 550 of file WaveGuideUpdate.cpp.
|
protected |
maintenance for the wave shape effects
Update phase for the effects that make up the front shape of the wave
Definition at line 375 of file WaveGuideUpdate.cpp.
|
protected |
do any effects on the shorelines
Any points in our wave that are on the shoreline that are close enough to the effect points for the shore will do those effects
Definition at line 450 of file WaveGuideUpdate.cpp.
|
protected |
do the push up water motion
Given all our sample points, make the wave go
Definition at line 422 of file WaveGuideUpdate.cpp.
|
protected |
initialize the waveguide on motion start
The wave guide has started moving ... this is called once
Definition at line 248 of file WaveGuideUpdate.cpp.
|
protected |
start the waveguide moving
Start the waveguide moving along its waypoint path, bringing water destruction and havok upon the land
Definition at line 156 of file WaveGuideUpdate.cpp.
|
protected |
build an array we can re-use of the wave shape points
Given the current position and orientation of the wave guide, transform all the wave shape points so we can quickly access them for mutliple reasons
Definition at line 353 of file WaveGuideUpdate.cpp.
|
virtual |
the update implementation
Implements UpdateModule.
Definition at line 758 of file WaveGuideUpdate.cpp.
|
protected |
frame we became active on
Definition at line 99 of file WaveGuideUpdate.h.
|
protected |
the final destination of the waveguide path
Definition at line 111 of file WaveGuideUpdate.h.
|
protected |
set to TRUE after we're enabled and in motion
Definition at line 101 of file WaveGuideUpdate.h.
|
protected |
Definition at line 100 of file WaveGuideUpdate.h.
|
protected |
particle effects on the wavefront
Definition at line 107 of file WaveGuideUpdate.h.
|
protected |
number of points in m_shape
Definition at line 108 of file WaveGuideUpdate.h.
|
protected |
array that will be our "shape" of sample points to affect the water
Definition at line 104 of file WaveGuideUpdate.h.
|
protected |
frame we last tried to play a splash sound on
Definition at line 109 of file WaveGuideUpdate.h.
|
protected |
m_shapePoints transformed into current world coords
Definition at line 105 of file WaveGuideUpdate.h.