Advertisement
Shepard62700FR

TWHL - Abbadon - hud_overheat.h

Jan 31st, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.10 KB | None | 0 0
  1. #ifndef CHUDOVERHEAT_INCLUDED_H
  2. #define CHUDOVERHEAT_INCLUDED_H
  3. /***
  4. *
  5. *   Copyright (c) 1999, Valve LLC. All rights reserved.
  6. *  
  7. *   This product contains software technology licensed from Id
  8. *   Software, Inc. ("Id Technology").  Id Technology (c) 1996 Id Software, Inc.
  9. *   All Rights Reserved.
  10. *
  11. *   Use, distribution, and modification of this source code and/or resulting
  12. *   object code is restricted to non-commercial enhancements to products from
  13. *   Valve LLC.  All other use, distribution, or modification is prohibited
  14. *   without written permission from Valve LLC.
  15. *
  16. ****/
  17.  
  18. //
  19. // hud_overheat.h - Header of the CHudOverheat class.
  20. //
  21.  
  22. class CHudOverheat : public CHudBase
  23. {
  24. public:
  25.     virtual int Init( void );
  26.     virtual int VidInit( void ) { return 1; }
  27.     virtual int Draw( float flTime );
  28.  
  29.     int MsgFunc_Overheat( const char *pszName, int iSize, void *pbuf );
  30. private:
  31.     int CalculatePercentage( const int _iWidth, const int _iBarWidth );
  32.  
  33.     void PercentageToColor( const int _iPercentage, int &_iRed, int &_iGreen, int &_iBlue );
  34.  
  35.     int m_iHeat;
  36. };
  37.  
  38. #endif // CHUDOVERHEAT_INCLUDED_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement