2001-06-18 18:31:24 +02:00
|
|
|
/*************/
|
|
|
|
/*** Laser ***/
|
|
|
|
/*************/
|
2001-06-18 16:22:37 +02:00
|
|
|
|
2001-06-18 18:31:24 +02:00
|
|
|
#ifndef __FX_FX_LASER_HEADER__
|
|
|
|
#define __FX_FX_LASER_HEADER__
|
2001-06-18 16:22:37 +02:00
|
|
|
|
|
|
|
#include "fx/fx.h"
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
2001-06-18 18:31:24 +02:00
|
|
|
class CFXLaser : public CFX
|
2001-06-18 16:22:37 +02:00
|
|
|
{
|
|
|
|
public:
|
2001-06-18 18:31:24 +02:00
|
|
|
void init(DVECTOR const &Pos);
|
|
|
|
void think(int _frames);
|
|
|
|
void render();
|
2001-07-04 20:19:13 +02:00
|
|
|
/*virtual */int canCollide() {return true;}
|
|
|
|
/*virtual */int checkCollisionAgainst(CThing *_thisThing, int _frames);
|
2001-06-18 18:31:24 +02:00
|
|
|
|
|
|
|
void setOffset(DVECTOR &Pos);
|
|
|
|
void setTarget(DVECTOR &Pos);
|
|
|
|
|
|
|
|
void setRGB(u8 r,u8 g,u8 b) {R=r; G=g; B=g;}
|
2001-06-18 16:22:37 +02:00
|
|
|
|
|
|
|
protected:
|
2001-07-04 20:19:13 +02:00
|
|
|
/*virtual */void collidedWith(CThing *_thisThing);
|
2001-06-18 18:31:24 +02:00
|
|
|
DVECTOR Offset,Target;
|
|
|
|
u8 R,G,B;
|
2001-06-18 16:22:37 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|