#include <ResourceGatheringManager.h>
Inherits MemoryPoolObject, and Snapshot.
Public Member Functions | |
| ResourceGatheringManager () | |
| Object * | findBestSupplyWarehouse (Object *queryObject) |
| What Warehouse should this truck go to? | |
| Object * | findBestSupplyCenter (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 MemoryPool * | getObjectMemoryPool ()=0 |
Definition at line 42 of file ResourceGatheringManager.h.
| ResourceGatheringManager::ResourceGatheringManager | ( | ) |
Definition at line 44 of file ResourceGatheringManager.cpp.
| void ResourceGatheringManager::addSupplyCenter | ( | Object * | newCenter | ) |
I captured or built a Supply Center, so record it.
Definition at line 54 of file ResourceGatheringManager.cpp.
| void ResourceGatheringManager::addSupplyWarehouse | ( | Object * | newWarehouse | ) |
Warehouse created, or this is starrt of game recording.
Definition at line 81 of file ResourceGatheringManager.cpp.
|
protectedvirtual |
What Center should this truck return to?
Definition at line 200 of file ResourceGatheringManager.cpp.
What Warehouse should this truck go to?
Definition at line 139 of file ResourceGatheringManager.cpp.
|
protectedvirtual |
| void ResourceGatheringManager::removeSupplyCenter | ( | Object * | oldCenter | ) |
Lost a supply center.
Definition at line 62 of file ResourceGatheringManager.cpp.
| void ResourceGatheringManager::removeSupplyWarehouse | ( | Object * | oldWarehouse | ) |
Warehouse that doesn't replinish has run out of Supply.
Definition at line 89 of file ResourceGatheringManager.cpp.
|
protectedvirtual |
Xfer method Version Info: 1: Initial version
Implements Snapshot.
Definition at line 268 of file ResourceGatheringManager.cpp.