This commit is contained in:
parent
f5d2227ceb
commit
f12eac8885
2 changed files with 239 additions and 0 deletions
31
source/fx/fxtvexplode.h
Normal file
31
source/fx/fxtvexplode.h
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue