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

#include <W3DRopeDraw.h>

Inherits DrawModule, and RopeDrawInterface.

Public Member Functions

 W3DRopeDraw (Thing *thing, const ModuleData *moduleData)
 
virtual void doDrawModule (const Matrix3D *transformMtx)
 
virtual void setShadowsEnabled (Bool enable)
 
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 setFullyObscuredByShroud (Bool fullyObscured)
 we don't care about preserving temporary shadows.
 
virtual void reactToTransformChange (const Matrix3D *oldMtx, const Coord3D *oldPos, Real oldAngle)
 
virtual void reactToGeometryChange ()
 
virtual void initRopeParms (Real length, Real width, const RGBColor &color, Real wobbleLen, Real wobbleAmp, Real wobbleRate)
 
virtual void setRopeCurLen (Real length)
 
virtual void setRopeSpeed (Real curSpeed, Real maxSpeed, Real accel)
 
virtual RopeDrawInterfacegetRopeDrawInterface ()
 
virtual const RopeDrawInterfacegetRopeDrawInterface () const
 
- 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 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)
 

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)
 
- 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
 

Detailed Description

W3D rope draw

Definition at line 42 of file W3DRopeDraw.h.

Constructor & Destructor Documentation

◆ W3DRopeDraw()

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

Definition at line 59 of file W3DRopeDraw.cpp.

Member Function Documentation

◆ allocateShadows()

virtual void W3DRopeDraw::allocateShadows ( void )
inlinevirtual

we don't care about preserving temporary shadows.

Implements DrawModule.

Definition at line 56 of file W3DRopeDraw.h.

◆ doDrawModule()

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

Implements DrawModule.

Definition at line 180 of file W3DRopeDraw.cpp.

◆ getRopeDrawInterface() [1/2]

virtual RopeDrawInterface * W3DRopeDraw::getRopeDrawInterface ( )
inlinevirtual

Reimplemented from DrawModule.

Definition at line 65 of file W3DRopeDraw.h.

◆ getRopeDrawInterface() [2/2]

virtual const RopeDrawInterface * W3DRopeDraw::getRopeDrawInterface ( ) const
inlinevirtual

Reimplemented from DrawModule.

Definition at line 66 of file W3DRopeDraw.h.

◆ initRopeParms()

void W3DRopeDraw::initRopeParms ( Real length,
Real width,
const RGBColor & color,
Real wobbleLen,
Real wobbleAmp,
Real wobbleRate )
virtual

Implements RopeDrawInterface.

Definition at line 140 of file W3DRopeDraw.cpp.

◆ reactToGeometryChange()

virtual void W3DRopeDraw::reactToGeometryChange ( )
inlinevirtual

Implements DrawModule.

Definition at line 59 of file W3DRopeDraw.h.

◆ reactToTransformChange()

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

Implements DrawModule.

Definition at line 58 of file W3DRopeDraw.h.

◆ releaseShadows()

virtual void W3DRopeDraw::releaseShadows ( void )
inlinevirtual

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

Implements DrawModule.

Definition at line 55 of file W3DRopeDraw.h.

◆ setFullyObscuredByShroud()

virtual void W3DRopeDraw::setFullyObscuredByShroud ( Bool fullyObscured)
inlinevirtual

we don't care about preserving temporary shadows.

Implements DrawModule.

Definition at line 57 of file W3DRopeDraw.h.

◆ setRopeCurLen()

void W3DRopeDraw::setRopeCurLen ( Real length)
virtual

Implements RopeDrawInterface.

Definition at line 157 of file W3DRopeDraw.cpp.

◆ setRopeSpeed()

void W3DRopeDraw::setRopeSpeed ( Real curSpeed,
Real maxSpeed,
Real accel )
virtual

Implements RopeDrawInterface.

Definition at line 164 of file W3DRopeDraw.cpp.

◆ setShadowsEnabled()

virtual void W3DRopeDraw::setShadowsEnabled ( Bool enable)
inlinevirtual

Implements DrawModule.

Definition at line 54 of file W3DRopeDraw.h.


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