SBSPSS/source/fx/fxbasetrail.h
2001-05-23 20:00:25 +00:00

41 lines
694 B
C++

/***********************/
/*** Trail Base Class ***/
/***********************/
#ifndef __FX_FX_BASE_TRAIL_HEADER__
#define __FX_FX_BASE_TRAIL_HEADER__
#include "fx/fx.h"
/*****************************************************************************/
class CFXBaseTrail : public CFX
{
public:
struct sList
{
u16 Frame;
u16 Scale,Angle;
DVECTOR Ofs,Vel;
s16 Shade; // Acts as life
};
enum
{
LIST_SIZE = 16
};
virtual void init(DVECTOR const &Pos);
virtual void shutdown();
virtual void think(int _frames);
virtual void render();
virtual sList &moveHead();
protected:
sList List[LIST_SIZE];
s16 ListCount;
s16 HeadIdx;
u16 Trans;
};
#endif