28 #ifndef GAME_GAME_ENEMY_WORM_H 29 #define GAME_GAME_ENEMY_WORM_H 31 #include "hpl1/engine/engine.h" 32 #include "hpl1/penumbra-overture/GameEnemy.h" 45 virtual void OnSeePlayer(
const cVector3f &avPosition,
float afChance);
46 virtual bool OnHearNoise(
const cVector3f &avPosition,
float afVolume);
47 virtual void OnTakeHit(
float afDamage);
48 virtual void OnDeath(
float afDamage);
49 virtual void OnFlashlight(
const cVector3f &avPosition);
51 virtual void OnAnimationOver(
const tString &asAnimName) {}
53 virtual void OnDraw() {}
54 virtual void OnPostSceneDraw() {}
70 void OnUpdate(
float afTimeStep);
89 void OnUpdate(
float afTimeStep);
91 void OnSeePlayer(
const cVector3f &avPosition,
float afChance);
92 bool OnHearNoise(
const cVector3f &avPosition,
float afVolume);
95 void OnPostSceneDraw();
98 float mfUpdatePathCount;
100 bool mbFreePlayerPath;
102 float mfLostPlayerCount;
103 float mfMaxLostPlayerCount;
104 float mfAttackSoundCount;
121 void OnUpdate(
float afTimeStep) {}
123 void OnSeePlayer(
const cVector3f &avPosition,
float afChance) {}
124 bool OnHearNoise(
const cVector3f &avPosition,
float afVolume) {
return false; }
135 mpChildSegment = NULL;
164 void AfterAnimationUpdate(
cMeshEntity *apMeshEntity,
float afTimeStep);
179 void SetMax(
int alMax) { mlMaxVecs = alMax; }
197 void OnUpdate(
float afTimeStep);
199 void ExtraPostSceneDraw();
201 void ShowPlayer(
const cVector3f &avPlayerFeetPos);
203 bool MoveToPos(
const cVector3f &avFeetPos);
218 tString msIdleFoundPlayerSound;
219 float mfIdleMinSeeChance;
220 float mfIdleMinHearVolume;
221 float mfIdleMinWaitLength;
222 float mfIdleMaxWaitLength;
226 float mfHuntForLostPlayerTime;
227 float mfHuntMinSeeChance;
228 float mfHuntMinHearVolume;
231 float mfHuntSoundMinInteraval;
232 float mfHuntSoundMaxInteraval;
234 float mfAttackDamage;
235 float mfAttackInterval;
237 float mfAttackHitSoundInterval;
238 float mfAttackMinMass;
239 float mfAttackMaxMass;
240 float mfAttackMinImpulse;
241 float mfAttackMaxImpulse;
242 int mlAttackStrength;
262 int mlMaxSegmentPositions;
276 #endif // GAME_GAME_ENEMY_WORM_H
Definition: GameEnemy_Worm.h:41
Definition: GameEnemy_Worm.h:160
Definition: GameEnemy_Worm.h:172
Definition: CollideShape.h:50
Definition: PhysicsBody.h:117
Definition: GameEnemy_Worm.h:114
Definition: MeshEntity.h:71
Definition: GameEnemy_Worm.h:82
Definition: BoneState.h:37
Definition: tinyxml.h:864
Definition: GameEnemy.h:152
Definition: MeshEntity.h:96
Definition: SoundEntity.h:86
Definition: GameEnemy_Worm.h:188
Definition: GameEnemy.h:189
Definition: GameEnemy_Worm.h:63
Definition: GameEnemy_Worm.h:131