1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-08-19 21:19:55 +00:00
Aquaria/Aquaria/Beam.h
fgenesis 8472718fb7 Major include refactor; changes to pretty much everything
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.
2016-07-09 04:18:40 +02:00

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