This commit is contained in:
Daveo 2001-07-05 14:52:09 +00:00
parent 5ab91cdcda
commit 55551ddcad
2 changed files with 239 additions and 0 deletions

31
source/fx/fxzzzz.h Normal file
View file

@ -0,0 +1,31 @@
/*************/
/*** Laser ***/
/*************/
#ifndef __FX_FX_LASER_HEADER__
#define __FX_FX_LASER_HEADER__
#include "fx/fx.h"
/*****************************************************************************/
class CFXLaser : public CFX
{
public:
void init(DVECTOR const &Pos);
void think(int _frames);
void render();
/*virtual */int canCollide() {return true;}
/*virtual */int checkCollisionAgainst(CThing *_thisThing, int _frames);
void setOffset(DVECTOR &Pos);
void setTarget(DVECTOR &Pos);
void setRGB(u8 r,u8 g,u8 b) {R=r; G=g; B=g;}
protected:
/*virtual */void collidedWith(CThing *_thisThing);
DVECTOR Offset,Target;
u8 R,G,B;
};
#endif