#include <ActiveBody.h>
Inherits BodyModule.
Inherited by HighlanderBody, ImmortalBody, StructureBody, and UndeadBody.
Protected Member Functions | |
| void | validateArmorAndDamageFX () const |
| void | doDamageFX (const DamageInfo *damageInfo) |
| void | createParticleSystems (const AsciiString &boneBaseName, const ParticleSystemTemplate *systemTemplate, Int maxSystems) |
| void | deleteAllParticleSystems (void) |
| void | setCorrectDamageState () |
| Bool | shouldRetaliate (Object *obj) |
| Bool | shouldRetaliateAgainstAggressor (Object *obj, Object *damager) |
| virtual void | internalAddSubdualDamage (Real delta) |
| change health | |
Protected Member Functions inherited from BodyModule | |
| 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 |
Additional Inherited Members | |
Static Public Member Functions inherited from BodyModule | |
| 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 Attributes inherited from BodyModule | |
| Real | m_damageScalar |
Definition at line 67 of file ActiveBody.h.
| ActiveBody::ActiveBody | ( | Thing * | thing, |
| const ModuleData * | moduleData ) |
Definition at line 162 of file ActiveBody.cpp.
|
virtual |
try to damage this object
Implements BodyModule.
Reimplemented in HighlanderBody, HiveStructureBody, and UndeadBody.
Definition at line 345 of file ActiveBody.cpp.
|
virtual |
try to heal this object
Implements BodyModule.
Definition at line 796 of file ActiveBody.cpp.
|
virtual |
Definition at line 1266 of file ActiveBody.cpp.
|
inlinevirtual |
Implements BodyModule.
Definition at line 101 of file ActiveBody.h.
|
inlinevirtual |
Reimplemented from BodyModule.
Definition at line 96 of file ActiveBody.h.
|
protected |
Create up to maxSystems particle systems of type particleSystemName and attach to bones specified by the bone base name. If there are more bones than maxSystems then the bones will be randomly selected
Definition at line 976 of file ActiveBody.cpp.
|
protected |
Delete all the body particle systems
Definition at line 1082 of file ActiveBody.cpp.
|
protected |
Definition at line 321 of file ActiveBody.cpp.
|
virtual |
Estimate the (unclipped) damage that would be done to this object by the given damage (taking bonuses, armor, etc into account), but DO NOT alter the body in any way. (This is used by the AI system to choose weapons.)
Implements BodyModule.
Definition at line 288 of file ActiveBody.cpp.
|
virtual |
Given the current damage state of the object, evaluate the visual model conditions that have a visual impact on the object
Reimplemented from BodyModule.
Definition at line 954 of file ActiveBody.cpp.
|
inlinevirtual |
Reimplemented from BodyModule.
Definition at line 108 of file ActiveBody.h.
|
inlinevirtual |
Reimplemented from BodyModule.
Definition at line 95 of file ActiveBody.h.
|
inlinevirtual |
Reimplemented from BodyModule.
Definition at line 90 of file ActiveBody.h.
|
virtual |
Implements BodyModule.
Definition at line 1330 of file ActiveBody.cpp.
|
inlinevirtual |
Reimplemented from BodyModule.
Definition at line 107 of file ActiveBody.h.
|
virtual |
|
virtual |
Reimplemented from BodyModule.
Definition at line 1365 of file ActiveBody.cpp.
|
inlinevirtual |
return info on last damage dealt to this object
Reimplemented from BodyModule.
Definition at line 92 of file ActiveBody.h.
|
inlinevirtual |
return frame of last damage dealt
Reimplemented from BodyModule.
Definition at line 93 of file ActiveBody.h.
|
inlinevirtual |
return frame of last damage dealt
Reimplemented from BodyModule.
Definition at line 94 of file ActiveBody.h.
|
virtual |
|
inlinevirtual |
|
virtual |
Reimplemented from BodyModule.
Definition at line 1351 of file ActiveBody.cpp.
|
virtual |
Reimplemented from BodyModule.
Definition at line 1344 of file ActiveBody.cpp.
|
virtual |
Reimplemented from BodyModule.
Definition at line 1358 of file ActiveBody.cpp.
|
protectedvirtual |
change health
Definition at line 1256 of file ActiveBody.cpp.
|
virtual |
change health
Simple changing of the health value, it does NOT track any transition states for the event of "damage" or the event of "death". If you with to kill an object and give these modules a chance to react to that event use the proper damage method calls. No game logic should go in here. This is the low level math and flag maintenance. Game stuff goes in attemptDamage and attemptHealing.
Implements BodyModule.
Reimplemented in ImmortalBody.
Definition at line 1212 of file ActiveBody.cpp.
|
inlinevirtual |
Reimplemented from BodyModule.
Definition at line 119 of file ActiveBody.h.
|
virtual |
Definition at line 1316 of file ActiveBody.cpp.
|
virtual |
onDelete() will be called on all modules contained by an object or drawable before the actual deletion of each of those modules happens
Reimplemented from Module.
Definition at line 198 of file ActiveBody.cpp.
|
virtual |
Override this if you want a totally different effect than DISABLED_SUBDUED.
Definition at line 1274 of file ActiveBody.cpp.
|
virtual |
I just achieved this level right this moment.
Implements BodyModule.
Definition at line 1412 of file ActiveBody.cpp.
|
virtual |
This is a major change like a damage state.
Implements BodyModule.
Definition at line 1506 of file ActiveBody.cpp.
|
inlinevirtual |
Implements BodyModule.
Definition at line 100 of file ActiveBody.h.
|
inlinevirtual |
Reimplemented from BodyModule.
Definition at line 111 of file ActiveBody.h.
|
protected |
Definition at line 208 of file ActiveBody.cpp.
|
virtual |
control damage state directly. Will adjust hitpoints.
Implements BodyModule.
Definition at line 240 of file ActiveBody.cpp.
|
inlinevirtual |
Reimplemented from BodyModule.
Definition at line 110 of file ActiveBody.h.
|
virtual |
Set or unset the overridable indestructible flag in the body
Reimplemented from BodyModule.
Definition at line 1374 of file ActiveBody.cpp.
|
virtual |
Sets the inital load health %.
Simple setting of the health value, it does NOT track any transition states for the event of "damage" or the event of "death".
Reimplemented from BodyModule.
Definition at line 879 of file ActiveBody.cpp.
|
virtual |
Sets the inital max health.
Simple setting of the health value, it does NOT track any transition states for the event of "damage" or the event of "death".
Reimplemented from BodyModule.
Definition at line 897 of file ActiveBody.cpp.
Definition at line 761 of file ActiveBody.cpp.
Definition at line 730 of file ActiveBody.cpp.
|
inlinevirtual |
Implements BodyModule.
Definition at line 102 of file ActiveBody.h.
|
virtual |
Reimplemented from BodyModule.
Definition at line 1111 of file ActiveBody.cpp.
|
protected |
Definition at line 267 of file ActiveBody.cpp.