SBSPSS/source/fx/fxnrgbar.h
2001-07-16 16:09:16 +00:00

32 lines
570 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);
bool alwaysThink() {return(true);}
protected:
int GfxW,GfxHalfW;
int MaxHealth;
int CurrentHealth;
int Scale;
int XInc;
};
#endif