Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
W3DProjectileStreamDraw Class Reference

#include <W3DProjectileStreamDraw.h>

Inherits DrawModule.

Public Member Functions

 W3DProjectileStreamDraw (Thing *thing, const ModuleData *moduleData)
 
virtual void doDrawModule (const Matrix3D *transformMtx)
 
virtual void releaseShadows (void)
 frees all shadow resources used by this module - used by Options screen.
 
virtual void allocateShadows (void)
 we don't care about preserving temporary shadows.
 
virtual void setShadowsEnabled (Bool)
 we don't care about preserving temporary shadows.
 
virtual void setFullyObscuredByShroud (Bool)
 
virtual void reactToTransformChange (const Matrix3D *oldMtx, const Coord3D *oldPos, Real oldAngle)
 
virtual void reactToGeometryChange ()
 
- Public Member Functions inherited from DrawModule
 DrawModule (Thing *thing, const ModuleData *moduleData)
 
virtual void setTerrainDecal (TerrainDecalType type)
 
virtual void setTerrainDecalSize (Real x, Real y)
 
virtual void setTerrainDecalOpacity (Real o)
 
virtual Bool isVisible () const
 for limiting tree sway, etc to visible objects
 
virtual Bool isLaser () const
 
virtual ObjectDrawInterfacegetObjectDrawInterface ()
 
virtual const ObjectDrawInterfacegetObjectDrawInterface () const
 
virtual DebrisDrawInterfacegetDebrisDrawInterface ()
 
virtual const DebrisDrawInterfacegetDebrisDrawInterface () const
 
virtual TracerDrawInterfacegetTracerDrawInterface ()
 
virtual const TracerDrawInterfacegetTracerDrawInterface () const
 
virtual RopeDrawInterfacegetRopeDrawInterface ()
 
virtual const RopeDrawInterfacegetRopeDrawInterface () const
 
virtual LaserDrawInterfacegetLaserDrawInterface ()
 
virtual const LaserDrawInterfacegetLaserDrawInterface () const
 
- Public Member Functions inherited from DrawableModule
 DrawableModule (Thing *thing, const ModuleData *moduleData)
 < this abstract class needs memory pool hooks
 
- Public Member Functions inherited from Module
 Module (const ModuleData *moduleData)
 < this abstract class needs memory pool hooks
 
virtual NameKeyType getModuleNameKey () const =0
 
NameKeyType getModuleTagNameKey () const
 
virtual void onObjectCreated ()
 
virtual void onDrawableBoundToObject ()
 
virtual void preloadAssets (TimeOfDay timeOfDay)
 preload any assets we might have for this time of day
 
virtual void onDelete (void)
 
- Public Member Functions inherited from MemoryPoolObject
void deleteInstance ()
 
- Public Member Functions inherited from Snapshot
 Snapshot (void)
 
 ~Snapshot (void)
 

Protected Member Functions

void makeOrUpdateLine (Vector3 *points, UnsignedInt pointCount, Int lineIndex)
 
- Protected Member Functions inherited from DrawableModule
DrawablegetDrawable ()
 
const DrawablegetDrawable () const
 
virtual void crc (Xfer *xfer)
 
virtual void xfer (Xfer *xfer)
 
virtual void loadPostProcess (void)
 
- Protected Member Functions inherited from Module
const ModuleDatagetModuleData () const
 
- Protected Member Functions inherited from MemoryPoolObject
virtual ~MemoryPoolObject ()
 
void * operator new (size_t s)
 
void operator delete (void *p)
 
virtual MemoryPoolgetObjectMemoryPool ()=0
 

Protected Attributes

TextureClassm_texture
 
SegmentedLineClassm_allLines [MAX_PROJECTILE_STREAM]
 Persist, so I can ensure they live a full cycle, and minimize re-creates by holding on.
 
Int m_linesValid
 

Additional Inherited Members

- Static Public Member Functions inherited from DrawModule
static ModuleType getModuleType ()
 
static Int getInterfaceMask ()
 
- Static Public Member Functions inherited from Module
static ModuleDatafriend_newModuleData (INI *ini)
 

Detailed Description

Definition at line 60 of file W3DProjectileStreamDraw.h.

Constructor & Destructor Documentation

◆ W3DProjectileStreamDraw()

W3DProjectileStreamDraw::W3DProjectileStreamDraw ( Thing * thing,
const ModuleData * moduleData )

Definition at line 91 of file W3DProjectileStreamDraw.cpp.

Member Function Documentation

◆ allocateShadows()

virtual void W3DProjectileStreamDraw::allocateShadows ( void )
inlinevirtual

we don't care about preserving temporary shadows.

Implements DrawModule.

Definition at line 73 of file W3DProjectileStreamDraw.h.

◆ doDrawModule()

void W3DProjectileStreamDraw::doDrawModule ( const Matrix3D * transformMtx)
virtual

Map behavior states into W3D animations.

Implements DrawModule.

Definition at line 125 of file W3DProjectileStreamDraw.cpp.

◆ makeOrUpdateLine()

void W3DProjectileStreamDraw::makeOrUpdateLine ( Vector3 * points,
UnsignedInt pointCount,
Int lineIndex )
protected

Definition at line 194 of file W3DProjectileStreamDraw.cpp.

◆ reactToGeometryChange()

virtual void W3DProjectileStreamDraw::reactToGeometryChange ( )
inlinevirtual

Implements DrawModule.

Definition at line 77 of file W3DProjectileStreamDraw.h.

◆ reactToTransformChange()

virtual void W3DProjectileStreamDraw::reactToTransformChange ( const Matrix3D * oldMtx,
const Coord3D * oldPos,
Real oldAngle )
inlinevirtual

Implements DrawModule.

Definition at line 76 of file W3DProjectileStreamDraw.h.

◆ releaseShadows()

virtual void W3DProjectileStreamDraw::releaseShadows ( void )
inlinevirtual

frees all shadow resources used by this module - used by Options screen.

Implements DrawModule.

Definition at line 72 of file W3DProjectileStreamDraw.h.

◆ setFullyObscuredByShroud()

void W3DProjectileStreamDraw::setFullyObscuredByShroud ( Bool fullyObscured)
virtual

Implements DrawModule.

Definition at line 100 of file W3DProjectileStreamDraw.cpp.

◆ setShadowsEnabled()

virtual void W3DProjectileStreamDraw::setShadowsEnabled ( Bool )
inlinevirtual

we don't care about preserving temporary shadows.

Implements DrawModule.

Definition at line 74 of file W3DProjectileStreamDraw.h.

Member Data Documentation

◆ m_allLines

SegmentedLineClass* W3DProjectileStreamDraw::m_allLines[MAX_PROJECTILE_STREAM]
protected

Persist, so I can ensure they live a full cycle, and minimize re-creates by holding on.

Definition at line 83 of file W3DProjectileStreamDraw.h.

◆ m_linesValid

Int W3DProjectileStreamDraw::m_linesValid
protected

Definition at line 84 of file W3DProjectileStreamDraw.h.

◆ m_texture

TextureClass* W3DProjectileStreamDraw::m_texture
protected

Definition at line 82 of file W3DProjectileStreamDraw.h.


The documentation for this class was generated from the following files: