This commit is contained in:
parent
ce29157159
commit
bb75321b06
48
source/fx/fxfallingtile.cpp
Normal file
48
source/fx/fxfallingtile.cpp
Normal file
@ -0,0 +1,48 @@
|
||||
/**************************/
|
||||
/*** Emitter Base Class ***/
|
||||
/**************************/
|
||||
|
||||
#include "system\global.h"
|
||||
#include <DStructs.h>
|
||||
#include "utils\utils.h"
|
||||
#include "gfx\prim.h"
|
||||
#include "gfx\sprbank.h"
|
||||
#include <sprites.h>
|
||||
#include "level\level.h"
|
||||
|
||||
#include "FX\FXemit.h"
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/*****************************************************************************/
|
||||
/*****************************************************************************/
|
||||
void CFXEmitter::init()
|
||||
{
|
||||
CFX::init();
|
||||
// ParticleList=MemAlloc(Count);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
void CFXEmitter::shutdown()
|
||||
{
|
||||
MemFree(ParticleList);
|
||||
CFX::shutdown();
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
/*****************************************************************************/
|
||||
/*** Think *******************************************************************/
|
||||
/*****************************************************************************/
|
||||
void CFXEmitter::think(int _frames)
|
||||
{
|
||||
// ASSERT(FXList);
|
||||
CFX::think(_frames);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/*** Render ******************************************************************/
|
||||
/*****************************************************************************/
|
||||
void CFXEmitter::render()
|
||||
{
|
||||
}
|
37
source/fx/fxfallingtile.h
Normal file
37
source/fx/fxfallingtile.h
Normal file
@ -0,0 +1,37 @@
|
||||
/**************************/
|
||||
/*** Emitter Base Class ***/
|
||||
/**************************/
|
||||
|
||||
#ifndef __FX_FX_EMITTER_HEADER__
|
||||
#define __FX_FX_EMITTER_HEADER__
|
||||
|
||||
#include "fx/fx.h"
|
||||
|
||||
/*****************************************************************************/
|
||||
class CFXParticle;
|
||||
class CFXEmitter : public CFX
|
||||
{
|
||||
public:
|
||||
|
||||
virtual void init();
|
||||
virtual void shutdown();
|
||||
virtual void think(int _frames);
|
||||
virtual void render();
|
||||
|
||||
protected:
|
||||
|
||||
CFXParticle *ParticleList;
|
||||
};
|
||||
|
||||
/*****************************************************************************/
|
||||
class CFXParticle : public CFX
|
||||
{
|
||||
public:
|
||||
virtual void init();
|
||||
virtual void shutdown();
|
||||
virtual void think(int _frames);
|
||||
virtual void render();
|
||||
|
||||
protected:
|
||||
};
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user