SBSPSS/source/fx/fxnrgbar.h
2001-07-04 18:19:13 +00:00

30 lines
560 B
C++

/******************/
/*** Energy Bar ***/
/******************/
#ifndef __FX_FX_NRG_BAR_HEADER__
#define __FX_FX_NRG_BAR_HEADER__
#include "fx/fx.h"
/*****************************************************************************/
class CFXNRGBar : public CFX
{
public:
/*virtual*/ void init(DVECTOR const &Pos);
/*virtual*/ void think(int _frames);
/*virtual*/ void render();
void SetMax(int Max) {MaxHealth=Max-1;}
bool alwaysThink() {return(true);}
protected:
int GfxW,GfxHalfW;
int MaxHealth;
int CurrentW,DrawW;
};
#endif