/***
*
*	Copyright (c) 1996-2001, 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.
*
****/
//redone by harSens: original file in health.bah

class CHudHealth: public CHudBase
{
public:
	/**
	* inits health
	* @return int: always 1
	*/
	virtual int Init( void );

	/**
	* loads the sprites
	* @return int: always 1
	*/
	virtual int VidInit( void );

	/**
	* draws the health bar
	* @return int: always 1
	*/
	virtual int Draw(float fTime);

	/**
	* handles health messages from the server and sets max health
	* @param const char *pszName: name of the message
	* @param int iSize: size of the message
	* @param void *pbuf: message buffer
	* @return int: always 1
	*/	
	int MsgFunc_Health(const char *pszName,  int iSize, void *pbuf);
	
	/**
	* handles max health messages from the server, and sets max health
	* @param const char *pszName: name of the message
	* @param int iSize: size of the message
	* @param void *pbuf: message buffer
	* @return int: always 1
	*/	
	int MsgFunc_MaxHealth(const char *pszName,  int iSize, void *pbuf);

	///health
	int m_iHealth;	
private:
	int m_iMaxHealth;
	int m_HUD_mainbar;
	int m_HUD_healthline;
	int m_HUD_lffront;
};