#include <SpecialPowerModule.h>
Inherits BehaviorModule, and SpecialPowerModuleInterface.
Inherited by BaikonurLaunchPower, CashBountyPower, CashHackSpecialPower, CleanupAreaPower, DefectorSpecialPower, FireWeaponPower, OCLSpecialPower, SpecialAbility, and SpyVisionSpecialPower.
Static Public Member Functions | |
| 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 | |
| Bool | initiateIntentToDoSpecialPower (const Object *targetObj, const Coord3D *targetPos, const Waypoint *way, UnsignedInt commandOptions) |
| void | triggerSpecialPower (const Coord3D *location) |
| void | createViewObject (const Coord3D *location) |
| void | resolveSpecialPower (void) |
| void | aboutToDoSpecialPower (const Coord3D *location) |
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 | |
| UnsignedInt | m_availableOnFrame |
| on this frame, this special power is available | |
| Int | m_pausedCount |
| Reference count of sources pausing me. | |
| UnsignedInt | m_pausedOnFrame |
| Real | m_pausedPercent |
Definition at line 97 of file SpecialPowerModule.h.
| SpecialPowerModule::SpecialPowerModule | ( | Thing * | thing, |
| const ModuleData * | moduleData ) |
Definition at line 100 of file SpecialPowerModule.cpp.
|
protected |
Definition at line 534 of file SpecialPowerModule.cpp.
|
protected |
Definition at line 486 of file SpecialPowerModule.cpp.
|
virtual |
Implements SpecialPowerModuleInterface.
Reimplemented in BaikonurLaunchPower, CashBountyPower, FireWeaponPower, OCLSpecialPower, SpecialAbility, and SpyVisionSpecialPower.
Definition at line 664 of file SpecialPowerModule.cpp.
|
virtual |
Implements SpecialPowerModuleInterface.
Reimplemented in BaikonurLaunchPower, CashHackSpecialPower, CleanupAreaPower, DefectorSpecialPower, FireWeaponPower, OCLSpecialPower, and SpecialAbility.
Definition at line 708 of file SpecialPowerModule.cpp.
|
virtual |
Implements SpecialPowerModuleInterface.
Reimplemented in CashHackSpecialPower, DefectorSpecialPower, FireWeaponPower, OCLSpecialPower, and SpecialAbility.
Definition at line 686 of file SpecialPowerModule.cpp.
|
virtual |
Implements SpecialPowerModuleInterface.
Definition at line 730 of file SpecialPowerModule.cpp.
|
virtual |
Implements SpecialPowerModuleInterface.
Definition at line 149 of file SpecialPowerModule.cpp.
|
inlinestatic |
Definition at line 108 of file SpecialPowerModule.h.
|
virtual |
get the percent ready (1.0 = ready now, 0.5 = half charged up etc.)
Get the percentage ready a special power is to use 1.0f = ready now 0.5f = 50% ready 0.2f = 20% ready etc ...
Implements SpecialPowerModuleInterface.
Definition at line 321 of file SpecialPowerModule.cpp.
|
virtual |
Implements SpecialPowerModuleInterface.
Definition at line 257 of file SpecialPowerModule.cpp.
|
inline |
Definition at line 133 of file SpecialPowerModule.h.
|
virtual |
get the frame at which we are ready
Implements SpecialPowerModuleInterface.
Definition at line 780 of file SpecialPowerModule.cpp.
|
inlinevirtual |
Implements SpecialPowerModuleInterface.
Reimplemented in OCLSpecialPower.
Definition at line 166 of file SpecialPowerModule.h.
|
virtual |
Implements SpecialPowerModuleInterface.
Definition at line 241 of file SpecialPowerModule.cpp.
|
inlinevirtual |
Reimplemented from BehaviorModule.
Definition at line 111 of file SpecialPowerModule.h.
|
virtual |
Implements SpecialPowerModuleInterface.
Definition at line 249 of file SpecialPowerModule.cpp.
|
protected |
Definition at line 430 of file SpecialPowerModule.cpp.
|
virtual |
is this module for the specified special power
Is this module designed for the power identier template passed in?
Implements SpecialPowerModuleInterface.
Definition at line 266 of file SpecialPowerModule.cpp.
|
virtual |
is this special power available now
Is this special power ready to use
Implements SpecialPowerModuleInterface.
Definition at line 289 of file SpecialPowerModule.cpp.
|
virtual |
Implements SpecialPowerModuleInterface.
Definition at line 378 of file SpecialPowerModule.cpp.
|
virtual |
Now, there are special powers that require some preliminary processing before the actual special power triggers. When the ini setting "UpdateModuleStartsAttack" is true, then the update module will call the doSpecialPower a second time. This function then resets the power recharge, and tells the scriptengine that the attack has started.
A good example of something that uses this is the Black Lotus - capture building hack attack. When the user initiates the attack, the doSpecialPower is called, which triggers the update module. The update module then orders the unit to move within range, and it isn't until the hacker start the physical attack, that the timer is reset and the attack technically begins.
Implements SpecialPowerModuleInterface.
Definition at line 526 of file SpecialPowerModule.cpp.
|
virtual |
Implements SpecialPowerModuleInterface.
Definition at line 202 of file SpecialPowerModule.cpp.
|
virtual |
Implements SpecialPowerModuleInterface.
Definition at line 752 of file SpecialPowerModule.cpp.
|
protected |
Definition at line 180 of file SpecialPowerModule.cpp.
|
virtual |
Implements SpecialPowerModuleInterface.
Definition at line 169 of file SpecialPowerModule.cpp.
|
virtual |
start the recharge process for this special power. public because some powers call it repeatedly.
A special power has been used ... start the recharge process by computing the frame we will become fully available on in the future again
Implements SpecialPowerModuleInterface.
Definition at line 389 of file SpecialPowerModule.cpp.
| void SpecialPowerModule::syncReadyFrameToStatusQuo | ( | void | ) |
|
protected |
Definition at line 474 of file SpecialPowerModule.cpp.
|
protected |
on this frame, this special power is available
Definition at line 176 of file SpecialPowerModule.h.
|
protected |
Reference count of sources pausing me.
Definition at line 177 of file SpecialPowerModule.h.
|
protected |
Definition at line 178 of file SpecialPowerModule.h.
|
protected |
Definition at line 179 of file SpecialPowerModule.h.