SBSPSS/source/fx/fxnrgbar.h

30 lines
560 B
C
Raw Normal View History

2001-05-31 00:05:41 +02:00
/******************/
/*** Energy Bar ***/
/******************/
2001-05-30 22:58:48 +02:00
2001-05-31 00:05:41 +02:00
#ifndef __FX_FX_NRG_BAR_HEADER__
#define __FX_FX_NRG_BAR_HEADER__
2001-05-30 22:58:48 +02:00
#include "fx/fx.h"
/*****************************************************************************/
2001-05-31 00:05:41 +02:00
class CFXNRGBar : public CFX
2001-05-30 22:58:48 +02:00
{
public:
2001-07-04 20:19:13 +02:00
/*virtual*/ void init(DVECTOR const &Pos);
/*virtual*/ void think(int _frames);
/*virtual*/ void render();
2001-05-30 22:58:48 +02:00
2001-05-31 00:05:41 +02:00
void SetMax(int Max) {MaxHealth=Max-1;}
bool alwaysThink() {return(true);}
2001-05-30 22:58:48 +02:00
protected:
2001-05-31 00:05:41 +02:00
int GfxW,GfxHalfW;
2001-05-30 22:58:48 +02:00
2001-05-31 00:05:41 +02:00
int MaxHealth;
int CurrentW,DrawW;
2001-05-30 22:58:48 +02:00
};
#endif