#include <ProductionUpdate.h>
Inherits UpdateModule, ProductionUpdateInterface, and DieModuleInterface.
Classes | |
| struct | DoorInfo |
Static Public Member Functions | |
| static Int | getInterfaceMask () |
| static ProductionUpdateInterface * | getProductionUpdateInterfaceFromObject (Object *obj) |
Static Public Member Functions inherited from UpdateModule | |
| static Int | getInterfaceMask () |
Static Public Member Functions inherited from BehaviorModule | |
| static Int | getInterfaceMask () |
| static ModuleType | getModuleType () |
Static Public Member Functions inherited from Module | |
| static ModuleData * | friend_newModuleData (INI *ini) |
Protected Member Functions | |
| void | addToProductionQueue (ProductionEntry *production) |
| add to END of production queue list | |
| void | removeFromProductionQueue (ProductionEntry *production) |
| remove production from the queue list | |
| void | updateDoors () |
| update the door behavior | |
Protected Member Functions inherited from UpdateModule | |
| void | setWakeFrame (Object *obj, UpdateSleepTime wakeDelay) |
| UpdateSleepTime | getWakeFrame () const |
| virtual SleepyUpdatePhase | getUpdatePhase () const |
| UpdateSleepTime | frameToSleepTime (UnsignedInt frame1, UnsignedInt frame2=FOREVER, UnsignedInt frame3=FOREVER, UnsignedInt frame4=FOREVER) |
Protected Member Functions inherited from BehaviorModule | |
| virtual void | crc (Xfer *xfer) |
| virtual void | xfer (Xfer *xfer) |
| virtual void | loadPostProcess (void) |
Protected Member Functions inherited from ObjectModule | |
| Object * | getObject () |
| const Object * | getObject () const |
Protected Member Functions inherited from Module | |
| const ModuleData * | getModuleData () const |
Protected Member Functions inherited from MemoryPoolObject | |
| virtual | ~MemoryPoolObject () |
| void * | operator new (size_t s) |
| void | operator delete (void *p) |
| virtual MemoryPool * | getObjectMemoryPool ()=0 |
Protected Attributes | |
| const CommandButton * | m_specialPowerConstructionCommandButton |
| In a mode to construct a specific building via a special power. (NO NEED TO SAVE DATA ON THIS FIELD) | |
| ProductionEntry * | m_productionQueue |
| queue of things we want to build | |
| ProductionEntry * | m_productionQueueTail |
| tail pointer for m_productionQueue | |
| ProductionID | m_uniqueID |
| unique ID counter for producing units | |
| UnsignedInt | m_productionCount |
| UnsignedInt | m_constructionCompleteFrame |
| frame construction was complete on | |
| DoorInfo | m_doors [DOOR_COUNT_MAX] |
| ModelConditionFlags | m_clearFlags |
| flags to clear from model | |
| ModelConditionFlags | m_setFlags |
| flags to set in model | |
| Bool | m_flagsDirty |
| clearFlags/setFlags needs to be set into the model | |
Production modules do actual unit construction
Definition at line 186 of file ProductionUpdate.h.
| ProductionUpdate::ProductionUpdate | ( | Thing * | thing, |
| const ModuleData * | moduleData ) |
Definition at line 186 of file ProductionUpdate.cpp.
|
protected |
add to END of production queue list
Add the production entry to the END of the production queue list
Definition at line 992 of file ProductionUpdate.cpp.
|
virtual |
cancel all production of type unitType
Cancel all production of type unitType
Implements ProductionUpdateInterface.
Definition at line 501 of file ProductionUpdate.cpp.
|
virtual |
cancel and refund anything in the production queue
Cancel each of the production items in the queue. By going through the actual cancel methods, the cost of each of those items will be refunded to the player
Implements ProductionUpdateInterface.
Definition at line 1143 of file ProductionUpdate.cpp.
|
virtual |
cancel construction of unit with matching production ID
Cancel the construction of the unit with the matching production ID
Implements ProductionUpdateInterface.
Definition at line 467 of file ProductionUpdate.cpp.
|
virtual |
cancel upgrade "research"
Cancel an upgrade being produced here
Implements ProductionUpdateInterface.
Definition at line 332 of file ProductionUpdate.cpp.
|
virtual |
Implements ProductionUpdateInterface.
Definition at line 238 of file ProductionUpdate.cpp.
|
virtual |
Implements ProductionUpdateInterface.
Definition at line 228 of file ProductionUpdate.cpp.
|
virtual |
count number of units with matching unit type in the production queue
count number of units with matching unit type in the production queue
Implements ProductionUpdateInterface.
Definition at line 1117 of file ProductionUpdate.cpp.
|
inlinevirtual |
Implements ProductionUpdateInterface.
Definition at line 228 of file ProductionUpdate.h.
|
inlinevirtual |
Reimplemented from BehaviorModule.
Definition at line 203 of file ProductionUpdate.h.
|
inlinevirtual |
Implements UpdateModuleInterface.
Definition at line 200 of file ProductionUpdate.h.
|
inlinestatic |
Definition at line 197 of file ProductionUpdate.h.
|
inlinevirtual |
return # of things in the production queue
Implements ProductionUpdateInterface.
Definition at line 225 of file ProductionUpdate.h.
|
inlinevirtual |
Reimplemented from BehaviorModule.
Definition at line 202 of file ProductionUpdate.h.
|
static |
Helper method to retrieve a production update interface from an object if one is present
Definition at line 1187 of file ProductionUpdate.cpp.
|
inlinevirtual |
Implements ProductionUpdateInterface.
Definition at line 237 of file ProductionUpdate.h.
|
virtual |
is the upgrade in our production queue already
Is the upgrade already in the production queue. Note that you can only have one production entry for any given upgrade in the queue
Implements ProductionUpdateInterface.
Definition at line 1101 of file ProductionUpdate.cpp.
|
inlinevirtual |
Implements ProductionUpdateInterface.
Definition at line 229 of file ProductionUpdate.h.
|
virtual |
Implements DieModuleInterface.
Definition at line 1133 of file ProductionUpdate.cpp.
|
virtual |
queue unit to be produced
Queue the prodcution of a unit. Returns TRUE if unit was added to queue, FALSE if it was not
Implements ProductionUpdateInterface.
Definition at line 387 of file ProductionUpdate.cpp.
|
virtual |
queue upgrade "research"
Queue an upgrade to be produced
Implements ProductionUpdateInterface.
Definition at line 263 of file ProductionUpdate.cpp.
|
protected |
remove production from the queue list
Remove the production entry from the production queue list
Definition at line 1035 of file ProductionUpdate.cpp.
|
inlinevirtual |
this method is used to request a unique ID to assign to the production of a single unit. It is unique to all units that can be created from this source object, but is not unique amoung multiple source objects
Implements ProductionUpdateInterface.
Definition at line 212 of file ProductionUpdate.h.
|
virtual |
Implements ProductionUpdateInterface.
Definition at line 1169 of file ProductionUpdate.cpp.
|
inlinevirtual |
Implements ProductionUpdateInterface.
Definition at line 238 of file ProductionUpdate.h.
|
virtual |
the update
Implements UpdateModule.
Definition at line 611 of file ProductionUpdate.cpp.
|
protected |
update the door behavior
Update the door behavior
Definition at line 537 of file ProductionUpdate.cpp.
|
protected |
flags to clear from model
Definition at line 266 of file ProductionUpdate.h.
|
protected |
frame construction was complete on
Definition at line 264 of file ProductionUpdate.h.
|
protected |
Definition at line 265 of file ProductionUpdate.h.
|
protected |
clearFlags/setFlags needs to be set into the model
Definition at line 268 of file ProductionUpdate.h.
|
protected |
Definition at line 263 of file ProductionUpdate.h.
|
protected |
queue of things we want to build
Definition at line 260 of file ProductionUpdate.h.
|
protected |
tail pointer for m_productionQueue
Definition at line 261 of file ProductionUpdate.h.
|
protected |
flags to set in model
Definition at line 267 of file ProductionUpdate.h.
|
protected |
In a mode to construct a specific building via a special power. (NO NEED TO SAVE DATA ON THIS FIELD)
Definition at line 259 of file ProductionUpdate.h.
|
protected |
unique ID counter for producing units
Definition at line 262 of file ProductionUpdate.h.