This commit is contained in:
Daveo 2001-05-23 19:28:42 +00:00
parent c2acc2910e
commit 4efbe15f51
4 changed files with 237 additions and 0 deletions

40
source/fx/fxbasetrail.h Normal file
View file

@ -0,0 +1,40 @@
/***********************/
/*** Trail Base Class ***/
/***********************/
#ifndef __FX_FX_TRAIL_HEADER__
#define __FX_FX_TRAIL_HEADER__
#include "fx/fx.h"
/*****************************************************************************/
class CFXTrail : 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