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

#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 ThingTemplatem_thing
 thing to build
 
ObjectID m_factoryID
 ID of object that is building this, or zero if no-one is.
 
WorkOrderm_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 MemoryPoolgetObjectMemoryPool ()=0
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ WorkOrder()

WorkOrder::WorkOrder ( )
inline

Definition at line 56 of file AIPlayer.h.

Member Function Documentation

◆ crc()

void WorkOrder::crc ( Xfer * xfer)
protectedvirtual

CRC

Implements Snapshot.

Definition at line 3731 of file AIPlayer.cpp.

◆ isWaitingToBuild()

Bool WorkOrder::isWaitingToBuild ( void )
inline

return true if nothing is yet building this unit

Definition at line 80 of file AIPlayer.h.

◆ loadPostProcess()

void WorkOrder::loadPostProcess ( void )
protectedvirtual

Load post process

Implements Snapshot.

Definition at line 3775 of file AIPlayer.cpp.

◆ validateFactory()

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.

◆ xfer()

void WorkOrder::xfer ( Xfer * xfer)
protectedvirtual

Xfer method Version Info: 1: Initial version

Implements Snapshot.

Definition at line 3741 of file AIPlayer.cpp.

Member Data Documentation

◆ m_factoryID

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.

◆ m_isResourceGatherer

Bool WorkOrder::m_isResourceGatherer

True if resource gatherer.

Definition at line 69 of file AIPlayer.h.

◆ m_next

WorkOrder* WorkOrder::m_next

Definition at line 65 of file AIPlayer.h.

◆ m_numCompleted

Int WorkOrder::m_numCompleted

Number built.

Definition at line 66 of file AIPlayer.h.

◆ m_numRequired

Int WorkOrder::m_numRequired

Number needed.

Definition at line 67 of file AIPlayer.h.

◆ m_required

Bool WorkOrder::m_required

True if part of minimum requirement.

Definition at line 68 of file AIPlayer.h.

◆ m_thing

const ThingTemplate* WorkOrder::m_thing

thing to build

Definition at line 63 of file AIPlayer.h.


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