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

#include <NeutronMissileSlowDeathUpdate.h>

Inherits SlowDeathBehavior.

Public Member Functions

 NeutronMissileSlowDeathBehavior (Thing *thing, const ModuleData *moduleData)
 
virtual UpdateSleepTime update (void)
 the update call
 
- Public Member Functions inherited from SlowDeathBehavior
 SlowDeathBehavior (Thing *thing, const ModuleData *moduleData)
 
virtual DieModuleInterfacegetDie ()
 
virtual SlowDeathBehaviorInterfacegetSlowDeathBehaviorInterface ()
 
virtual DisabledMaskType getDisabledTypesToProcess () const
 
virtual void onDie (const DamageInfo *damageInfo)
 
virtual void beginSlowDeath (const DamageInfo *damageInfo)
 
virtual Int getProbabilityModifier (const DamageInfo *damageInfo) const
 
virtual Bool isDieApplicable (const DamageInfo *damageInfo) const
 
- Public Member Functions inherited from UpdateModule
 UpdateModule (Thing *thing, const ModuleData *moduleData)
 
virtual UpdateModuleInterfacegetUpdate ()
 
DisabledMaskType getDisabledTypesToProcess () const
 
UPDATEMODULE_FRIEND_DECLARATOR UnsignedInt friend_getPriority () const
 
UPDATEMODULE_FRIEND_DECLARATOR UnsignedInt friend_getNextCallFrame () const
 
UPDATEMODULE_FRIEND_DECLARATOR SleepyUpdatePhase friend_getNextCallPhase () const
 
UPDATEMODULE_FRIEND_DECLARATOR void friend_setNextCallFrame (UnsignedInt frame)
 
UPDATEMODULE_FRIEND_DECLARATOR Int friend_getIndexInLogic () const
 
UPDATEMODULE_FRIEND_DECLARATOR void friend_setIndexInLogic (Int i)
 
UPDATEMODULE_FRIEND_DECLARATOR const Objectfriend_getObject () const
 
- Public Member Functions inherited from BehaviorModule
 BehaviorModule (Thing *thing, const ModuleData *moduleData)
 
virtual BodyModuleInterfacegetBody ()
 
virtual CollideModuleInterfacegetCollide ()
 
virtual ContainModuleInterfacegetContain ()
 
virtual CreateModuleInterfacegetCreate ()
 
virtual DamageModuleInterfacegetDamage ()
 
virtual DestroyModuleInterfacegetDestroy ()
 
virtual SpecialPowerModuleInterfacegetSpecialPower ()
 
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 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
 
virtual void onDelete (void)
 
- Public Member Functions inherited from MemoryPoolObject
void deleteInstance ()
 
- Public Member Functions inherited from Snapshot
 Snapshot (void)
 
 ~Snapshot (void)
 

Protected Member Functions

void doBlast (const BlastInfo *blastInfo)
 do blast
 
void doScorchBlast (const BlastInfo *blastInfo)
 do a scorch blast ring
 
- Protected Member Functions inherited from SlowDeathBehavior
void doPhaseStuff (SlowDeathPhaseType sdphase)
 
Bool isSlowDeathActivated () const
 
UnsignedInt getDestructionFrame () const
 
- 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
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
 

Protected Attributes

UnsignedInt m_activationFrame
 frame we were activated on
 
Bool m_completedBlasts [MAX_NEUTRON_BLASTS]
 blasts indexes we've already done
 
Bool m_completedScorchBlasts [MAX_NEUTRON_BLASTS]
 scorch blast indexes we've already done
 
Bool m_scorchPlaced
 TRUE once we've placed the scorch mark.
 

Additional Inherited Members

- Static Public Member Functions inherited from SlowDeathBehavior
static Int getInterfaceMask ()
 
- 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 ModuleDatafriend_newModuleData (INI *ini)
 

Detailed Description

Definition at line 91 of file NeutronMissileSlowDeathUpdate.h.

Constructor & Destructor Documentation

◆ NeutronMissileSlowDeathBehavior()

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

Definition at line 191 of file NeutronMissileSlowDeathUpdate.cpp.

Member Function Documentation

◆ doBlast()

void NeutronMissileSlowDeathBehavior::doBlast ( const BlastInfo * blastInfo)
protected

do blast

Do a single blast for the bomb

Definition at line 293 of file NeutronMissileSlowDeathUpdate.cpp.

◆ doScorchBlast()

void NeutronMissileSlowDeathBehavior::doScorchBlast ( const BlastInfo * blastInfo)
protected

do a scorch blast ring

Do a scorch blast event ... this doesn't do actual damage, but it "scorches" things

Todo
can't to this now, flames eat too many particles

Definition at line 412 of file NeutronMissileSlowDeathUpdate.cpp.

◆ update()

UpdateSleepTime NeutronMissileSlowDeathBehavior::update ( void )
virtual

the update call

Todo
srj use SLEEPY_UPDATE here

Reimplemented from SlowDeathBehavior.

Definition at line 217 of file NeutronMissileSlowDeathUpdate.cpp.

Member Data Documentation

◆ m_activationFrame

UnsignedInt NeutronMissileSlowDeathBehavior::m_activationFrame
protected

frame we were activated on

Definition at line 109 of file NeutronMissileSlowDeathUpdate.h.

◆ m_completedBlasts

Bool NeutronMissileSlowDeathBehavior::m_completedBlasts[MAX_NEUTRON_BLASTS]
protected

blasts indexes we've already done

Definition at line 110 of file NeutronMissileSlowDeathUpdate.h.

◆ m_completedScorchBlasts

Bool NeutronMissileSlowDeathBehavior::m_completedScorchBlasts[MAX_NEUTRON_BLASTS]
protected

scorch blast indexes we've already done

Definition at line 111 of file NeutronMissileSlowDeathUpdate.h.

◆ m_scorchPlaced

Bool NeutronMissileSlowDeathBehavior::m_scorchPlaced
protected

TRUE once we've placed the scorch mark.

Definition at line 112 of file NeutronMissileSlowDeathUpdate.h.


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