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

#include <W3DGhostObject.h>

Inherits GhostObject.

Public Member Functions

 W3DGhostObject ()
 
virtual ~W3DGhostObject ()
 
virtual void snapShot (int playerIndex)
 
virtual void updateParentObject (Object *object, PartitionData *mod)
 
virtual void freeSnapShot (int playerIndex)
 
- Public Member Functions inherited from GhostObject
 GhostObject ()
 
virtual ~GhostObject ()
 
PartitionDatafriend_getPartitionData (void) const
 
GeometryType getGeometryType (void) const
 
Bool getGeometrySmall (void) const
 
Real getGeometryMajorRadius (void) const
 
Real getGeometryMinorRadius (void) const
 
Real getParentAngle (void) const
 
const Coord3DgetParentPosition (void) const
 
- 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)
 
void removeParentObject (void)
 
void restoreParentObject (void)
 restore the original non-ghosted object to scene.
 
void addToScene (int playerIndex)
 
void removeFromScene (int playerIndex)
 
void release (void)
 used by manager to return object to free store.
 
void getShroudStatus (int playerIndex)
 used to get the partition manager to update ghost objects without parent objects.
 
void freeAllSnapShots (void)
 used to free all snapshots from all players.
 

Protected Attributes

W3DRenderObjectSnapshotm_parentSnapshots [MAX_PLAYER_COUNT]
 
DrawableInfo m_drawableInfo
 
W3DGhostObjectm_nextSystem
 
W3DGhostObjectm_prevSystem
 
- Protected Attributes inherited from GhostObject
Objectm_parentObject
 object which we are ghosting
 
GeometryType m_parentGeometryType
 
Bool m_parentGeometryIsSmall
 
Real m_parentGeometryMajorRadius
 
Real m_parentGeometryminorRadius
 
Real m_parentAngle
 
Coord3D m_parentPosition
 
PartitionDatam_partitionData
 our PartitionData
 

Detailed Description

Definition at line 45 of file W3DGhostObject.h.

Constructor & Destructor Documentation

◆ W3DGhostObject()

W3DGhostObject::W3DGhostObject ( )

Definition at line 292 of file W3DGhostObject.cpp.

◆ ~W3DGhostObject()

W3DGhostObject::~W3DGhostObject ( )
virtual

Definition at line 310 of file W3DGhostObject.cpp.

Member Function Documentation

◆ addToScene()

void W3DGhostObject::addToScene ( int playerIndex)
protected

Add the dummy render objects to scene so player sees the correct version within the fog

Definition at line 560 of file W3DGhostObject.cpp.

◆ crc()

void W3DGhostObject::crc ( Xfer * xfer)
protectedvirtual

CRC

Reimplemented from GhostObject.

Definition at line 599 of file W3DGhostObject.cpp.

◆ freeAllSnapShots()

void W3DGhostObject::freeAllSnapShots ( void )
protected

used to free all snapshots from all players.

Definition at line 469 of file W3DGhostObject.cpp.

◆ freeSnapShot()

void W3DGhostObject::freeSnapShot ( int playerIndex)
virtual

Player has unfogged the object so he no longer needs the snapshot

Implements GhostObject.

Definition at line 501 of file W3DGhostObject.cpp.

◆ getShroudStatus()

void W3DGhostObject::getShroudStatus ( int playerIndex)
protected

used to get the partition manager to update ghost objects without parent objects.

Definition at line 591 of file W3DGhostObject.cpp.

◆ loadPostProcess()

void W3DGhostObject::loadPostProcess ( void )
protectedvirtual

Load post process

Reimplemented from GhostObject.

Definition at line 834 of file W3DGhostObject.cpp.

◆ release()

void W3DGhostObject::release ( void )
protected

used by manager to return object to free store.

Definition at line 573 of file W3DGhostObject.cpp.

◆ removeFromScene()

void W3DGhostObject::removeFromScene ( int playerIndex)
protected

Remove the dummy render objects from scene that belong to given player

Definition at line 546 of file W3DGhostObject.cpp.

◆ removeParentObject()

void W3DGhostObject::removeParentObject ( void )
protected

Remove the original object from our 3D scene

Definition at line 399 of file W3DGhostObject.cpp.

◆ restoreParentObject()

void W3DGhostObject::restoreParentObject ( void )
protected

restore the original non-ghosted object to scene.

Reinsert the original object into our 3D scene

Definition at line 434 of file W3DGhostObject.cpp.

◆ snapShot()

void W3DGhostObject::snapShot ( int playerIndex)
virtual

Record the current state of the renderobjects used by this parent object so we can display cached state when player is looking at fogged object. Should only be called when object enters the fogged state.

Todo
: We're going to ignore the case where each player index could be

Implements GhostObject.

Definition at line 327 of file W3DGhostObject.cpp.

◆ updateParentObject()

void W3DGhostObject::updateParentObject ( Object * object,
PartitionData * mod )
virtual

Implements GhostObject.

Definition at line 537 of file W3DGhostObject.cpp.

◆ xfer()

void W3DGhostObject::xfer ( Xfer * xfer)
protectedvirtual

Xfer method Version Info: 1: Initial version

Reimplemented from GhostObject.

Definition at line 612 of file W3DGhostObject.cpp.

Member Data Documentation

◆ m_drawableInfo

DrawableInfo W3DGhostObject::m_drawableInfo
protected

Definition at line 66 of file W3DGhostObject.h.

◆ m_nextSystem

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

Definition at line 69 of file W3DGhostObject.h.

◆ m_parentSnapshots

W3DRenderObjectSnapshot* W3DGhostObject::m_parentSnapshots[MAX_PLAYER_COUNT]
protected

Definition at line 65 of file W3DGhostObject.h.

◆ m_prevSystem

W3DGhostObject* W3DGhostObject::m_prevSystem
protected

Definition at line 70 of file W3DGhostObject.h.


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