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

#include <Module.h>

Inherits Module.

Inherited by BehaviorModule.

Public Member Functions

 ObjectModule (Thing *thing, const ModuleData *moduleData)
 < this abstract class needs memory pool hooks
 
virtual void onCapture (Player *oldOwner, Player *newOwner)
 
virtual void onDisabledEdge (Bool nowDisabled)
 
- 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

ObjectgetObject ()
 
const ObjectgetObject () 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
 

Additional Inherited Members

- Static Public Member Functions inherited from Module
static ModuleDatafriend_newModuleData (INI *ini)
 

Detailed Description

Module interface specific for Objects, this is really just to make a clear distinction between modules intended for use in objects and modules intended for use in drawables

Definition at line 243 of file Module.h.

Constructor & Destructor Documentation

◆ ObjectModule()

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

< this abstract class needs memory pool hooks

Definition at line 112 of file Module.cpp.

Member Function Documentation

◆ crc()

void ObjectModule::crc ( Xfer * xfer)
protectedvirtual

CRC

Reimplemented from Module.

Reimplemented in BehaviorModule, BodyModule, and ObjectHelper.

Definition at line 136 of file Module.cpp.

◆ getObject() [1/2]

Object * ObjectModule::getObject ( )
inlineprotected

Definition at line 258 of file Module.h.

◆ getObject() [2/2]

const Object * ObjectModule::getObject ( ) const
inlineprotected

Definition at line 259 of file Module.h.

◆ loadPostProcess()

void ObjectModule::loadPostProcess ( void )
protectedvirtual

load post process

Reimplemented from Module.

Reimplemented in BehaviorModule, BodyModule, and ObjectHelper.

Definition at line 165 of file Module.cpp.

◆ onCapture()

virtual void ObjectModule::onCapture ( Player * oldOwner,
Player * newOwner )
inlinevirtual

◆ onDisabledEdge()

virtual void ObjectModule::onDisabledEdge ( Bool nowDisabled)
inlinevirtual

Reimplemented in SpyVisionUpdate.

Definition at line 254 of file Module.h.

◆ xfer()

void ObjectModule::xfer ( Xfer * xfer)
protectedvirtual

Xfer method Version Info: 1: Initial version

Reimplemented from Module.

Reimplemented in BehaviorModule, BodyModule, and ObjectHelper.

Definition at line 149 of file Module.cpp.


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