#include <AIPlayer.h>
Inherits MemoryPoolObject, and Snapshot.
Public Member Functions | |
| WorkOrder () | |
| Bool | isWaitingToBuild (void) |
| return true if nothing is yet building this unit | |
| void | validateFactory (Player *thisPlayer) |
| verify factoryID still refers to an active object | |
Public Member Functions inherited from MemoryPoolObject | |
| void | deleteInstance () |
Public Member Functions inherited from Snapshot | |
| Snapshot (void) | |
| ~Snapshot (void) | |
Public Attributes | |
| const ThingTemplate * | m_thing |
| thing to build | |
| ObjectID | m_factoryID |
| ID of object that is building this, or zero if no-one is. | |
| WorkOrder * | m_next |
| Int | m_numCompleted |
| Number built. | |
| Int | m_numRequired |
| Number needed. | |
| Bool | m_required |
| True if part of minimum requirement. | |
| Bool | m_isResourceGatherer |
| True if resource gatherer. | |
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 |
When a team is selected for training, a list of these "work orders" are created, one for each member of the team. This pairs team members with production buildings to keep track of who is building what, and allows us to track if a building was destroyed while in the process of training a unit.
Definition at line 48 of file AIPlayer.h.
|
inline |
Definition at line 56 of file AIPlayer.h.
|
protectedvirtual |
|
inline |
return true if nothing is yet building this unit
Definition at line 80 of file AIPlayer.h.
|
protectedvirtual |
| void WorkOrder::validateFactory | ( | Player * | thisPlayer | ) |
verify factoryID still refers to an active object
Verify factoryID still refers to an active object
Definition at line 3712 of file AIPlayer.cpp.
|
protectedvirtual |
Xfer method Version Info: 1: Initial version
Implements Snapshot.
Definition at line 3741 of file AIPlayer.cpp.
| ObjectID WorkOrder::m_factoryID |
ID of object that is building this, or zero if no-one is.
Definition at line 64 of file AIPlayer.h.
| Bool WorkOrder::m_isResourceGatherer |
True if resource gatherer.
Definition at line 69 of file AIPlayer.h.
| WorkOrder* WorkOrder::m_next |
Definition at line 65 of file AIPlayer.h.
| Int WorkOrder::m_numCompleted |
Number built.
Definition at line 66 of file AIPlayer.h.
| Int WorkOrder::m_numRequired |
Number needed.
Definition at line 67 of file AIPlayer.h.
| Bool WorkOrder::m_required |
True if part of minimum requirement.
Definition at line 68 of file AIPlayer.h.
| const ThingTemplate* WorkOrder::m_thing |
thing to build
Definition at line 63 of file AIPlayer.h.