fixed editor zooming if gui is not active
[twcon.git] / src / game / server / entities / laser.h
blob1d7fa227117201ed4fb46812b09e6806a6d3f6ce
1 /* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
2 /* If you are missing that file, acquire a complete release at teeworlds.com. */
3 #ifndef GAME_SERVER_ENTITIES_LASER_H
4 #define GAME_SERVER_ENTITIES_LASER_H
6 #include <game/server/entity.h>
8 class CLaser : public CEntity
10 public:
11 CLaser(CGameWorld *pGameWorld, vec2 Pos, vec2 Direction, float StartEnergy, int Owner);
13 virtual void Reset();
14 virtual void Tick();
15 virtual void Snap(int SnappingClient);
17 protected:
18 bool HitCharacter(vec2 From, vec2 To);
19 void DoBounce();
21 private:
22 vec2 m_From;
23 vec2 m_Dir;
24 float m_Energy;
25 int m_Bounces;
26 int m_EvalTick;
27 int m_Owner;
30 #endif