1 | /* (c) Shereef Marzouk. See "licence DDRace.txt" and the readme.txt in the root of the distribution for more information. */ |
2 | #ifndef GAME_SERVER_ENTITIES_LIGHT_H |
3 | #define GAME_SERVER_ENTITIES_LIGHT_H |
4 | |
5 | #include <game/server/entity.h> |
6 | |
7 | class CLight : public CEntity |
8 | { |
9 | float m_Rotation; |
10 | vec2 m_To; |
11 | vec2 m_Core; |
12 | |
13 | int m_EvalTick; |
14 | |
15 | int m_Tick; |
16 | |
17 | bool HitCharacter(); |
18 | void Move(); |
19 | void Step(); |
20 | |
21 | public: |
22 | int m_CurveLength; |
23 | int m_LengthL; |
24 | float m_AngularSpeed; |
25 | int m_Speed; |
26 | int m_Length; |
27 | |
28 | CLight(CGameWorld *pGameWorld, vec2 Pos, float Rotation, int Length, |
29 | int Layer = 0, int Number = 0); |
30 | |
31 | void Reset() override; |
32 | void Tick() override; |
33 | void Snap(int SnappingClient) override; |
34 | }; |
35 | |
36 | #endif // GAME_SERVER_ENTITIES_LIGHT_H |
37 | |