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

#include <W3DTruckDraw.h>

Inherits W3DModelDraw.

Inherited by W3DOverlordTruckDraw, and W3DPoliceCarDraw.

Public Member Functions

 W3DTruckDraw (Thing *thing, const ModuleData *moduleData)
 
virtual void setHidden (Bool h)
 
virtual void doDrawModule (const Matrix3D *transformMtx)
 
virtual void setFullyObscuredByShroud (Bool fullyObscured)
 
virtual void reactToGeometryChange ()
 
- Public Member Functions inherited from W3DModelDraw
 W3DModelDraw (Thing *thing, const ModuleData *moduleData)
 
virtual void preloadAssets (TimeOfDay timeOfDay)
 preloading assets
 
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)
 create shadow resources if not already present. Used by Options screen.
 
virtual void setTerrainDecal (TerrainDecalType type)
 
virtual Bool isVisible () const
 for limiting tree sway, etc to visible objects
 
virtual void reactToTransformChange (const Matrix3D *oldMtx, const Coord3D *oldPos, Real oldAngle)
 
virtual Bool clientOnly_getRenderObjInfo (Coord3D *pos, Real *boundingSphereRadius, Matrix3D *transform) const
 
virtual Bool clientOnly_getRenderObjBoundBox (OBBoxClass *boundbox) const
 
virtual Bool clientOnly_getRenderObjBoneTransform (const AsciiString &boneName, Matrix3D *set_tm) const
 
virtual Int getPristineBonePositionsForConditionState (const ModelConditionFlags &condition, const char *boneNamePrefix, Int startIndex, Coord3D *positions, Matrix3D *transforms, Int maxBones) const
 
virtual Int getCurrentBonePositions (const char *boneNamePrefix, Int startIndex, Coord3D *positions, Matrix3D *transforms, Int maxBones) const
 
virtual Bool getCurrentWorldspaceClientBonePositions (const char *boneName, Matrix3D &transform) const
 
virtual Bool getProjectileLaunchOffset (const ModelConditionFlags &condition, WeaponSlotType wslot, Int specificBarrelToUse, Matrix3D *launchPos, WhichTurretType tur, Coord3D *turretRotPos, Coord3D *turretPitchPos=NULL) const
 
virtual void updateProjectileClipStatus (UnsignedInt shotsRemaining, UnsignedInt maxShots, WeaponSlotType slot)
 This will do the show/hide work if ProjectileBoneFeedbackEnabled is set.
 
virtual void updateDrawModuleSupplyStatus (Int maxSupply, Int currentSupply)
 This will do visual feedback on Supplies carried.
 
virtual void notifyDrawModuleDependencyCleared ()
 if you were waiting for something before you drew, it's ready now
 
virtual void replaceModelConditionState (const ModelConditionFlags &c)
 
virtual void replaceIndicatorColor (Color color)
 
virtual Bool handleWeaponFireFX (WeaponSlotType wslot, Int specificBarrelToUse, const FXList *fxl, Real weaponSpeed, const Coord3D *victimPos, Real damageRadius)
 
virtual Int getBarrelCount (WeaponSlotType wslot) const
 
virtual void setSelectable (Bool selectable)
 
virtual void setAnimationLoopDuration (UnsignedInt numFrames)
 
virtual void setAnimationCompletionTime (UnsignedInt numFrames)
 
virtual void setPauseAnimation (Bool pauseAnim)
 
virtual void setAnimationFrame (int frame)
 
virtual void updateSubObjects ()
 
virtual void showSubObject (const AsciiString &name, Bool show)
 
virtual ObjectDrawInterfacegetObjectDrawInterface ()
 
virtual const ObjectDrawInterfacegetObjectDrawInterface () const
 
RenderObjClassgetRenderObject ()
 
virtual Bool updateBonesForClientParticleSystems (void)
 this will reposition particle systems on the fly ML
 
virtual void onDrawableBoundToObject ()
 
virtual void setTerrainDecalSize (Real x, Real y)
 
virtual void setTerrainDecalOpacity (Real o)
 
- Public Member Functions inherited from DrawModule
 DrawModule (Thing *thing, const ModuleData *moduleData)
 
virtual Bool isLaser () 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 onDelete (void)
 
- Public Member Functions inherited from MemoryPoolObject
void deleteInstance ()
 
- Public Member Functions inherited from Snapshot
 Snapshot (void)
 
 ~Snapshot (void)
 

Protected Member Functions

virtual void onRenderObjRecreated (void)
 
void createEmitters (void)
 Create particle effects.
 
void tossEmitters (void)
 Create particle effects.
 
void enableEmitters (Bool enable)
 stop creating debris from the tank treads
 
void updateBones (void)
 
- Protected Member Functions inherited from W3DModelDraw
const ModelConditionInfogetCurState () const
 
void setModelState (const ModelConditionInfo *newState)
 
const ModelConditionInfofindBestInfo (const ModelConditionFlags &c) const
 
void handleClientTurretPositioning ()
 
void handleClientRecoil ()
 
void recalcBonesForClientParticleSystems ()
 
void stopClientParticleSystems ()
 
void doHideShowSubObjs (const std::vector< ModelConditionInfo::HideShowSubObjInfo > *vec)
 
virtual void adjustTransformMtx (Matrix3D &mtx) const
 
Real getCurAnimDistanceCovered () const
 
Bool setCurAnimDurationInMsec (Real duration)
 
Bool getFullyObscuredByShroud () const
 
- 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

Bool m_effectsInitialized
 
Bool m_wasAirborne
 
Bool m_isPowersliding
 
ParticleSystemm_dustEffect
 debris emitters for when tank is moving
 
ParticleSystemm_dirtEffect
 
ParticleSystemm_powerslideEffect
 
Real m_frontWheelRotation
 
Real m_rearWheelRotation
 
Real m_midFrontWheelRotation
 
Real m_midRearWheelRotation
 
Int m_frontLeftTireBone
 
Int m_frontRightTireBone
 
Int m_rearLeftTireBone
 
Int m_rearRightTireBone
 
Int m_midFrontLeftTireBone
 
Int m_midFrontRightTireBone
 
Int m_midRearLeftTireBone
 
Int m_midRearRightTireBone
 
Int m_midMidLeftTireBone
 
Int m_midMidRightTireBone
 
Int m_cabBone
 
Real m_curCabRotation
 
Int m_trailerBone
 
Real m_curTrailerRotation
 
Int m_prevNumBones
 
AudioEventRTS m_powerslideSound
 
AudioEventRTS m_landingSound
 
RenderObjClassm_prevRenderObj
 

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 82 of file W3DTruckDraw.h.

Constructor & Destructor Documentation

◆ W3DTruckDraw()

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

Definition at line 105 of file W3DTruckDraw.cpp.

Member Function Documentation

◆ createEmitters()

void W3DTruckDraw::createEmitters ( void )
protected

Create particle effects.

Start creating debris from the tank treads

Definition at line 174 of file W3DTruckDraw.cpp.

◆ doDrawModule()

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

Rotate and position wheels and other truck parts.

Reimplemented from W3DModelDraw.

Reimplemented in W3DOverlordTruckDraw, and W3DPoliceCarDraw.

Definition at line 389 of file W3DTruckDraw.cpp.

◆ enableEmitters()

void W3DTruckDraw::enableEmitters ( Bool enable)
protected

stop creating debris from the tank treads

Stop creating debris from the tank treads

Definition at line 238 of file W3DTruckDraw.cpp.

◆ onRenderObjRecreated()

void W3DTruckDraw::onRenderObjRecreated ( void )
protectedvirtual

Reimplemented from W3DModelDraw.

Definition at line 367 of file W3DTruckDraw.cpp.

◆ reactToGeometryChange()

virtual void W3DTruckDraw::reactToGeometryChange ( )
inlinevirtual

Reimplemented from W3DModelDraw.

Definition at line 96 of file W3DTruckDraw.h.

◆ setFullyObscuredByShroud()

void W3DTruckDraw::setFullyObscuredByShroud ( Bool fullyObscured)
virtual

collect some stats about the rendering cost of this draw module recurse through sub-objs to collect stats about the rendering cost of this draw module

Reimplemented from W3DModelDraw.

Definition at line 156 of file W3DTruckDraw.cpp.

◆ setHidden()

void W3DTruckDraw::setHidden ( Bool h)
virtual

Reimplemented from W3DModelDraw.

Reimplemented in W3DOverlordTruckDraw.

Definition at line 357 of file W3DTruckDraw.cpp.

◆ tossEmitters()

void W3DTruckDraw::tossEmitters ( void )
protected

Create particle effects.

Definition at line 133 of file W3DTruckDraw.cpp.

◆ updateBones()

void W3DTruckDraw::updateBones ( void )
protected

Definition at line 268 of file W3DTruckDraw.cpp.

Member Data Documentation

◆ m_cabBone

Int W3DTruckDraw::m_cabBone
protected

Definition at line 128 of file W3DTruckDraw.h.

◆ m_curCabRotation

Real W3DTruckDraw::m_curCabRotation
protected

Definition at line 129 of file W3DTruckDraw.h.

◆ m_curTrailerRotation

Real W3DTruckDraw::m_curTrailerRotation
protected

Definition at line 131 of file W3DTruckDraw.h.

◆ m_dirtEffect

ParticleSystem* W3DTruckDraw::m_dirtEffect
protected

Definition at line 107 of file W3DTruckDraw.h.

◆ m_dustEffect

ParticleSystem* W3DTruckDraw::m_dustEffect
protected

debris emitters for when tank is moving

Definition at line 106 of file W3DTruckDraw.h.

◆ m_effectsInitialized

Bool W3DTruckDraw::m_effectsInitialized
protected

Definition at line 102 of file W3DTruckDraw.h.

◆ m_frontLeftTireBone

Int W3DTruckDraw::m_frontLeftTireBone
protected

Definition at line 115 of file W3DTruckDraw.h.

◆ m_frontRightTireBone

Int W3DTruckDraw::m_frontRightTireBone
protected

Definition at line 116 of file W3DTruckDraw.h.

◆ m_frontWheelRotation

Real W3DTruckDraw::m_frontWheelRotation
protected

Definition at line 110 of file W3DTruckDraw.h.

◆ m_isPowersliding

Bool W3DTruckDraw::m_isPowersliding
protected

Definition at line 104 of file W3DTruckDraw.h.

◆ m_landingSound

AudioEventRTS W3DTruckDraw::m_landingSound
protected

Definition at line 135 of file W3DTruckDraw.h.

◆ m_midFrontLeftTireBone

Int W3DTruckDraw::m_midFrontLeftTireBone
protected

Definition at line 120 of file W3DTruckDraw.h.

◆ m_midFrontRightTireBone

Int W3DTruckDraw::m_midFrontRightTireBone
protected

Definition at line 121 of file W3DTruckDraw.h.

◆ m_midFrontWheelRotation

Real W3DTruckDraw::m_midFrontWheelRotation
protected

Definition at line 112 of file W3DTruckDraw.h.

◆ m_midMidLeftTireBone

Int W3DTruckDraw::m_midMidLeftTireBone
protected

Definition at line 125 of file W3DTruckDraw.h.

◆ m_midMidRightTireBone

Int W3DTruckDraw::m_midMidRightTireBone
protected

Definition at line 126 of file W3DTruckDraw.h.

◆ m_midRearLeftTireBone

Int W3DTruckDraw::m_midRearLeftTireBone
protected

Definition at line 122 of file W3DTruckDraw.h.

◆ m_midRearRightTireBone

Int W3DTruckDraw::m_midRearRightTireBone
protected

Definition at line 123 of file W3DTruckDraw.h.

◆ m_midRearWheelRotation

Real W3DTruckDraw::m_midRearWheelRotation
protected

Definition at line 113 of file W3DTruckDraw.h.

◆ m_powerslideEffect

ParticleSystem* W3DTruckDraw::m_powerslideEffect
protected

Definition at line 108 of file W3DTruckDraw.h.

◆ m_powerslideSound

AudioEventRTS W3DTruckDraw::m_powerslideSound
protected

Definition at line 134 of file W3DTruckDraw.h.

◆ m_prevNumBones

Int W3DTruckDraw::m_prevNumBones
protected

Definition at line 133 of file W3DTruckDraw.h.

◆ m_prevRenderObj

RenderObjClass* W3DTruckDraw::m_prevRenderObj
protected

Definition at line 137 of file W3DTruckDraw.h.

◆ m_rearLeftTireBone

Int W3DTruckDraw::m_rearLeftTireBone
protected

Definition at line 117 of file W3DTruckDraw.h.

◆ m_rearRightTireBone

Int W3DTruckDraw::m_rearRightTireBone
protected

Definition at line 118 of file W3DTruckDraw.h.

◆ m_rearWheelRotation

Real W3DTruckDraw::m_rearWheelRotation
protected

Definition at line 111 of file W3DTruckDraw.h.

◆ m_trailerBone

Int W3DTruckDraw::m_trailerBone
protected

Definition at line 130 of file W3DTruckDraw.h.

◆ m_wasAirborne

Bool W3DTruckDraw::m_wasAirborne
protected

Definition at line 103 of file W3DTruckDraw.h.


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