Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.0 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. #ifndef C_MONSTER_RESOURCE
  3. #define C_MONSTER_RESOURCE
  4. #ifdef _WIN32
  5. #pragma once
  6. #endif
  7. class C_MonsterResource : public C_BaseEntity
  8. {
  9. DECLARE_CLASS( C_MonsterResource, C_BaseEntity );
  10. public:
  11. DECLARE_CLIENTCLASS();
  12. C_MonsterResource();
  13. virtual ~C_MonsterResource();
  14. float GetBossHealthPercentage( void );
  15. float GetBossStunPercentage( void );
  16. int GetSkillShotCompleteCount( void ){ return m_iSkillShotCompleteCount; }
  17. float GetSkillShotComboEndTime( void ){ return m_fSkillShotComboEndTime; }
  18. int GetBossState() const { return m_iBossState; }
  19. private:
  20. int m_iBossHealthPercentageByte;
  21. int m_iBossStunPercentageByte;
  22. int m_iSkillShotCompleteCount; // the number of consecutive skill shots that have been completed. 0 = don't show combo HUD
  23. float m_fSkillShotComboEndTime; // the time when the current skill shot combo window closes
  24. int m_iBossState;
  25. };
  26. extern C_MonsterResource *g_pMonsterResource;
  27. #endif // C_MONSTER_RESOURCE