#include <ProductionUpdate.h>
Inherits MemoryPoolObject.
Public Member Functions | |
| ProductionEntry (void) | |
| const ThingTemplate * | getProductionObject (void) const |
| query what kind of thing is being produced by this entry | |
| const UpgradeTemplate * | getProductionUpgrade (void) const |
| query what kind of upgrade is being produced by this entry | |
| ProductionType | getProductionType (void) const |
| query the production type | |
| Real | getPercentComplete (void) const |
| how much progress is done on this entry | |
| ProductionID | getProductionID (void) const |
| get the unique (to the producer object) production ID | |
| Int | getProductionQuantity () const |
| Int | getProductionQuantityRemaining () const |
| void | oneProductionSuccessful () |
| ExitDoorType | getExitDoor () const |
| void | setExitDoor (ExitDoorType exitDoor) |
Public Member Functions inherited from MemoryPoolObject | |
| void | deleteInstance () |
Protected Attributes | ||
| ProductionType | m_type | |
| production type | ||
| union { | ||
| const ThingTemplate * m_objectToProduce | ||
| what we're going to produce More... | ||
| const UpgradeTemplate * m_upgradeToResearch | ||
| what upgrade we're researching More... | ||
| }; | ||
| ProductionID | m_productionID | |
| our very own production ID! | ||
| Real | m_percentComplete | |
| percent our construction is complete | ||
| Int | m_framesUnderConstruction | |
| counter for how many frames we've been under construction (incremented once per update) | ||
| Int | m_productionQuantityTotal | |
| it is now possible to construct multiple units simultaneously. | ||
| Int | m_productionQuantityProduced | |
| And we need to allow pausing within an entry, so we keep track of number of sub-successes. | ||
| ExitDoorType | m_exitDoor | |
| ProductionEntry * | m_next | |
| next in list | ||
| ProductionEntry * | m_prev | |
| prev in list | ||
Friends | |
| class | ProductionUpdate |
Additional Inherited Members | |
Protected Member Functions inherited from MemoryPoolObject | |
| virtual | ~MemoryPoolObject () |
| void * | operator new (size_t s) |
| void | operator delete (void *p) |
| virtual MemoryPool * | getObjectMemoryPool ()=0 |
A ProductionEntry is a single entry representing something that we are supposed to produce
Definition at line 62 of file ProductionUpdate.h.
| ProductionEntry::ProductionEntry | ( | void | ) |
Definition at line 155 of file ProductionUpdate.cpp.
|
inline |
Definition at line 94 of file ProductionUpdate.h.
|
inline |
how much progress is done on this entry
Definition at line 84 of file ProductionUpdate.h.
|
inline |
get the unique (to the producer object) production ID
Definition at line 87 of file ProductionUpdate.h.
|
inline |
query what kind of thing is being produced by this entry
Definition at line 75 of file ProductionUpdate.h.
|
inline |
Definition at line 89 of file ProductionUpdate.h.
|
inline |
Definition at line 90 of file ProductionUpdate.h.
|
inline |
query the production type
Definition at line 81 of file ProductionUpdate.h.
|
inline |
query what kind of upgrade is being produced by this entry
Definition at line 78 of file ProductionUpdate.h.
|
inline |
Definition at line 92 of file ProductionUpdate.h.
|
inline |
Definition at line 95 of file ProductionUpdate.h.
|
friend |
Definition at line 65 of file ProductionUpdate.h.
| union { ... } ProductionEntry |
|
protected |
Definition at line 110 of file ProductionUpdate.h.
|
protected |
counter for how many frames we've been under construction (incremented once per update)
Definition at line 107 of file ProductionUpdate.h.
|
protected |
next in list
Definition at line 112 of file ProductionUpdate.h.
| const ThingTemplate* ProductionEntry::m_objectToProduce |
what we're going to produce
Definition at line 102 of file ProductionUpdate.h.
|
protected |
percent our construction is complete
Definition at line 106 of file ProductionUpdate.h.
|
protected |
prev in list
Definition at line 113 of file ProductionUpdate.h.
|
protected |
our very own production ID!
Definition at line 105 of file ProductionUpdate.h.
|
protected |
And we need to allow pausing within an entry, so we keep track of number of sub-successes.
Definition at line 109 of file ProductionUpdate.h.
|
protected |
it is now possible to construct multiple units simultaneously.
Definition at line 108 of file ProductionUpdate.h.
|
protected |
production type
Definition at line 99 of file ProductionUpdate.h.
| const UpgradeTemplate* ProductionEntry::m_upgradeToResearch |
what upgrade we're researching
Definition at line 103 of file ProductionUpdate.h.