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

#include <HiveStructureBody.h>

Inherits StructureBody.

Public Member Functions

 HiveStructureBody (Thing *thing, const ModuleData *moduleData)
 
- Public Member Functions inherited from StructureBody
 StructureBody (Thing *thing, const ModuleData *moduleData)
 
void setConstructorObject (Object *obj)
 
ObjectID getConstructorObjectID (void)
 
- Public Member Functions inherited from ActiveBody
 ActiveBody (Thing *thing, const ModuleData *moduleData)
 
virtual void onDelete (void)
 
virtual Real estimateDamage (DamageInfoInput &damageInfo) const
 
virtual void attemptHealing (DamageInfo *damageInfo)
 try to heal this object
 
virtual Real getHealth () const
 get current health
 
virtual BodyDamageType getDamageState () const
 
virtual void setDamageState (BodyDamageType newState)
 control damage state directly. Will adjust hitpoints.
 
virtual void setAflame (Bool setting)
 This is a major change like a damage state.
 
virtual UnsignedInt getSubdualDamageHealRate () const
 
virtual Real getSubdualDamageHealAmount () const
 
virtual Bool hasAnySubdualDamage () const
 
virtual Real getCurrentSubdualDamageAmount () const
 
virtual const DamageInfogetLastDamageInfo () const
 return info on last damage dealt to this object
 
virtual UnsignedInt getLastDamageTimestamp () const
 return frame of last damage dealt
 
virtual UnsignedInt getLastHealingTimestamp () const
 return frame of last damage dealt
 
virtual ObjectID getClearableLastAttacker () const
 
virtual void clearLastAttacker ()
 
void onVeterancyLevelChanged (VeterancyLevel oldLevel, VeterancyLevel newLevel, Bool provideFeedback=TRUE)
 I just achieved this level right this moment.
 
virtual void setArmorSetFlag (ArmorSetType ast)
 
virtual void clearArmorSetFlag (ArmorSetType ast)
 
virtual Bool testArmorSetFlag (ArmorSetType ast)
 
virtual void setInitialHealth (Int initialPercent)
 Sets the inital load health %.
 
virtual void setMaxHealth (Real maxHealth, MaxHealthChangeType healthChangeType=SAME_CURRENTHEALTH)
 Sets the inital max health.
 
virtual Bool getFrontCrushed () const
 
virtual Bool getBackCrushed () const
 
virtual void setFrontCrushed (Bool v)
 
virtual void setBackCrushed (Bool v)
 
virtual Real getMaxHealth () const
 return max health
 
virtual Real getInitialHealth () const
 
virtual Real getPreviousHealth () const
 return previous health
 
virtual void setIndestructible (Bool indestructible)
 
virtual Bool isIndestructible (void) const
 
virtual void internalChangeHealth (Real delta)
 change health
 
virtual void evaluateVisualCondition ()
 
virtual void updateBodyParticleSystems (void)
 
virtual Bool isSubdued () const
 
virtual Bool canBeSubdued () const
 
virtual void onSubdualChange (Bool isNowSubdued)
 Override this if you want a totally different effect than DISABLED_SUBDUED.
 
- Public Member Functions inherited from BodyModule
 BodyModule (Thing *thing, const ModuleData *moduleData)
 
virtual BodyModuleInterfacegetBody ()
 
virtual void applyDamageScalar (Real scalar)
 
virtual Real getDamageScalar () const
 
- Public Member Functions inherited from BehaviorModule
 BehaviorModule (Thing *thing, const ModuleData *moduleData)
 
virtual CollideModuleInterfacegetCollide ()
 
virtual ContainModuleInterfacegetContain ()
 
virtual CreateModuleInterfacegetCreate ()
 
virtual DamageModuleInterfacegetDamage ()
 
virtual DestroyModuleInterfacegetDestroy ()
 
virtual DieModuleInterfacegetDie ()
 
virtual SpecialPowerModuleInterfacegetSpecialPower ()
 
virtual UpdateModuleInterfacegetUpdate ()
 
virtual UpgradeModuleInterfacegetUpgrade ()
 
virtual StealthUpdategetStealth ()
 
virtual SpyVisionUpdategetSpyVisionUpdate ()
 
virtual ParkingPlaceBehaviorInterfacegetParkingPlaceBehaviorInterface ()
 
virtual RebuildHoleBehaviorInterfacegetRebuildHoleBehaviorInterface ()
 
virtual BridgeBehaviorInterfacegetBridgeBehaviorInterface ()
 
virtual BridgeTowerBehaviorInterfacegetBridgeTowerBehaviorInterface ()
 
virtual BridgeScaffoldBehaviorInterfacegetBridgeScaffoldBehaviorInterface ()
 
virtual OverchargeBehaviorInterfacegetOverchargeBehaviorInterface ()
 
virtual TransportPassengerInterfacegetTransportPassengerInterface ()
 
virtual CaveInterfacegetCaveInterface ()
 
virtual LandMineInterfacegetLandMineInterface ()
 
virtual DieModuleInterfacegetEjectPilotDieInterface ()
 
virtual ProjectileUpdateInterfacegetProjectileUpdateInterface ()
 
virtual AIUpdateInterfacegetAIUpdateInterface ()
 
virtual ExitInterfacegetUpdateExitInterface ()
 
virtual DockUpdateInterfacegetDockUpdateInterface ()
 
virtual RailedTransportDockUpdateInterfacegetRailedTransportDockUpdateInterface (void)
 
virtual SlowDeathBehaviorInterfacegetSlowDeathBehaviorInterface ()
 
virtual SpecialPowerUpdateInterfacegetSpecialPowerUpdateInterface ()
 
virtual SlavedUpdateInterfacegetSlavedUpdateInterface ()
 
virtual ProductionUpdateInterfacegetProductionUpdateInterface ()
 
virtual HordeUpdateInterfacegetHordeUpdateInterface ()
 
virtual PowerPlantUpdateInterfacegetPowerPlantUpdateInterface ()
 
virtual SpawnBehaviorInterfacegetSpawnBehaviorInterface ()
 
virtual CountermeasuresBehaviorInterfacegetCountermeasuresBehaviorInterface ()
 
virtual const CountermeasuresBehaviorInterfacegetCountermeasuresBehaviorInterface () const
 
- Public Member Functions inherited from ObjectModule
 ObjectModule (Thing *thing, const ModuleData *moduleData)
 < this abstract class needs memory pool hooks
 
virtual void onCapture (Player *oldOwner, Player *newOwner)
 
virtual void onDisabledEdge (Bool nowDisabled)
 
- Public Member Functions inherited from Module
 Module (const ModuleData *moduleData)
 < this abstract class needs memory pool hooks
 
virtual NameKeyType getModuleNameKey () const =0
 
NameKeyType getModuleTagNameKey () const
 
virtual void onObjectCreated ()
 
virtual void onDrawableBoundToObject ()
 
virtual void preloadAssets (TimeOfDay timeOfDay)
 preload any assets we might have for this time of day
 
- Public Member Functions inherited from MemoryPoolObject
void deleteInstance ()
 
- Public Member Functions inherited from Snapshot
 Snapshot (void)
 
 ~Snapshot (void)
 

Protected Member Functions

virtual void attemptDamage (DamageInfo *damageInfo)
 try to damage this object
 
- Protected Member Functions inherited from ActiveBody
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
ObjectgetObject ()
 
const ObjectgetObject () const
 
- Protected Member Functions inherited from Module
const ModuleDatagetModuleData () const
 
- Protected Member Functions inherited from MemoryPoolObject
virtual ~MemoryPoolObject ()
 
void * operator new (size_t s)
 
void operator delete (void *p)
 
virtual MemoryPoolgetObjectMemoryPool ()=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 ModuleDatafriend_newModuleData (INI *ini)
 
- Protected Attributes inherited from StructureBody
ObjectID m_constructorObjectID
 object that built this structure
 
- Protected Attributes inherited from BodyModule
Real m_damageScalar
 

Detailed Description

Structure body module

Definition at line 69 of file HiveStructureBody.h.

Constructor & Destructor Documentation

◆ HiveStructureBody()

HiveStructureBody::HiveStructureBody ( Thing * thing,
const ModuleData * moduleData )

Definition at line 58 of file HiveStructureBody.cpp.

Member Function Documentation

◆ attemptDamage()

void HiveStructureBody::attemptDamage ( DamageInfo * damageInfo)
protectedvirtual

try to damage this object

Reimplemented from ActiveBody.

Definition at line 69 of file HiveStructureBody.cpp.


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