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

#include <StealthUpdate.h>

Inherits UpdateModule.

Public Member Functions

 StealthUpdate (Thing *thing, const ModuleData *moduleData)
 
virtual StealthUpdategetStealth ()
 
virtual UpdateSleepTime update ()
 
virtual DisabledMaskType getDisabledTypesToProcess () const
 
Bool isDisguised () const
 
Int getDisguisedPlayerIndex () const
 
const ThingTemplategetDisguisedTemplate ()
 
void markAsDetected (UnsignedInt numFrames=0)
 
void disguiseAsObject (const Object *target)
 
Real getFriendlyOpacity () const
 
UnsignedInt getStealthDelay () const
 
UnsignedInt getStealthLevel () const
 
EvaMessage getEnemyDetectionEvaEvent () const
 
EvaMessage getOwnDetectionEvaEvent () const
 
Bool getOrderIdleEnemiesToAttackMeUponReveal () const
 
ObjectcalcStealthOwner ()
 
Bool allowedToStealth (Object *stealthOwner) const
 
void receiveGrant (Bool active=TRUE, UnsignedInt frames=0)
 
Bool isGrantedBySpecialPower (void)
 
Bool isTemporaryGrant ()
 
- 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 DieModuleInterfacegetDie ()
 
virtual SpecialPowerModuleInterfacegetSpecialPower ()
 
virtual UpgradeModuleInterfacegetUpgrade ()
 
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)
 

Protected Member Functions

StealthLookType calcStealthedStatusForPlayer (const Object *obj, const Player *player)
 
Bool canDisguise () const
 
Real getRevealDistanceFromTarget () const
 
void hintDetectableWhileUnstealthed (void)
 
void changeVisualDisguise ()
 
UpdateSleepTime calcSleepTime () 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
 

Additional Inherited Members

- 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 109 of file StealthUpdate.h.

Constructor & Destructor Documentation

◆ StealthUpdate()

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

Definition at line 131 of file StealthUpdate.cpp.

Member Function Documentation

◆ allowedToStealth()

Bool StealthUpdate::allowedToStealth ( Object * stealthOwner) const

Definition at line 258 of file StealthUpdate.cpp.

◆ calcSleepTime()

UpdateSleepTime StealthUpdate::calcSleepTime ( ) const
protected

Definition at line 584 of file StealthUpdate.cpp.

◆ calcStealthedStatusForPlayer()

StealthLookType StealthUpdate::calcStealthedStatusForPlayer ( const Object * obj,
const Player * player )
protected

Definition at line 460 of file StealthUpdate.cpp.

◆ calcStealthOwner()

Object * StealthUpdate::calcStealthOwner ( )

Definition at line 555 of file StealthUpdate.cpp.

◆ canDisguise()

Bool StealthUpdate::canDisguise ( ) const
inlineprotected

Definition at line 151 of file StealthUpdate.h.

◆ changeVisualDisguise()

void StealthUpdate::changeVisualDisguise ( )
protected

Definition at line 984 of file StealthUpdate.cpp.

◆ disguiseAsObject()

void StealthUpdate::disguiseAsObject ( const Object * target)

Definition at line 939 of file StealthUpdate.cpp.

◆ getDisabledTypesToProcess()

virtual DisabledMaskType StealthUpdate::getDisabledTypesToProcess ( ) const
inlinevirtual

Implements UpdateModuleInterface.

Definition at line 127 of file StealthUpdate.h.

◆ getDisguisedPlayerIndex()

Int StealthUpdate::getDisguisedPlayerIndex ( ) const
inline

Definition at line 131 of file StealthUpdate.h.

◆ getDisguisedTemplate()

const ThingTemplate * StealthUpdate::getDisguisedTemplate ( )
inline

Definition at line 132 of file StealthUpdate.h.

◆ getEnemyDetectionEvaEvent()

EvaMessage StealthUpdate::getEnemyDetectionEvaEvent ( ) const
inline

Definition at line 138 of file StealthUpdate.h.

◆ getFriendlyOpacity()

Real StealthUpdate::getFriendlyOpacity ( ) const

Definition at line 452 of file StealthUpdate.cpp.

◆ getOrderIdleEnemiesToAttackMeUponReveal()

Bool StealthUpdate::getOrderIdleEnemiesToAttackMeUponReveal ( ) const
inline

Definition at line 140 of file StealthUpdate.h.

◆ getOwnDetectionEvaEvent()

EvaMessage StealthUpdate::getOwnDetectionEvaEvent ( ) const
inline

Definition at line 139 of file StealthUpdate.h.

◆ getRevealDistanceFromTarget()

Real StealthUpdate::getRevealDistanceFromTarget ( ) const
inlineprotected

Definition at line 152 of file StealthUpdate.h.

◆ getStealth()

virtual StealthUpdate * StealthUpdate::getStealth ( )
inlinevirtual

Reimplemented from BehaviorModule.

Definition at line 121 of file StealthUpdate.h.

◆ getStealthDelay()

UnsignedInt StealthUpdate::getStealthDelay ( ) const
inline

Definition at line 136 of file StealthUpdate.h.

◆ getStealthLevel()

UnsignedInt StealthUpdate::getStealthLevel ( ) const
inline

Definition at line 137 of file StealthUpdate.h.

◆ hintDetectableWhileUnstealthed()

void StealthUpdate::hintDetectableWhileUnstealthed ( void )
protected

Definition at line 431 of file StealthUpdate.cpp.

◆ isDisguised()

Bool StealthUpdate::isDisguised ( ) const
inline

Definition at line 130 of file StealthUpdate.h.

◆ isGrantedBySpecialPower()

Bool StealthUpdate::isGrantedBySpecialPower ( void )
inline

Definition at line 145 of file StealthUpdate.h.

◆ isTemporaryGrant()

Bool StealthUpdate::isTemporaryGrant ( )
inline

Definition at line 146 of file StealthUpdate.h.

◆ markAsDetected()

void StealthUpdate::markAsDetected ( UnsignedInt numFrames = 0)

Definition at line 870 of file StealthUpdate.cpp.

◆ receiveGrant()

void StealthUpdate::receiveGrant ( Bool active = TRUE,
UnsignedInt frames = 0 )

Definition at line 202 of file StealthUpdate.cpp.

◆ update()

UpdateSleepTime StealthUpdate::update ( void )
virtual

The update callback.

Todo
srj – improve sleeping behavior. we currently just sleep when not enabled,
Todo
srj – evil hack here... this whole heat-vision thing is fucked. don't want it on mines but no good way to do that. hack for now.
Todo
srj – do we need to do this EVERY frame?

Implements UpdateModule.

Definition at line 592 of file StealthUpdate.cpp.


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