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

#include <ResourceGatheringManager.h>

Inherits MemoryPoolObject, and Snapshot.

Public Member Functions

 ResourceGatheringManager ()
 
ObjectfindBestSupplyWarehouse (Object *queryObject)
 What Warehouse should this truck go to?
 
ObjectfindBestSupplyCenter (Object *queryObject)
 What Center should this truck return to?
 
void addSupplyCenter (Object *newCenter)
 I captured or built a Supply Center, so record it.
 
void removeSupplyCenter (Object *oldCenter)
 Lost a supply center.
 
void addSupplyWarehouse (Object *newWarehouse)
 Warehouse created, or this is starrt of game recording.
 
void removeSupplyWarehouse (Object *oldWarehouse)
 Warehouse that doesn't replinish has run out of Supply.
 
- Public Member Functions inherited from MemoryPoolObject
void deleteInstance ()
 
- 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 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 42 of file ResourceGatheringManager.h.

Constructor & Destructor Documentation

◆ ResourceGatheringManager()

ResourceGatheringManager::ResourceGatheringManager ( )

Definition at line 44 of file ResourceGatheringManager.cpp.

Member Function Documentation

◆ addSupplyCenter()

void ResourceGatheringManager::addSupplyCenter ( Object * newCenter)

I captured or built a Supply Center, so record it.

Definition at line 54 of file ResourceGatheringManager.cpp.

◆ addSupplyWarehouse()

void ResourceGatheringManager::addSupplyWarehouse ( Object * newWarehouse)

Warehouse created, or this is starrt of game recording.

Definition at line 81 of file ResourceGatheringManager.cpp.

◆ crc()

void ResourceGatheringManager::crc ( Xfer * xfer)
protectedvirtual

CRC

Implements Snapshot.

Definition at line 258 of file ResourceGatheringManager.cpp.

◆ findBestSupplyCenter()

Object * ResourceGatheringManager::findBestSupplyCenter ( Object * queryObject)

What Center should this truck return to?

Definition at line 200 of file ResourceGatheringManager.cpp.

◆ findBestSupplyWarehouse()

Object * ResourceGatheringManager::findBestSupplyWarehouse ( Object * queryObject)

What Warehouse should this truck go to?

Definition at line 139 of file ResourceGatheringManager.cpp.

◆ loadPostProcess()

void ResourceGatheringManager::loadPostProcess ( void )
protectedvirtual

Load post process

Implements Snapshot.

Definition at line 287 of file ResourceGatheringManager.cpp.

◆ removeSupplyCenter()

void ResourceGatheringManager::removeSupplyCenter ( Object * oldCenter)

Lost a supply center.

Definition at line 62 of file ResourceGatheringManager.cpp.

◆ removeSupplyWarehouse()

void ResourceGatheringManager::removeSupplyWarehouse ( Object * oldWarehouse)

Warehouse that doesn't replinish has run out of Supply.

Definition at line 89 of file ResourceGatheringManager.cpp.

◆ xfer()

void ResourceGatheringManager::xfer ( Xfer * xfer)
protectedvirtual

Xfer method Version Info: 1: Initial version

Implements Snapshot.

Definition at line 268 of file ResourceGatheringManager.cpp.


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