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

#include <W3DGhostObject.h>

Inherits GhostObjectManager.

Public Member Functions

 W3DGhostObjectManager ()
 
virtual ~W3DGhostObjectManager ()
 
virtual void reset (void)
 
virtual GhostObjectaddGhostObject (Object *object, PartitionData *pd)
 
virtual void removeGhostObject (GhostObject *mod)
 
virtual void setLocalPlayerIndex (int index)
 
virtual void updateOrphanedObjects (int *playerIndexList, int numNonLocalPlayers)
 
virtual void releasePartitionData (void)
 saves data needed to later rebuild partition manager data.
 
virtual void restorePartitionData (void)
 restores ghost objects into the partition manager.
 
- Public Member Functions inherited from GhostObjectManager
 GhostObjectManager ()
 
virtual ~GhostObjectManager ()
 
int getLocalPlayerIndex (void)
 
void lockGhostObjects (Bool enableLock)
 temporary lock on creating new ghost objects. Only used by map border resizing!
 
void saveLockGhostObjects (Bool enableLock)
 
- Public Member Functions inherited from Snapshot
 Snapshot (void)
 
 ~Snapshot (void)
 

Protected Member Functions

virtual void crc (Xfer *xfer)
 
virtual void xfer (Xfer *xfer)
 
virtual void loadPostProcess (void)
 

Protected Attributes

W3DGhostObjectm_freeModules
 
W3DGhostObjectm_usedModules
 
- Protected Attributes inherited from GhostObjectManager
Int m_localPlayer
 
Bool m_lockGhostObjects
 
Bool m_saveLockGhostObjects
 used to lock the ghost object system during a save/load
 

Detailed Description

Definition at line 73 of file W3DGhostObject.h.

Constructor & Destructor Documentation

◆ W3DGhostObjectManager()

W3DGhostObjectManager::W3DGhostObjectManager ( void )

Definition at line 844 of file W3DGhostObject.cpp.

◆ ~W3DGhostObjectManager()

W3DGhostObjectManager::~W3DGhostObjectManager ( )
virtual

Definition at line 854 of file W3DGhostObject.cpp.

Member Function Documentation

◆ addGhostObject()

GhostObject * W3DGhostObjectManager::addGhostObject ( Object * object,
PartitionData * pd )
virtual

Reimplemented from GhostObjectManager.

Definition at line 929 of file W3DGhostObject.cpp.

◆ crc()

void W3DGhostObjectManager::crc ( Xfer * xfer)
protectedvirtual

CRC

Reimplemented from GhostObjectManager.

Definition at line 1131 of file W3DGhostObject.cpp.

◆ loadPostProcess()

void W3DGhostObjectManager::loadPostProcess ( void )
protectedvirtual

Load post process

Reimplemented from GhostObjectManager.

Definition at line 1252 of file W3DGhostObject.cpp.

◆ releasePartitionData()

void W3DGhostObjectManager::releasePartitionData ( void )
virtual

saves data needed to later rebuild partition manager data.

Reimplemented from GhostObjectManager.

Definition at line 1067 of file W3DGhostObject.cpp.

◆ removeGhostObject()

void W3DGhostObjectManager::removeGhostObject ( GhostObject * mod)
virtual

Reimplemented from GhostObjectManager.

Definition at line 902 of file W3DGhostObject.cpp.

◆ reset()

void W3DGhostObjectManager::reset ( void )
virtual

Reimplemented from GhostObjectManager.

Definition at line 871 of file W3DGhostObject.cpp.

◆ restorePartitionData()

void W3DGhostObjectManager::restorePartitionData ( void )
virtual

restores ghost objects into the partition manager.

Reimplemented from GhostObjectManager.

Definition at line 1095 of file W3DGhostObject.cpp.

◆ setLocalPlayerIndex()

void W3DGhostObjectManager::setLocalPlayerIndex ( int index)
virtual

Reimplemented from GhostObjectManager.

Definition at line 987 of file W3DGhostObject.cpp.

◆ updateOrphanedObjects()

void W3DGhostObjectManager::updateOrphanedObjects ( int * playerIndexList,
int numNonLocalPlayers )
virtual

When a game object/drawable dies, it is removed from the rest of the engine. It leaves behind a GhostObject in case any players didn't see the death and have a fogged view of the pre-death object. We need to manually determine if these orphaned GhostObjects ever become visible and are no longer needed

Reimplemented from GhostObjectManager.

Definition at line 1025 of file W3DGhostObject.cpp.

◆ xfer()

void W3DGhostObjectManager::xfer ( Xfer * xfer)
protectedvirtual

Xfer Method Version Info: 1: Initial version

Reimplemented from GhostObjectManager.

Definition at line 1144 of file W3DGhostObject.cpp.

Member Data Documentation

◆ m_freeModules

W3DGhostObject* W3DGhostObjectManager::m_freeModules
protected
Todo
this list should really be part of the device independent base class (CBD 12-3-2002)

Definition at line 92 of file W3DGhostObject.h.

◆ m_usedModules

W3DGhostObject* W3DGhostObjectManager::m_usedModules
protected

Definition at line 93 of file W3DGhostObject.h.


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