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

#include <BehaviorModule.h>

Inherits ObjectModule, and BehaviorModuleInterface.

Inherited by BodyModule, BridgeTowerBehavior, CollideModule, CreateModule, DamageModule, DestroyModule, DieModule, FireWeaponWhenDeadBehavior, SpecialPowerModule, UpdateModule, and UpgradeModule.

Public Member Functions

 BehaviorModule (Thing *thing, const ModuleData *moduleData)
 
virtual BodyModuleInterfacegetBody ()
 
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
 
virtual void onDelete (void)
 
- Public Member Functions inherited from MemoryPoolObject
void deleteInstance ()
 
- Public Member Functions inherited from Snapshot
 Snapshot (void)
 
 ~Snapshot (void)
 

Static Public Member Functions

static Int getInterfaceMask ()
 
static ModuleType getModuleType ()
 
- Static Public Member Functions inherited from Module
static ModuleDatafriend_newModuleData (INI *ini)
 

Protected Member Functions

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
 

Detailed Description

Definition at line 146 of file BehaviorModule.h.

Constructor & Destructor Documentation

◆ BehaviorModule()

BehaviorModule::BehaviorModule ( Thing * thing,
const ModuleData * moduleData )
inline

Definition at line 206 of file BehaviorModule.h.

Member Function Documentation

◆ crc()

void BehaviorModule::crc ( Xfer * xfer)
protectedvirtual

CRC

Reimplemented from ObjectModule.

Reimplemented in BodyModule, and ObjectHelper.

Definition at line 38 of file BehaviorModule.cpp.

◆ getAIUpdateInterface()

virtual AIUpdateInterface * BehaviorModule::getAIUpdateInterface ( )
inlinevirtual

Implements BehaviorModuleInterface.

Reimplemented in AIUpdateInterface.

Definition at line 184 of file BehaviorModule.h.

◆ getBody()

virtual BodyModuleInterface * BehaviorModule::getBody ( )
inlinevirtual

Implements BehaviorModuleInterface.

Reimplemented in BodyModule.

Definition at line 159 of file BehaviorModule.h.

◆ getBridgeBehaviorInterface()

virtual BridgeBehaviorInterface * BehaviorModule::getBridgeBehaviorInterface ( void )
inlinevirtual

Implements BehaviorModuleInterface.

Reimplemented in BridgeBehavior.

Definition at line 174 of file BehaviorModule.h.

◆ getBridgeScaffoldBehaviorInterface()

virtual BridgeScaffoldBehaviorInterface * BehaviorModule::getBridgeScaffoldBehaviorInterface ( )
inlinevirtual

Implements BehaviorModuleInterface.

Reimplemented in BridgeScaffoldBehavior.

Definition at line 176 of file BehaviorModule.h.

◆ getBridgeTowerBehaviorInterface()

virtual BridgeTowerBehaviorInterface * BehaviorModule::getBridgeTowerBehaviorInterface ( void )
inlinevirtual

Implements BehaviorModuleInterface.

Reimplemented in BridgeTowerBehavior.

Definition at line 175 of file BehaviorModule.h.

◆ getCaveInterface()

virtual CaveInterface * BehaviorModule::getCaveInterface ( )
inlinevirtual

Implements BehaviorModuleInterface.

Reimplemented in CaveContain.

Definition at line 179 of file BehaviorModule.h.

◆ getCollide()

virtual CollideModuleInterface * BehaviorModule::getCollide ( )
inlinevirtual

Implements BehaviorModuleInterface.

Reimplemented in CollideModule, MinefieldBehavior, OpenContain, PhysicsBehavior, and ToppleUpdate.

Definition at line 160 of file BehaviorModule.h.

◆ getContain()

virtual ContainModuleInterface * BehaviorModule::getContain ( )
inlinevirtual

Implements BehaviorModuleInterface.

Reimplemented in OpenContain.

Definition at line 161 of file BehaviorModule.h.

◆ getCountermeasuresBehaviorInterface() [1/2]

virtual CountermeasuresBehaviorInterface * BehaviorModule::getCountermeasuresBehaviorInterface ( )
inlinevirtual

Implements BehaviorModuleInterface.

Reimplemented in CountermeasuresBehavior.

Definition at line 195 of file BehaviorModule.h.

◆ getCountermeasuresBehaviorInterface() [2/2]

virtual const CountermeasuresBehaviorInterface * BehaviorModule::getCountermeasuresBehaviorInterface ( ) const
inlinevirtual

Implements BehaviorModuleInterface.

Reimplemented in CountermeasuresBehavior.

Definition at line 196 of file BehaviorModule.h.

◆ getCreate()

virtual CreateModuleInterface * BehaviorModule::getCreate ( )
inlinevirtual

Implements BehaviorModuleInterface.

Reimplemented in CaveContain, CreateModule, and TunnelContain.

Definition at line 162 of file BehaviorModule.h.

◆ getDamage()

◆ getDestroy()

virtual DestroyModuleInterface * BehaviorModule::getDestroy ( )
inlinevirtual

Implements BehaviorModuleInterface.

Reimplemented in DestroyModule.

Definition at line 164 of file BehaviorModule.h.

◆ getDie()

◆ getDockUpdateInterface()

virtual DockUpdateInterface * BehaviorModule::getDockUpdateInterface ( )
inlinevirtual

◆ getEjectPilotDieInterface()

virtual DieModuleInterface * BehaviorModule::getEjectPilotDieInterface ( void )
inlinevirtual

Implements BehaviorModuleInterface.

Reimplemented in EjectPilotDie.

Definition at line 181 of file BehaviorModule.h.

◆ getHordeUpdateInterface()

virtual HordeUpdateInterface * BehaviorModule::getHordeUpdateInterface ( )
inlinevirtual

Implements BehaviorModuleInterface.

Reimplemented in HordeUpdate.

Definition at line 192 of file BehaviorModule.h.

◆ getInterfaceMask()

static Int BehaviorModule::getInterfaceMask ( )
inlinestatic

Definition at line 156 of file BehaviorModule.h.

◆ getLandMineInterface()

virtual LandMineInterface * BehaviorModule::getLandMineInterface ( )
inlinevirtual

Implements BehaviorModuleInterface.

Reimplemented in MinefieldBehavior.

Definition at line 180 of file BehaviorModule.h.

◆ getModuleType()

static ModuleType BehaviorModule::getModuleType ( )
inlinestatic

Definition at line 157 of file BehaviorModule.h.

◆ getOverchargeBehaviorInterface()

virtual OverchargeBehaviorInterface * BehaviorModule::getOverchargeBehaviorInterface ( )
inlinevirtual

Implements BehaviorModuleInterface.

Reimplemented in OverchargeBehavior.

Definition at line 177 of file BehaviorModule.h.

◆ getParkingPlaceBehaviorInterface()

virtual ParkingPlaceBehaviorInterface * BehaviorModule::getParkingPlaceBehaviorInterface ( )
inlinevirtual

Implements BehaviorModuleInterface.

Reimplemented in FlightDeckBehavior, and ParkingPlaceBehavior.

Definition at line 172 of file BehaviorModule.h.

◆ getPowerPlantUpdateInterface()

virtual PowerPlantUpdateInterface * BehaviorModule::getPowerPlantUpdateInterface ( )
inlinevirtual

Implements BehaviorModuleInterface.

Reimplemented in PowerPlantUpdate.

Definition at line 193 of file BehaviorModule.h.

◆ getProductionUpdateInterface()

virtual ProductionUpdateInterface * BehaviorModule::getProductionUpdateInterface ( void )
inlinevirtual

Implements BehaviorModuleInterface.

Reimplemented in ProductionUpdate.

Definition at line 191 of file BehaviorModule.h.

◆ getProjectileUpdateInterface()

virtual ProjectileUpdateInterface * BehaviorModule::getProjectileUpdateInterface ( )
inlinevirtual

Implements BehaviorModuleInterface.

Reimplemented in DumbProjectileBehavior, MissileAIUpdate, and NeutronMissileUpdate.

Definition at line 183 of file BehaviorModule.h.

◆ getRailedTransportDockUpdateInterface()

virtual RailedTransportDockUpdateInterface * BehaviorModule::getRailedTransportDockUpdateInterface ( void )
inlinevirtual

Implements BehaviorModuleInterface.

Reimplemented in RailedTransportDockUpdate.

Definition at line 187 of file BehaviorModule.h.

◆ getRebuildHoleBehaviorInterface()

virtual RebuildHoleBehaviorInterface * BehaviorModule::getRebuildHoleBehaviorInterface ( )
inlinevirtual

Implements BehaviorModuleInterface.

Reimplemented in RebuildHoleBehavior.

Definition at line 173 of file BehaviorModule.h.

◆ getSlavedUpdateInterface()

virtual SlavedUpdateInterface * BehaviorModule::getSlavedUpdateInterface ( )
inlinevirtual

Implements BehaviorModuleInterface.

Reimplemented in MobMemberSlavedUpdate, and SlavedUpdate.

Definition at line 190 of file BehaviorModule.h.

◆ getSlowDeathBehaviorInterface()

virtual SlowDeathBehaviorInterface * BehaviorModule::getSlowDeathBehaviorInterface ( )
inlinevirtual

Implements BehaviorModuleInterface.

Reimplemented in SlowDeathBehavior.

Definition at line 188 of file BehaviorModule.h.

◆ getSpawnBehaviorInterface()

virtual SpawnBehaviorInterface * BehaviorModule::getSpawnBehaviorInterface ( )
inlinevirtual

Implements BehaviorModuleInterface.

Reimplemented in SpawnBehavior.

Definition at line 194 of file BehaviorModule.h.

◆ getSpecialPower()

virtual SpecialPowerModuleInterface * BehaviorModule::getSpecialPower ( )
inlinevirtual

Implements BehaviorModuleInterface.

Reimplemented in SpecialPowerModule.

Definition at line 166 of file BehaviorModule.h.

◆ getSpecialPowerUpdateInterface()

virtual SpecialPowerUpdateInterface * BehaviorModule::getSpecialPowerUpdateInterface ( )
inlinevirtual

◆ getSpyVisionUpdate()

virtual SpyVisionUpdate * BehaviorModule::getSpyVisionUpdate ( )
inlinevirtual

Reimplemented in SpyVisionUpdate.

Definition at line 170 of file BehaviorModule.h.

◆ getStealth()

virtual StealthUpdate * BehaviorModule::getStealth ( )
inlinevirtual

Reimplemented in StealthUpdate.

Definition at line 169 of file BehaviorModule.h.

◆ getTransportPassengerInterface()

virtual TransportPassengerInterface * BehaviorModule::getTransportPassengerInterface ( )
inlinevirtual

Implements BehaviorModuleInterface.

Reimplemented in MobNexusContain.

Definition at line 178 of file BehaviorModule.h.

◆ getUpdate()

virtual UpdateModuleInterface * BehaviorModule::getUpdate ( void )
inlinevirtual

Implements BehaviorModuleInterface.

Reimplemented in BridgeBehavior, SpawnBehavior, and UpdateModule.

Definition at line 167 of file BehaviorModule.h.

◆ getUpdateExitInterface()

virtual ExitInterface * BehaviorModule::getUpdateExitInterface ( )
inlinevirtual

◆ getUpgrade()

◆ loadPostProcess()

void BehaviorModule::loadPostProcess ( void )
protectedvirtual

Load post process

Reimplemented from ObjectModule.

Reimplemented in BodyModule, and ObjectHelper.

Definition at line 67 of file BehaviorModule.cpp.

◆ xfer()

void BehaviorModule::xfer ( Xfer * xfer)
protectedvirtual

Xfer Method Version Info: 1: Initial version

Reimplemented from ObjectModule.

Reimplemented in BodyModule, and ObjectHelper.

Definition at line 51 of file BehaviorModule.cpp.


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