SBSPSS/source/fx/fxnrgbar.h

31 lines
574 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:
virtual void init(DVECTOR const &Pos);
virtual void shutdown();
virtual void think(int _frames);
virtual void render();
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