summaryrefslogtreecommitdiff
path: root/game/client/tf/c_monster_resource.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/client/tf/c_monster_resource.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/client/tf/c_monster_resource.h')
-rw-r--r--game/client/tf/c_monster_resource.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/game/client/tf/c_monster_resource.h b/game/client/tf/c_monster_resource.h
new file mode 100644
index 0000000..08927b3
--- /dev/null
+++ b/game/client/tf/c_monster_resource.h
@@ -0,0 +1,39 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+#ifndef C_MONSTER_RESOURCE
+#define C_MONSTER_RESOURCE
+#ifdef _WIN32
+#pragma once
+#endif
+
+
+class C_MonsterResource : public C_BaseEntity
+{
+ DECLARE_CLASS( C_MonsterResource, C_BaseEntity );
+public:
+ DECLARE_CLIENTCLASS();
+
+ C_MonsterResource();
+ virtual ~C_MonsterResource();
+
+ float GetBossHealthPercentage( void );
+ float GetBossStunPercentage( void );
+
+ int GetSkillShotCompleteCount( void ){ return m_iSkillShotCompleteCount; }
+ float GetSkillShotComboEndTime( void ){ return m_fSkillShotComboEndTime; }
+
+ int GetBossState() const { return m_iBossState; }
+
+private:
+ int m_iBossHealthPercentageByte;
+ int m_iBossStunPercentageByte;
+
+ int m_iSkillShotCompleteCount; // the number of consecutive skill shots that have been completed. 0 = don't show combo HUD
+ float m_fSkillShotComboEndTime; // the time when the current skill shot combo window closes
+
+ int m_iBossState;
+};
+
+extern C_MonsterResource *g_pMonsterResource;
+
+
+#endif // C_MONSTER_RESOURCE