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

#include <BridgeTowerBehavior.h>

Inherits BehaviorModule, BridgeTowerBehaviorInterface, DieModuleInterface, and DamageModuleInterface.

Public Member Functions

 BridgeTowerBehavior (Thing *thing, const ModuleData *moduleData)
 
BridgeTowerBehaviorInterface * getBridgeTowerBehaviorInterface (void)
 
virtual void setBridge (Object *bridge)
 
virtual ObjectID getBridgeID (void)
 
virtual void setTowerType (BridgeTowerType type)
 
virtual DamageModuleInterface * getDamage ()
 
virtual void onDamage (DamageInfo *damageInfo)
 damage callback
 
virtual void onHealing (DamageInfo *damageInfo)
 healing callback
 
virtual void onBodyDamageStateChange (const DamageInfo *damageInfo, BodyDamageType oldState, BodyDamageType newState)
 state change callback
 
virtual DieModuleInterface * getDie ()
 
virtual void onDie (const DamageInfo *damageInfo)
 
- Public Member Functions inherited from BehaviorModule
 BehaviorModule (Thing *thing, const ModuleData *moduleData)
 
virtual BodyModuleInterface * getBody ()
 
virtual CollideModuleInterface * getCollide ()
 
virtual ContainModuleInterface * getContain ()
 
virtual CreateModuleInterface * getCreate ()
 
virtual DestroyModuleInterface * getDestroy ()
 
virtual SpecialPowerModuleInterface * getSpecialPower ()
 
virtual UpdateModuleInterface * getUpdate ()
 
virtual UpgradeModuleInterface * getUpgrade ()
 
virtual StealthUpdate * getStealth ()
 
virtual SpyVisionUpdate * getSpyVisionUpdate ()
 
virtual ParkingPlaceBehaviorInterface * getParkingPlaceBehaviorInterface ()
 
virtual RebuildHoleBehaviorInterface * getRebuildHoleBehaviorInterface ()
 
virtual BridgeBehaviorInterface * getBridgeBehaviorInterface ()
 
virtual BridgeScaffoldBehaviorInterface * getBridgeScaffoldBehaviorInterface ()
 
virtual OverchargeBehaviorInterface * getOverchargeBehaviorInterface ()
 
virtual TransportPassengerInterface * getTransportPassengerInterface ()
 
virtual CaveInterface * getCaveInterface ()
 
virtual LandMineInterface * getLandMineInterface ()
 
virtual DieModuleInterface * getEjectPilotDieInterface ()
 
virtual ProjectileUpdateInterface * getProjectileUpdateInterface ()
 
virtual AIUpdateInterface * getAIUpdateInterface ()
 
virtual ExitInterface * getUpdateExitInterface ()
 
virtual DockUpdateInterface * getDockUpdateInterface ()
 
virtual RailedTransportDockUpdateInterface * getRailedTransportDockUpdateInterface (void)
 
virtual SlowDeathBehaviorInterface * getSlowDeathBehaviorInterface ()
 
virtual SpecialPowerUpdateInterface * getSpecialPowerUpdateInterface ()
 
virtual SlavedUpdateInterface * getSlavedUpdateInterface ()
 
virtual ProductionUpdateInterface * getProductionUpdateInterface ()
 
virtual HordeUpdateInterface * getHordeUpdateInterface ()
 
virtual PowerPlantUpdateInterface * getPowerPlantUpdateInterface ()
 
virtual SpawnBehaviorInterface * getSpawnBehaviorInterface ()
 
virtual CountermeasuresBehaviorInterface * getCountermeasuresBehaviorInterface ()
 
virtual const CountermeasuresBehaviorInterface * getCountermeasuresBehaviorInterface () 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 BridgeTowerBehaviorInterface * getBridgeTowerBehaviorInterfaceFromObject (Object *obj)
 
- 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

ObjectID m_bridgeID
 the bridge we're a part of
 
BridgeTowerType m_type
 type of tower (positioning) we are
 

Additional Inherited Members

- 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
 

Detailed Description

Definition at line 57 of file BridgeTowerBehavior.h.

Constructor & Destructor Documentation

◆ BridgeTowerBehavior()

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

Definition at line 45 of file BridgeTowerBehavior.cpp.

Member Function Documentation

◆ getBridgeID()

ObjectID BridgeTowerBehavior::getBridgeID ( void )
virtual

Implements BridgeTowerBehaviorInterface.

Definition at line 74 of file BridgeTowerBehavior.cpp.

◆ getBridgeTowerBehaviorInterface()

BridgeTowerBehaviorInterface * BridgeTowerBehavior::getBridgeTowerBehaviorInterface ( void )
inlinevirtual

Reimplemented from BehaviorModule.

Definition at line 72 of file BridgeTowerBehavior.h.

◆ getBridgeTowerBehaviorInterfaceFromObject()

BridgeTowerBehaviorInterface * BridgeTowerBehavior::getBridgeTowerBehaviorInterfaceFromObject ( Object * obj)
static

Given an object, return a bridge tower interface if that object has one

Definition at line 268 of file BridgeTowerBehavior.cpp.

◆ getDamage()

virtual DamageModuleInterface * BridgeTowerBehavior::getDamage ( void )
inlinevirtual

Reimplemented from BehaviorModule.

Definition at line 81 of file BridgeTowerBehavior.h.

◆ getDie()

virtual DieModuleInterface * BridgeTowerBehavior::getDie ( void )
inlinevirtual

Reimplemented from BehaviorModule.

Definition at line 89 of file BridgeTowerBehavior.h.

◆ getInterfaceMask()

static Int BridgeTowerBehavior::getInterfaceMask ( )
inlinestatic

Definition at line 71 of file BridgeTowerBehavior.h.

◆ onBodyDamageStateChange()

void BridgeTowerBehavior::onBodyDamageStateChange ( const DamageInfo * damageInfo,
BodyDamageType oldState,
BodyDamageType newState )
virtual

state change callback

Implements DamageModuleInterface.

Definition at line 242 of file BridgeTowerBehavior.cpp.

◆ onDamage()

void BridgeTowerBehavior::onDamage ( DamageInfo * damageInfo)
virtual

damage callback

Implements DamageModuleInterface.

Definition at line 92 of file BridgeTowerBehavior.cpp.

◆ onDie()

void BridgeTowerBehavior::onDie ( const DamageInfo * damageInfo)
virtual

Implements DieModuleInterface.

Definition at line 251 of file BridgeTowerBehavior.cpp.

◆ onHealing()

void BridgeTowerBehavior::onHealing ( DamageInfo * damageInfo)
virtual

healing callback

Implements DamageModuleInterface.

Definition at line 173 of file BridgeTowerBehavior.cpp.

◆ setBridge()

void BridgeTowerBehavior::setBridge ( Object * bridge)
virtual

Implements BridgeTowerBehaviorInterface.

Definition at line 62 of file BridgeTowerBehavior.cpp.

◆ setTowerType()

void BridgeTowerBehavior::setTowerType ( BridgeTowerType type)
virtual

Implements BridgeTowerBehaviorInterface.

Definition at line 83 of file BridgeTowerBehavior.cpp.

Member Data Documentation

◆ m_bridgeID

ObjectID BridgeTowerBehavior::m_bridgeID
protected

the bridge we're a part of

Definition at line 94 of file BridgeTowerBehavior.h.

◆ m_type

BridgeTowerType BridgeTowerBehavior::m_type
protected

type of tower (positioning) we are

Definition at line 95 of file BridgeTowerBehavior.h.


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