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

#include <MoneyCrateCollide.h>

Inherits CrateCollide.

Public Member Functions

 MoneyCrateCollide (Thing *thing, const ModuleData *moduleData)
 
- Public Member Functions inherited from CrateCollide
 CrateCollide (Thing *thing, const ModuleData *moduleData)
 
virtual void onCollide (Object *other, const Coord3D *loc, const Coord3D *normal)
 This collide method gets called when collision occur.
 
virtual Bool wouldLikeToCollideWith (const Object *other) const
 this is used for things like pilots, to determine if they can "enter" something
 
virtual Bool isRailroad () const
 
virtual Bool isCarBombCrateCollide () const
 
virtual Bool isHijackedVehicleCrateCollide () const
 
virtual Bool isSabotageBuildingCrateCollide () const
 
void doSabotageFeedbackFX (const Object *other, SabotageVictimType type=SAB_VICTIM_GENERIC)
 
- Public Member Functions inherited from CollideModule
 CollideModule (Thing *thing, const ModuleData *moduleData)
 
virtual CollideModuleInterface * getCollide ()
 
virtual Bool isSalvageCrateCollide () const
 
- Public Member Functions inherited from BehaviorModule
 BehaviorModule (Thing *thing, const ModuleData *moduleData)
 
virtual BodyModuleInterface * getBody ()
 
virtual ContainModuleInterface * getContain ()
 
virtual CreateModuleInterface * getCreate ()
 
virtual DamageModuleInterface * getDamage ()
 
virtual DestroyModuleInterface * getDestroy ()
 
virtual DieModuleInterface * getDie ()
 
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 BridgeTowerBehaviorInterface * getBridgeTowerBehaviorInterface ()
 
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)
 

Protected Member Functions

virtual Bool executeCrateBehavior (Object *other)
 This is the game logic execution function that all real CrateCollides will implement.
 
Int getUpgradedSupplyBoost (Object *other) const
 
- Protected Member Functions inherited from CrateCollide
virtual Bool isValidToExecute (const Object *other) const
 This allows specific vetoes to certain types of crates and their data.
 
- 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
 

Additional Inherited Members

- Public Types inherited from CrateCollide
enum  SabotageVictimType {
  SAB_VICTIM_GENERIC = 0 , SAB_VICTIM_COMMAND_CENTER , SAB_VICTIM_FAKE_BUILDING , SAB_VICTIM_INTERNET_CENTER ,
  SAB_VICTIM_MILITARY_FACTORY , SAB_VICTIM_POWER_PLANT , SAB_VICTIM_SUPERWEAPON , SAB_VICTIM_SUPPLY_CENTER ,
  SAB_VICTIM_DROP_ZONE
}
 
- Static Public Member Functions inherited from CollideModule
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)
 

Detailed Description

Definition at line 73 of file MoneyCrateCollide.h.

Constructor & Destructor Documentation

◆ MoneyCrateCollide()

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

Definition at line 41 of file MoneyCrateCollide.cpp.

Member Function Documentation

◆ executeCrateBehavior()

Bool MoneyCrateCollide::executeCrateBehavior ( Object * other)
protectedvirtual

This is the game logic execution function that all real CrateCollides will implement.

Implements CrateCollide.

Definition at line 54 of file MoneyCrateCollide.cpp.

◆ getUpgradedSupplyBoost()

Int MoneyCrateCollide::getUpgradedSupplyBoost ( Object * other) const
protected

Definition at line 72 of file MoneyCrateCollide.cpp.


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