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

#include <ActionManager.h>

Inherits SubsystemInterface.

Public Member Functions

 ActionManager (void)
 
virtual ~ActionManager (void)
 
virtual void init (void)
 
virtual void reset (void)
 subsystem interface
 
virtual void update (void)
 subsystem interface
 
Bool canGetRepairedAt (const Object *obj, const Object *repairDest, CommandSourceType commandSource)
 subsystem interface
 
Bool canTransferSuppliesAt (const Object *obj, const Object *transferDest)
 
Bool canDockAt (const Object *obj, const Object *dockDest, CommandSourceType commandSource)
 
Bool canGetHealedAt (const Object *obj, const Object *healDest, CommandSourceType commandSource)
 
Bool canRepairObject (const Object *obj, const Object *objectToRepair, CommandSourceType commandSource)
 
Bool canResumeConstructionOf (const Object *obj, const Object *objectBeingConstructed, CommandSourceType commandSource)
 
Bool canEnterObject (const Object *obj, const Object *objectToEnter, CommandSourceType commandSource, CanEnterType mode)
 
CanAttackResult getCanAttackObject (const Object *obj, const Object *objectToAttack, CommandSourceType commandSource, AbleToAttackType attackType)
 
Bool canConvertObjectToCarBomb (const Object *obj, const Object *objectToConvert, CommandSourceType commandSource)
 
Bool canHijackVehicle (const Object *obj, const Object *ObjectToHijack, CommandSourceType commandSource)
 
Bool canSabotageBuilding (const Object *obj, const Object *objectToSabotage, CommandSourceType commandSource)
 
Bool canCaptureBuilding (const Object *obj, const Object *objectToCapture, CommandSourceType commandSource)
 
Bool canDisableVehicleViaHacking (const Object *obj, const Object *objectToHack, CommandSourceType commandSource, Bool checkSourceRequirements=true)
 
Bool canStealCashViaHacking (const Object *obj, const Object *objectToHack, CommandSourceType commandSource)
 
Bool canSnipeVehicle (const Object *obj, const Object *objectToSnipe, CommandSourceType commandSource)
 
Bool canBribeUnit (const Object *obj, const Object *objectToBribe, CommandSourceType commandSource)
 
Bool canCutBuildingPower (const Object *obj, const Object *building, CommandSourceType commandSource)
 
Bool canDisableBuildingViaHacking (const Object *obj, const Object *objectToHack, CommandSourceType commandSource)
 
Bool canDoSpecialPowerAtLocation (const Object *obj, const Coord3D *loc, CommandSourceType commandSource, const SpecialPowerTemplate *spTemplate, const Object *objectInWay, UnsignedInt commandOptions, Bool checkSourceRequirements=true)
 
Bool canDoSpecialPowerAtObject (const Object *obj, const Object *target, CommandSourceType commandSource, const SpecialPowerTemplate *spTemplate, UnsignedInt commandOptions, Bool checkSourceRequirements=true)
 
Bool canDoSpecialPower (const Object *obj, const SpecialPowerTemplate *spTemplate, CommandSourceType commandSource, UnsignedInt commandOptions, Bool checkSourceRequirements=true)
 
Bool canMakeObjectDefector (const Object *obj, const Object *objectToMakeDefector, CommandSourceType commandSource)
 
Bool canFireWeaponAtLocation (const Object *obj, const Coord3D *loc, CommandSourceType commandSource, const WeaponSlotType slot, const Object *objectInWay)
 
Bool canFireWeaponAtObject (const Object *obj, const Object *target, CommandSourceType commandSource, const WeaponSlotType slot)
 
Bool canFireWeapon (const Object *obj, const WeaponSlotType slot, CommandSourceType commandSource)
 
Bool canGarrison (const Object *obj, const Object *target, CommandSourceType commandSource)
 
Bool canOverrideSpecialPowerDestination (const Object *obj, const Coord3D *loc, SpecialPowerType spType, CommandSourceType commandSource)
 
Bool canPlayerGarrison (const Player *player, const Object *target, CommandSourceType commandSource)
 
- Public Member Functions inherited from SubsystemInterface
 SubsystemInterface ()
 
virtual ~SubsystemInterface ()
 
virtual void postProcessLoad ()
 
virtual void draw (void)
 
void UPDATE (void)
 
void DRAW (void)
 
AsciiString getName (void)
 
void setName (AsciiString name)
 

Additional Inherited Members

- Protected Attributes inherited from SubsystemInterface
AsciiString m_name
 

Detailed Description

Definition at line 61 of file ActionManager.h.

Constructor & Destructor Documentation

◆ ActionManager()

ActionManager::ActionManager ( void )

Definition at line 132 of file ActionManager.cpp.

◆ ~ActionManager()

ActionManager::~ActionManager ( void )
virtual

Definition at line 139 of file ActionManager.cpp.

Member Function Documentation

◆ canBribeUnit()

Bool ActionManager::canBribeUnit ( const Object * obj,
const Object * objectToBribe,
CommandSourceType commandSource )

Definition at line 1380 of file ActionManager.cpp.

◆ canCaptureBuilding()

Bool ActionManager::canCaptureBuilding ( const Object * obj,
const Object * objectToCapture,
CommandSourceType commandSource )

Definition at line 995 of file ActionManager.cpp.

◆ canConvertObjectToCarBomb()

Bool ActionManager::canConvertObjectToCarBomb ( const Object * obj,
const Object * objectToConvert,
CommandSourceType commandSource )

Definition at line 818 of file ActionManager.cpp.

◆ canCutBuildingPower()

Bool ActionManager::canCutBuildingPower ( const Object * obj,
const Object * building,
CommandSourceType commandSource )

Definition at line 1386 of file ActionManager.cpp.

◆ canDisableBuildingViaHacking()

Bool ActionManager::canDisableBuildingViaHacking ( const Object * obj,
const Object * objectToHack,
CommandSourceType commandSource )

Definition at line 1310 of file ActionManager.cpp.

◆ canDisableVehicleViaHacking()

Bool ActionManager::canDisableVehicleViaHacking ( const Object * obj,
const Object * objectToHack,
CommandSourceType commandSource,
Bool checkSourceRequirements = true )

Definition at line 1100 of file ActionManager.cpp.

◆ canDockAt()

Bool ActionManager::canDockAt ( const Object * obj,
const Object * dockDest,
CommandSourceType commandSource )

Can object 'obj' dock with object 'dockDest' for any reason

Definition at line 290 of file ActionManager.cpp.

◆ canDoSpecialPower()

Bool ActionManager::canDoSpecialPower ( const Object * obj,
const SpecialPowerTemplate * spTemplate,
CommandSourceType commandSource,
UnsignedInt commandOptions,
Bool checkSourceRequirements = true )

Definition at line 1844 of file ActionManager.cpp.

◆ canDoSpecialPowerAtLocation()

Bool ActionManager::canDoSpecialPowerAtLocation ( const Object * obj,
const Coord3D * loc,
CommandSourceType commandSource,
const SpecialPowerTemplate * spTemplate,
const Object * objectInWay,
UnsignedInt commandOptions,
Bool checkSourceRequirements = true )

Definition at line 1460 of file ActionManager.cpp.

◆ canDoSpecialPowerAtObject()

Bool ActionManager::canDoSpecialPowerAtObject ( const Object * obj,
const Object * target,
CommandSourceType commandSource,
const SpecialPowerTemplate * spTemplate,
UnsignedInt commandOptions,
Bool checkSourceRequirements = true )

Definition at line 1582 of file ActionManager.cpp.

◆ canEnterObject()

Bool ActionManager::canEnterObject ( const Object * obj,
const Object * objectToEnter,
CommandSourceType commandSource,
CanEnterType mode )
Todo
srj – this is horrible, but expedient.
Todo
srj – seems like we should check always (not just for checkCap), but scared to change now – check later

Definition at line 526 of file ActionManager.cpp.

◆ canFireWeapon()

Bool ActionManager::canFireWeapon ( const Object * obj,
const WeaponSlotType slot,
CommandSourceType commandSource )

Definition at line 1992 of file ActionManager.cpp.

◆ canFireWeaponAtLocation()

Bool ActionManager::canFireWeaponAtLocation ( const Object * obj,
const Coord3D * loc,
CommandSourceType commandSource,
const WeaponSlotType slot,
const Object * objectInWay )

Definition at line 1934 of file ActionManager.cpp.

◆ canFireWeaponAtObject()

Bool ActionManager::canFireWeaponAtObject ( const Object * obj,
const Object * target,
CommandSourceType commandSource,
const WeaponSlotType slot )

Definition at line 1953 of file ActionManager.cpp.

◆ canGarrison()

Bool ActionManager::canGarrison ( const Object * obj,
const Object * target,
CommandSourceType commandSource )

Definition at line 2012 of file ActionManager.cpp.

◆ canGetHealedAt()

Bool ActionManager::canGetHealedAt ( const Object * obj,
const Object * healDest,
CommandSourceType commandSource )

Definition at line 331 of file ActionManager.cpp.

◆ canGetRepairedAt()

Bool ActionManager::canGetRepairedAt ( const Object * obj,
const Object * repairDest,
CommandSourceType commandSource )

subsystem interface

Definition at line 146 of file ActionManager.cpp.

◆ canHijackVehicle()

Bool ActionManager::canHijackVehicle ( const Object * obj,
const Object * ObjectToHijack,
CommandSourceType commandSource )

Definition at line 853 of file ActionManager.cpp.

◆ canMakeObjectDefector()

Bool ActionManager::canMakeObjectDefector ( const Object * obj,
const Object * objectToMakeDefector,
CommandSourceType commandSource )

Definition at line 960 of file ActionManager.cpp.

◆ canOverrideSpecialPowerDestination()

Bool ActionManager::canOverrideSpecialPowerDestination ( const Object * obj,
const Coord3D * loc,
SpecialPowerType spType,
CommandSourceType commandSource )

Definition at line 2084 of file ActionManager.cpp.

◆ canPlayerGarrison()

Bool ActionManager::canPlayerGarrison ( const Player * player,
const Object * target,
CommandSourceType commandSource )

Definition at line 2050 of file ActionManager.cpp.

◆ canRepairObject()

Bool ActionManager::canRepairObject ( const Object * obj,
const Object * objectToRepair,
CommandSourceType commandSource )

Definition at line 383 of file ActionManager.cpp.

◆ canResumeConstructionOf()

Bool ActionManager::canResumeConstructionOf ( const Object * obj,
const Object * objectBeingConstructed,
CommandSourceType commandSource )

Can 'obj' resume the construction of 'objectBeingConstructed'

Definition at line 453 of file ActionManager.cpp.

◆ canSabotageBuilding()

Bool ActionManager::canSabotageBuilding ( const Object * obj,
const Object * objectToSabotage,
CommandSourceType commandSource )

Definition at line 915 of file ActionManager.cpp.

◆ canSnipeVehicle()

Bool ActionManager::canSnipeVehicle ( const Object * obj,
const Object * objectToSnipe,
CommandSourceType commandSource )

Definition at line 1393 of file ActionManager.cpp.

◆ canStealCashViaHacking()

Bool ActionManager::canStealCashViaHacking ( const Object * obj,
const Object * objectToHack,
CommandSourceType commandSource )

Definition at line 1224 of file ActionManager.cpp.

◆ canTransferSuppliesAt()

Bool ActionManager::canTransferSuppliesAt ( const Object * obj,
const Object * transferDest )

Definition at line 211 of file ActionManager.cpp.

◆ getCanAttackObject()

CanAttackResult ActionManager::getCanAttackObject ( const Object * obj,
const Object * objectToAttack,
CommandSourceType commandSource,
AbleToAttackType attackType )

Definition at line 723 of file ActionManager.cpp.

◆ init()

virtual void ActionManager::init ( void )
inlinevirtual
  • Assign any default values to data required for the class
    • Allocate any memory and resources needed throughout the lifetime of the class

Implements SubsystemInterface.

Definition at line 69 of file ActionManager.h.

◆ reset()

virtual void ActionManager::reset ( void )
inlinevirtual

subsystem interface

Implements SubsystemInterface.

Definition at line 70 of file ActionManager.h.

◆ update()

virtual void ActionManager::update ( void )
inlinevirtual

subsystem interface

Implements SubsystemInterface.

Definition at line 71 of file ActionManager.h.


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