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

#include <SwayClientUpdate.h>

Inherits ClientUpdateModule.

Public Member Functions

 SwayClientUpdate (Thing *thing, const ModuleData *moduleData)
 
virtual void clientUpdate (void)
 the client update callback
 
void stopSway (void)
 
- Public Member Functions inherited from ClientUpdateModule
 ClientUpdateModule (Thing *thing, const ModuleData *moduleData)
 
- 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 updateSway (void)
 
- 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

Real m_curValue
 
Real m_curAngle
 
Real m_curDelta
 
Real m_curAngleLimit
 
Real m_leanAngle
 Angle that the tree leans away from the wind.
 
Short m_curVersion
 
Bool m_swaying
 
Bool m_unused
 

Additional Inherited Members

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

Detailed Description

The tree way client update module

Definition at line 44 of file SwayClientUpdate.h.

Constructor & Destructor Documentation

◆ SwayClientUpdate()

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

Definition at line 54 of file SwayClientUpdate.cpp.

Member Function Documentation

◆ clientUpdate()

void SwayClientUpdate::clientUpdate ( void )
virtual

the client update callback

The client update callback.

Implements ClientUpdateModule.

Definition at line 101 of file SwayClientUpdate.cpp.

◆ stopSway()

void SwayClientUpdate::stopSway ( void )
inline

Definition at line 58 of file SwayClientUpdate.h.

◆ updateSway()

void SwayClientUpdate::updateSway ( void )
protected

Definition at line 81 of file SwayClientUpdate.cpp.

Member Data Documentation

◆ m_curAngle

Real SwayClientUpdate::m_curAngle
protected

Definition at line 63 of file SwayClientUpdate.h.

◆ m_curAngleLimit

Real SwayClientUpdate::m_curAngleLimit
protected

Definition at line 65 of file SwayClientUpdate.h.

◆ m_curDelta

Real SwayClientUpdate::m_curDelta
protected

Definition at line 64 of file SwayClientUpdate.h.

◆ m_curValue

Real SwayClientUpdate::m_curValue
protected

Definition at line 62 of file SwayClientUpdate.h.

◆ m_curVersion

Short SwayClientUpdate::m_curVersion
protected

Definition at line 67 of file SwayClientUpdate.h.

◆ m_leanAngle

Real SwayClientUpdate::m_leanAngle
protected

Angle that the tree leans away from the wind.

Definition at line 66 of file SwayClientUpdate.h.

◆ m_swaying

Bool SwayClientUpdate::m_swaying
protected

Definition at line 68 of file SwayClientUpdate.h.

◆ m_unused

Bool SwayClientUpdate::m_unused
protected

Definition at line 69 of file SwayClientUpdate.h.


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