mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-08-19 21:19:55 +00:00
This untangles some of the gigantic kitchen sink headers in an attempt to split things into smaller files. Also don't include gl.h, glext.h, windows.h, and other such nonsense *everywhere*. Lots of cleanups on the way too. More dead/unused code removal. Remove incrFlag(), decrFlag() Lua functions.
35 lines
529 B
C++
35 lines
529 B
C++
#ifndef AQUARIA_BEAM_H
|
|
#define AQUARIA_BEAM_H
|
|
|
|
#include "Quad.h"
|
|
#include "Damage.h"
|
|
|
|
#include <list>
|
|
|
|
class Entity;
|
|
|
|
class Beam : public Quad
|
|
{
|
|
public:
|
|
Beam(Vector pos, float angle);
|
|
typedef std::list<Beam*> Beams;
|
|
static Beams beams;
|
|
|
|
static void killAllBeams();
|
|
|
|
float angle;
|
|
void trace();
|
|
Vector endPos;
|
|
DamageData damageData;
|
|
|
|
void setDamage(float dmg);
|
|
void setFirer(Entity *e);
|
|
void setBeamWidth(float w);
|
|
protected:
|
|
float beamWidth;
|
|
void onRender();
|
|
void onEndOfLife();
|
|
void onUpdate(float dt);
|
|
};
|
|
|
|
#endif
|