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

#include <GhostObject.h>

Inherits Snapshot.

Inherited by W3DGhostObjectManager.

Public Member Functions

 GhostObjectManager ()
 
virtual ~GhostObjectManager ()
 
virtual void reset (void)
 
virtual GhostObjectaddGhostObject (Object *object, PartitionData *pd)
 
virtual void removeGhostObject (GhostObject *mod)
 
virtual void setLocalPlayerIndex (int index)
 
int getLocalPlayerIndex (void)
 
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.
 
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)
 run the "light" crc check on this data structure
 
virtual void xfer (Xfer *xfer)
 
virtual void loadPostProcess (void)
 

Protected Attributes

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 81 of file GhostObject.h.

Constructor & Destructor Documentation

◆ GhostObjectManager()

GhostObjectManager::GhostObjectManager ( void )

Definition at line 139 of file GhostObject.cpp.

◆ ~GhostObjectManager()

GhostObjectManager::~GhostObjectManager ( )
virtual

Definition at line 148 of file GhostObject.cpp.

Member Function Documentation

◆ addGhostObject()

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

Reimplemented in W3DGhostObjectManager.

Definition at line 162 of file GhostObject.cpp.

◆ crc()

void GhostObjectManager::crc ( Xfer * xfer)
protectedvirtual

run the "light" crc check on this data structure

Implements Snapshot.

Reimplemented in W3DGhostObjectManager.

Definition at line 195 of file GhostObject.cpp.

◆ getLocalPlayerIndex()

int GhostObjectManager::getLocalPlayerIndex ( void )
inline

Definition at line 90 of file GhostObject.h.

◆ loadPostProcess()

void GhostObjectManager::loadPostProcess ( void )
protectedvirtual

Load post process

Implements Snapshot.

Reimplemented in W3DGhostObjectManager.

Definition at line 221 of file GhostObject.cpp.

◆ lockGhostObjects()

void GhostObjectManager::lockGhostObjects ( Bool enableLock)
inline

temporary lock on creating new ghost objects. Only used by map border resizing!

Definition at line 94 of file GhostObject.h.

◆ releasePartitionData()

void GhostObjectManager::releasePartitionData ( void )
virtual

saves data needed to later rebuild partition manager data.

Reimplemented in W3DGhostObjectManager.

Definition at line 183 of file GhostObject.cpp.

◆ removeGhostObject()

void GhostObjectManager::removeGhostObject ( GhostObject * mod)
virtual

Reimplemented in W3DGhostObjectManager.

Definition at line 169 of file GhostObject.cpp.

◆ reset()

void GhostObjectManager::reset ( void )
virtual

Reimplemented in W3DGhostObjectManager.

Definition at line 155 of file GhostObject.cpp.

◆ restorePartitionData()

void GhostObjectManager::restorePartitionData ( void )
virtual

restores ghost objects into the partition manager.

Reimplemented in W3DGhostObjectManager.

Definition at line 189 of file GhostObject.cpp.

◆ saveLockGhostObjects()

void GhostObjectManager::saveLockGhostObjects ( Bool enableLock)
inline

Definition at line 95 of file GhostObject.h.

◆ setLocalPlayerIndex()

virtual void GhostObjectManager::setLocalPlayerIndex ( int index)
inlinevirtual

Reimplemented in W3DGhostObjectManager.

Definition at line 89 of file GhostObject.h.

◆ updateOrphanedObjects()

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

Reimplemented in W3DGhostObjectManager.

Definition at line 176 of file GhostObject.cpp.

◆ xfer()

void GhostObjectManager::xfer ( Xfer * xfer)
protectedvirtual

Xfer Method: Version Info: 1: Initial version

Implements Snapshot.

Reimplemented in W3DGhostObjectManager.

Definition at line 205 of file GhostObject.cpp.

Member Data Documentation

◆ m_localPlayer

Int GhostObjectManager::m_localPlayer
protected

Definition at line 100 of file GhostObject.h.

◆ m_lockGhostObjects

Bool GhostObjectManager::m_lockGhostObjects
protected

Definition at line 101 of file GhostObject.h.

◆ m_saveLockGhostObjects

Bool GhostObjectManager::m_saveLockGhostObjects
protected

used to lock the ghost object system during a save/load

Definition at line 102 of file GhostObject.h.


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