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

#include <TunnelTracker.h>

Inherits MemoryPoolObject, and Snapshot.

Public Member Functions

 TunnelTracker ()
 
void iterateContained (ContainIterateFunc func, void *userData, Bool reverse)
 
UnsignedInt getContainCount () const
 
Int getContainMax () const
 
const ContainedItemsListgetContainedItemsList () const
 
Bool isValidContainerFor (const Object *obj, Bool checkCapacity) const
 
void addToContainList (Object *obj)
 add 'obj' to contain list
 
void removeFromContain (Object *obj, Bool exposeStealthUnits=FALSE)
 remove 'obj' from contain list
 
Bool isInContainer (Object *obj)
 Is this thing inside?
 
void onTunnelCreated (const Object *newTunnel)
 A tunnel was made.
 
void onTunnelDestroyed (const Object *deadTunnel)
 A tunnel was destroyed.
 
void healObjects (Real frames)
 heal all objects within the tunnel
 
UnsignedInt friend_getTunnelCount () const
 TunnelContains are allowed to ask if they are the last one ahead of deletion time.
 
const std::list< ObjectID > * getContainerList () const
 
ObjectgetCurNemesis (void)
 
void updateNemesis (const Object *target)
 
- Public Member Functions inherited from MemoryPoolObject
void deleteInstance ()
 
- Public Member Functions inherited from Snapshot
 Snapshot (void)
 
 ~Snapshot (void)
 

Static Public Member Functions

static void destroyObject (Object *obj, void *userData)
 Callback for Iterate Contained system.
 
static void healObject (Object *obj, void *frames)
 Callback for Iterate Contained system.
 

Protected Member Functions

virtual void crc (Xfer *xfer)
 
virtual void xfer (Xfer *xfer)
 
virtual void loadPostProcess (void)
 
- Protected Member Functions inherited from MemoryPoolObject
virtual ~MemoryPoolObject ()
 
void * operator new (size_t s)
 
void operator delete (void *p)
 
virtual MemoryPoolgetObjectMemoryPool ()=0
 

Detailed Description

Definition at line 40 of file TunnelTracker.h.

Constructor & Destructor Documentation

◆ TunnelTracker()

TunnelTracker::TunnelTracker ( )

Definition at line 51 of file TunnelTracker.cpp.

Member Function Documentation

◆ addToContainList()

void TunnelTracker::addToContainList ( Object * obj)

add 'obj' to contain list

Definition at line 177 of file TunnelTracker.cpp.

◆ crc()

void TunnelTracker::crc ( Xfer * xfer)
protectedvirtual

CRC

Implements Snapshot.

Definition at line 300 of file TunnelTracker.cpp.

◆ destroyObject()

void TunnelTracker::destroyObject ( Object * obj,
void * userData )
static

Callback for Iterate Contained system.

Definition at line 239 of file TunnelTracker.cpp.

◆ friend_getTunnelCount()

UnsignedInt TunnelTracker::friend_getTunnelCount ( ) const
inline

TunnelContains are allowed to ask if they are the last one ahead of deletion time.

Definition at line 66 of file TunnelTracker.h.

◆ getContainCount()

UnsignedInt TunnelTracker::getContainCount ( ) const
inline

Definition at line 49 of file TunnelTracker.h.

◆ getContainedItemsList()

const ContainedItemsList * TunnelTracker::getContainedItemsList ( ) const
inline

Definition at line 51 of file TunnelTracker.h.

◆ getContainerList()

const std::list< ObjectID > * TunnelTracker::getContainerList ( ) const
inline

Definition at line 68 of file TunnelTracker.h.

◆ getContainMax()

Int TunnelTracker::getContainMax ( ) const

Definition at line 105 of file TunnelTracker.cpp.

◆ getCurNemesis()

Object * TunnelTracker::getCurNemesis ( void )

Definition at line 127 of file TunnelTracker.cpp.

◆ healObject()

void TunnelTracker::healObject ( Object * obj,
void * frames )
static

Callback for Iterate Contained system.

Definition at line 256 of file TunnelTracker.cpp.

◆ healObjects()

void TunnelTracker::healObjects ( Real frames)

heal all objects within the tunnel

Definition at line 249 of file TunnelTracker.cpp.

◆ isInContainer()

Bool TunnelTracker::isInContainer ( Object * obj)

Is this thing inside?

Definition at line 198 of file TunnelTracker.cpp.

◆ isValidContainerFor()

Bool TunnelTracker::isValidContainerFor ( const Object * obj,
Bool checkCapacity ) const

Definition at line 156 of file TunnelTracker.cpp.

◆ iterateContained()

void TunnelTracker::iterateContained ( ContainIterateFunc func,
void * userData,
Bool reverse )

Definition at line 66 of file TunnelTracker.cpp.

◆ loadPostProcess()

void TunnelTracker::loadPostProcess ( void )
protectedvirtual

Load post process

Implements Snapshot.

Definition at line 360 of file TunnelTracker.cpp.

◆ onTunnelCreated()

void TunnelTracker::onTunnelCreated ( const Object * newTunnel)

A tunnel was made.

Definition at line 204 of file TunnelTracker.cpp.

◆ onTunnelDestroyed()

void TunnelTracker::onTunnelDestroyed ( const Object * deadTunnel)

A tunnel was destroyed.

Definition at line 211 of file TunnelTracker.cpp.

◆ removeFromContain()

void TunnelTracker::removeFromContain ( Object * obj,
Bool exposeStealthUnits = FALSE )

remove 'obj' from contain list

Definition at line 184 of file TunnelTracker.cpp.

◆ updateNemesis()

void TunnelTracker::updateNemesis ( const Object * target)

Definition at line 111 of file TunnelTracker.cpp.

◆ xfer()

void TunnelTracker::xfer ( Xfer * xfer)
protectedvirtual

Xfer method Version Info: 1: Initial version

Implements Snapshot.

Definition at line 310 of file TunnelTracker.cpp.


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