Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef CHUDOVERHEAT_INCLUDED_H
- #define CHUDOVERHEAT_INCLUDED_H
- /***
- *
- * Copyright (c) 1999, Valve LLC. All rights reserved.
- *
- * This product contains software technology licensed from Id
- * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
- * All Rights Reserved.
- *
- * Use, distribution, and modification of this source code and/or resulting
- * object code is restricted to non-commercial enhancements to products from
- * Valve LLC. All other use, distribution, or modification is prohibited
- * without written permission from Valve LLC.
- *
- ****/
- //
- // hud_overheat.h - Header of the CHudOverheat class.
- //
- class CHudOverheat : public CHudBase
- {
- public:
- virtual int Init( void );
- virtual int VidInit( void ) { return 1; }
- virtual int Draw( float flTime );
- int MsgFunc_Overheat( const char *pszName, int iSize, void *pbuf );
- private:
- int CalculatePercentage( const int _iWidth, const int _iBarWidth );
- void PercentageToColor( const int _iPercentage, int &_iRed, int &_iGreen, int &_iBlue );
- int m_iHeat;
- };
- #endif // CHUDOVERHEAT_INCLUDED_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement