ScummVM API documentation
cGameEnemy_Dog Class Reference
Inheritance diagram for cGameEnemy_Dog:
iGameEnemy iGameEntity

Public Member Functions

 cGameEnemy_Dog (cInit *apInit, const tString &asName, TiXmlElement *apGameElem)
 
void OnLoad ()
 
void OnUpdate (float afTimeStep)
 
void ShowPlayer (const cVector3f &avPlayerFeetPos)
 
bool MoveToPos (const cVector3f &avFeetPos)
 
bool IsFighting ()
 
iCollideShapeGetAttackShape ()
 
iCollideShapeGetBreakDoorShape ()
 
- Public Member Functions inherited from iGameEnemy
 iGameEnemy (cInit *apInit, const tString &asName, TiXmlElement *apGameElem)
 
void LoadBaseProperties (TiXmlElement *apGameElem)
 
void OnPlayerInteract ()
 
void OnPlayerPick ()
 
void Setup (cWorld3D *apWorld)
 
void OnWorldLoad ()
 
void OnPostLoadScripts ()
 
void OnWorldExit ()
 
void OnDraw ()
 
void OnPostSceneDraw ()
 
virtual void ExtraPostSceneDraw ()
 
void Update (float afTimeStep)
 
bool IsLoading ()
 
void OnDamage (float afX)
 
void OnDeath (float afX)
 
void OnFlashlight (const cVector3f &avPos)
 
virtual void OnSetActive (bool abX)
 
void SetupBody ()
 
cVector3f GetPosition ()
 
void SetFOV (float afAngle)
 
const tStringGetHitPS ()
 
const tStringGetEnemyType ()
 
const tStringGetCloseMusic ()
 
int GetCloseMusicPrio ()
 
float GetCloseMusicStartDist ()
 
float GetCloseMusicStopDist ()
 
const tStringGetAttackMusic ()
 
int GetAttackMusicPrio ()
 
void AddState (iGameEnemyState *apState)
 
void ChangeState (int alId)
 
iGameEnemyStateGetState (int alId)
 
int GetCurrentStateId ()
 
bool HandleTrigger (cGameTrigger *apTrigger)
 
eGameTriggerType GetTriggerTypes ()
 
float GetTriggerUpdateCount ()
 
void SetTriggerUpdateCount (float afX)
 
float GetTriggerUpdateRate ()
 
void SetSkipSoundTriggerCount (float afX)
 
void PlayAnim (const tString &asName, bool abLoop, float afFadeTime, bool abDependsOnSpeed=false, float afSpeedMul=1.0f, bool abSyncWithPrevFrame=false, bool abOverideMoveState=true)
 
void UseMoveStateAnimations ()
 
cAnimationStateGetCurrentAnimation ()
 
void PlaySound (const tString &asName)
 
void SetOnDeathCallback (const tString &asFunc)
 
void SetOnAttackCallback (const tString &asFunc)
 
tString GetOnAttackCallback ()
 
bool CanSeePlayer ()
 
cCharacterMoveGetMover ()
 
cVector3f GetLastPlayerPos ()
 
void SetLastPlayerPos (const cVector3f &avPos)
 
void SetTempPosition (const cVector3f &avPos)
 
cVector3f GetTempPosition ()
 
void SetTempFloat (float afX)
 
float GetTempFloat ()
 
cEnemyFindGroundGetGroundFinder ()
 
cEnemyCheckForDoorGetDoorChecker ()
 
bool CheckForDoor ()
 
bool CheckForTeamMate (float afMaxDist, bool abCheckIfFighting)
 
bool IsAttracted ()
 
void SetAttracted (bool abX)
 
bool GetUsesTriggers ()
 
void SetUsesTriggers (bool abX)
 
void AddPatrolNode (const tString &asNode, float afTime, const tString &asAnimation)
 
cEnemyPatrolNodeGetPatrolNode (int alIdx)
 
int GetPatrolNodeNum ()
 
cEnemyPatrolNodeCurrentPatrolNode ()
 
void ClearPatrolNodes ()
 
int GetCurrentPatrolNode ()
 
float GetWaitTime ()
 
float GetWaitTimeCount ()
 
void SetCurrentPatrolNode (int alX)
 
void IncCurrentPatrolNode ()
 
void SetWaitTime (float afX)
 
void SetWaitTimeCount (float afX)
 
void AddWaitTimeCount (float afX)
 
float GetDoorBreakCount ()
 
void SetDoorBreakCount (float afX)
 
void AddDoorBreakCount (float afX)
 
const cVector3fGetModelOffsetAngles ()
 
iGameEntity_SaveDataCreateSaveData ()
 
void SaveToSaveData (iGameEntity_SaveData *apSaveData)
 
void LoadFromSaveData (iGameEntity_SaveData *apSaveData)
 
- Public Member Functions inherited from iGameEntity
 iGameEntity (cInit *apInit, const tString &asName)
 
const tStringGetName ()
 
bool IsActive ()
 
void SetActive (bool abX)
 
virtual bool IsSaved ()
 
void OnUpdate (float afTimeStep)
 
eGameEntityType GetType ()
 
const tStringGetSubType ()
 
void SetDescription (const tWString &asDesc)
 
const tWStringGetDescription ()
 
void SetShowDescritionOnce (bool abX)
 
bool GetShowDescritionOnce ()
 
bool GetHasBeenExamined ()
 
void SetGameName (const tWString &asName)
 
const tWStringGetGameName ()
 
iPhysicsBodyGetBody (int alNum)
 
int GetBodyNum ()
 
void SetBodies (Common::Array< iPhysicsBody *> &avBodies)
 
iPhysicsJointGetJoint (int alNum)
 
int GetJointNum ()
 
void SetJoints (Common::Array< iPhysicsJoint *> &avJoints)
 
int GetLightNum ()
 
iLight3DGetLight (int alX)
 
void SetLights (Common::Array< iLight3D *> &avLights)
 
void SetParticleSystems (Common::Array< cParticleSystem3D *> &avParticleSystems)
 
void SetBillboards (Common::Array< cBillboard *> &avBillboards)
 
void SetBeams (Common::Array< cBeam *> &avBeams)
 
void SetSoundEntities (Common::Array< cSoundEntity *> &avSoundEntities)
 
void DestroyLight (iLight3D *apLight)
 
void DestroyParticleSystem (cParticleSystem3D *apPS)
 
void DestroyBillboard (cBillboard *apBillboard)
 
void SetSoundEntity (cSoundEntity *apSound)
 
cMeshEntityGetMeshEntity ()
 
void SetMeshEntity (cMeshEntity *apEnity)
 
void PlayerPick ()
 
void PlayerInteract ()
 
void PlayerExamine ()
 
virtual void OnPlayerExamine ()
 
virtual bool OnUseItem (cInventoryItem *apItem)
 
virtual void BreakAction ()
 
virtual void OnPlayerGravityCollide (iCharacterBody *apCharBody, cCollideData *apCollideData)
 
bool GetHasInteraction ()
 
float GetMaxExamineDist ()
 
void SetMaxExamineDist (float afX)
 
float GetMaxInteractDist ()
 
void SetMaxInteractDist (float afX)
 
virtual eCrossHairState GetPickCrossHairState (iPhysicsBody *apBody)
 
virtual float GetPickedDistance ()
 
void AddCollideScript (eGameCollideScriptType aType, const tString &asFunc, const tString &asEntity)
 
void RemoveCollideScript (eGameCollideScriptType aType, const tString &asFunc)
 
void RemoveCollideScriptWithChildEntity (iGameEntity *apEntity)
 
void AddScript (eGameEntityScriptType aType, const tString &asFunc)
 
void RemoveScript (eGameEntityScriptType aType)
 
void CreateVar (const tString &asName, int alVal)
 
void SetVar (const tString &asName, int alVal)
 
void AddVar (const tString &asName, int alVal)
 
int GetVar (const tString &asName)
 
void Damage (float afDamage, int alStrength)
 
float GetHealth ()
 
void SetHealth (float afHealth)
 
void SetToughness (int alX)
 
int GetToughness ()
 
bool GetDestroyMe ()
 
bool GetBreakMe ()
 
void Break ()
 
void SetCharBody (iCharacterBody *apCharBody)
 
iCharacterBodySetCharBody ()
 
void SetUpTransMaterials ()
 
void SetTransActive (bool abX)
 
void SetPauseControllers (bool abX)
 
bool GetPauseControllers ()
 
void SetPauseGravity (bool abX)
 
bool GetPauseGravity ()
 
const cMatrixfGetOnLoadTransform ()
 
void SetOnLoadTransform (const cMatrixf &a_mtxPose)
 
void SetLastImpulse (const cVector3f &avVec)
 
const tStringGetFileName ()
 
cGameEntityScriptGetCallbackScript (eGameEntityScriptType aType)
 
void SetSaveData (iGameEntity_SaveData *apData)
 
iGameEntity_SaveDataGetSaveData ()
 
virtual void SetupSaveData (iGameEntity_SaveData *apSaveData)
 

Public Attributes

float mfMinKnockDamage
 
float mfCertainKnockDamage
 
float mfLengthBodyToAss
 
float mfIdleFOV
 
tString msIdleFoundPlayerSound
 
float mfIdleMinSeeChance
 
float mfIdleMinHearVolume
 
tString msIdleSound
 
float mfIdleSoundMinInteraval
 
float mfIdleSoundMaxInteraval
 
float mfIdleCallBackupChance
 
tString msInvestigateSound
 
tString msAttentionSound
 
float mfAttentionTime
 
float mfAttentionMinDist
 
float mfHuntFOV
 
float mfHuntSpeed
 
float mfHuntForLostPlayerTime
 
float mfHuntMinSeeChance
 
float mfHuntMinHearVolume
 
float mfAttackDistance
 
float mfAttackSpeed
 
float mfAttackJumpTime
 
float mfAttackDamageTime
 
cVector3f mvAttackDamageSize
 
float mfAttackDamageRange
 
float mfAttackMinDamage
 
float mfAttackMaxDamage
 
tString msAttackStartSound
 
tString msAttackHitSound
 
float mfAttackMinMass
 
float mfAttackMaxMass
 
float mfAttackMinImpulse
 
float mfAttackMaxImpulse
 
int mlAttackStrength
 
tString msBreakDoorAnimation
 
float mfBreakDoorSpeed
 
float mfBreakDoorDamageTime
 
cVector3f mvBreakDoorDamageSize
 
float mfBreakDoorDamageRange
 
float mfBreakDoorMinDamage
 
float mfBreakDoorMaxDamage
 
tString msBreakDoorStartSound
 
tString msBreakDoorHitSound
 
float mfBreakDoorMinMass
 
float mfBreakDoorMaxMass
 
float mfBreakDoorMinImpulse
 
float mfBreakDoorMaxImpulse
 
int mlBreakDoorStrength
 
bool mbBreakDoorRiseAtEnd
 
tString msKnockDownSound
 
tString msDeathSound
 
float mfFleePositionChance
 
float mfFleePositionMaxTime
 
float mfFleePositionMinDistance
 
float mfFleePositionMaxDistance
 
float mfFleeBackChance
 
float mfFleeBackTime
 
float mfFleeBackSpeed
 
tString msCallBackupAnimation
 
tString msCallBackupSound
 
float mfCallBackupRange
 
float mfEatFOV
 
float mfEatMinSeeChance
 
float mfEatMinHearVolume
 

Additional Inherited Members

- Protected Member Functions inherited from iGameEnemy
void UpdateEnemyPose (float afTimeStep)
 
void UpdateAnimations (float afTimeStep)
 
void UpdateCheckForPlayer (float afTimeStep)
 
bool HandleSoundTrigger (cGameTrigger *apTrigger)
 
bool LineOfSight (const cVector3f &avPos, const cVector3f &avSize)
 
- Protected Member Functions inherited from iGameEntity
tString GetScriptCommand (eGameEntityScriptType aType)
 
void PreloadModel (const tString &asFile)
 
- Protected Attributes inherited from iGameEnemy
bool mbSetFeetAtGroundOnStart
 
bool mbAttachMeshToBody
 
bool mbRemoveAttackerOnDisable
 
tVector3fVec mvRayStartPoses
 
tVector3fVec mvRayEndPoses
 
cEnemyFindGround mFindGround
 
eGameTriggerType mTriggerTypes
 
cCharacterMovempMover
 
tString msEnemyType
 
float mfTriggerUpdateCount
 
float mfTriggerUpdateRate
 
float mfSkipSoundTriggerCount
 
cAStarHandlermpAStarAir
 
cAStarHandlermpAStarGround
 
cAINodeContainermpNodeContainerAir
 
cAINodeContainermpNodeContainerGround
 
cLineOfSightRayCallback mRayCallback
 
Common::Array< iGameEnemyState * > mvStates
 
int mlCurrentState
 
cEnemyCheckForDoor mDoorCheck
 
cAnimationStatempCurrentAnimation
 
bool mbAnimationIsSpeedDependant
 
float mfAnimationSpeedMul
 
bool mbOverideMoveState
 
eEnemyMoveState mMoveState
 
cVector3f mvTempPosition
 
float mfTempFloat
 
tStringVec mvPreloadSounds
 
bool mbLoading
 
bool mbAlignToGroundNormal
 
cMatrixf m_mtxStartPose
 
cMatrixf m_mtxGoalPose
 
float mfPoseCount
 
bool mbHasBeenActivated
 
bool mbUsesTriggers
 
cVector3f mvLastPlayerPos
 
float mfCanSeePlayerCount
 
float mfCheckForPlayerCount
 
float mfCheckForPlayerRate
 
bool mbCanSeePlayer
 
int mlPlayerInLOSCount
 
int mlMaxPlayerInLOSCount
 
float mfCalcPlayerHiddenPosCount
 
float mfDamageSoundTimer
 
tString msOnDeathCallback
 
tString msOnAttackCallback
 
Common::Array< cEnemyPatrolNodemvPatrolNodes
 
int mlCurrentPatrolNode
 
float mfWaitTime
 
float mfWaitTimeCount
 
float mfDoorBreakCount
 
bool mbIsAttracted
 
bool mbDisappear
 
float mfDisappearMinTime
 
float mfDisappearMaxTime
 
float mfDisappearMinDistance
 
tString msDisappearPS
 
tString msDisappearSound
 
bool mbDisappearFreezesRagdoll
 
float mfDisappearTime
 
bool mbDisappearActive
 
bool mbHasDisappeared
 
tString msCloseMusic
 
int mlCloseMusicPrio
 
float mfCloseMusicStartDist
 
float mfCloseMusicStopDist
 
tString msAttackMusic
 
int mlAttackMusicPrio
 
bool mbShowDebug
 
tString msGroundNodeType
 
cVector3f mvBodySize
 
float mfBodyMass
 
float mfMaxForwardSpeed
 
float mfMaxBackwardSpeed
 
float mfAcceleration
 
float mfDeacceleration
 
float mfMaxTurnSpeed
 
float mfAngleDistTurnMul
 
float mfMinBreakAngle
 
float mfBreakAngleMul
 
float mfSpeedMoveAnimMul
 
float mfTurnSpeedMoveAnimMul
 
cMatrixf m_mtxModelOffset
 
cVector3f mvModelOffsetAngles
 
float mfIdleToMoveLimit
 
float mfMoveToLideLimit
 
float mfMaxPushMass
 
float mfPushForce
 
float mfMaxSeeDist
 
float mfMinAttackDist
 
float mfFOV
 
float mfFOVXMul
 
float mfMaxHealth
 
float mfStoppedToWalkSpeed
 
float mfWalkToStoppedSpeed
 
float mfWalkToRunSpeed
 
float mfRunToWalkSpeed
 
float mfMoveAnimSpeedMul
 
tString msBackwardAnim
 
tString msStoppedAnim
 
tString msWalkAnim
 
tString msRunAnim
 
float mfMinStunSpeed
 
float mfMinStunImpulse
 
float mfObjectCollideStun
 
float mfStunDamageMul
 
tString msHitPS
 
- Protected Attributes inherited from iGameEntity
cInitmpInit
 
bool mbActive
 
tString msFileName
 
bool mbIsSaved
 
bool mbDestroyMe
 
bool mbBreakMe
 
bool mbHasInteraction
 
bool mbHasBeenExamined
 
tString msName
 
tString msSubType
 
float mfHealth
 
int mlToughness
 
tWString msGameName
 
tWString msDescription
 
bool mbShowDescritionOnce
 
float mfMaxExamineDist
 
float mfMaxInteractDist
 
eGameEntityType mType
 
bool mbPauseControllers
 
bool mbPauseGravity
 
cMatrixf m_mtxOnLoadTransform
 
iGameEntity_SaveDatampSaveData
 
Common::Array< iPhysicsBody * > mvBodies
 
Common::Array< iPhysicsJoint * > mvJoints
 
Common::Array< iLight3D * > mvLights
 
Common::Array< cParticleSystem3D * > mvParticleSystems
 
Common::Array< cBillboard * > mvBillboards
 
Common::Array< cBeam * > mvBeams
 
Common::Array< cSoundEntity * > mvSoundEntities
 
bool mbSaveLights
 
cMeshEntitympMeshEntity
 
Common::Array< iMaterial * > mvNormalMaterials
 
Common::Array< iMaterial * > mvTransMaterials
 
bool mbTransActive
 
bool mbTransShadow
 
cVector3f mvLastImpulse
 
Common::Array< cMesh * > mvPreloadedBreakMeshes
 
iCharacterBodympCharBody
 
cGameEntityScriptmvCallbackScripts [eGameEntityScriptType_LastEnum]
 
tGameCollideScriptMap m_mapCollideCallbacks
 
tGameEntityVarMap m_mapVars
 
bool mbUpdatingCollisionCallbacks
 

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