SBSPSS/source/fx/fxnrgbar.h
2001-05-30 22:05:41 +00:00

31 lines
574 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 shutdown();
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