SBSPSS/source/game/healthman.h

55 lines
900 B
C
Raw Normal View History

2001-06-14 23:08:42 +02:00
/******************************/
/*** Health throw out stuff ***/
/******************************/
2001-06-14 17:28:07 +02:00
2001-06-14 23:08:42 +02:00
#ifndef __GAME_HEALTH_MANAGER_H__
#define __GAME_HEALTH_MANAGER_H__
2001-06-14 17:28:07 +02:00
2001-06-14 23:08:42 +02:00
/*****************************************************************************/
class CPlayer;
class CHealthManager
2001-06-14 17:28:07 +02:00
{
public:
2001-06-14 23:08:42 +02:00
enum
{
ITEM_MAX = 160,
};
struct sItemTable
{
u16 Count;
u16 Life;
u8 R,G,B;
};
struct sItem
{
VECTOR Pos;
VECTOR Vel;
DVECTOR ScrPos;
u16 Life;
u16 Count;
TSPRT Sprite;
};
void init();
void shutdown();
void drop(DVECTOR &Pos,int Amount,int Vel);
void checkPlayerCol(CPlayer *Thing);
void think(int frames);
void render();
protected:
void addItem(DVECTOR &Pos,int TableIdx,int Angle,int Vel);
sItem ItemList[ITEM_MAX];
sFrameHdr *FrameHdr;
static sItemTable ItemTable[];
static const int ItemTableSize;
2001-06-14 17:28:07 +02:00
};
2001-06-14 23:08:42 +02:00
#endif