DDraceNetwork Docs
light.h
Go to the documentation of this file.
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
6
7class CLight : public CEntity
8{
9 float m_Rotation;
12
14
15 int m_Tick;
16
17 bool HitCharacter();
18 void Move();
19 void Step();
20
21public:
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
Definition: entity.h:13
Definition: gameworld.h:17
Definition: light.h:8
int m_LengthL
Definition: light.h:23
void Step()
Definition: light.cpp:72
int m_EvalTick
Definition: light.h:13
int m_Tick
Definition: light.h:15
int m_CurveLength
Definition: light.h:22
float m_AngularSpeed
Definition: light.h:24
int m_Speed
Definition: light.h:25
CLight(CGameWorld *pGameWorld, vec2 Pos, float Rotation, int Length, int Layer=0, int Number=0)
Definition: light.cpp:14
void Move()
Definition: light.cpp:45
int m_Length
Definition: light.h:26
float m_Rotation
Definition: light.h:9
void Snap(int SnappingClient) override
Definition: light.cpp:104
vec2 m_To
Definition: light.h:10
void Tick() override
Definition: light.cpp:85
void Reset() override
Definition: light.cpp:80
bool HitCharacter()
Definition: light.cpp:31
vec2 m_Core
Definition: light.h:11