DDraceNetwork Documentation
Loading...
Searching...
No Matches
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
friend CGameWorld
Definition entity.h:17
CEntity(CGameWorld *pGameWorld, int Objtype, vec2 Pos=vec2(0, 0), int ProximityRadius=0)
Definition entity.cpp:11
int m_LengthL
Definition light.h:23
void Step()
Definition light.cpp:73
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:15
void Move()
Definition light.cpp:46
int m_Length
Definition light.h:26
float m_Rotation
Definition light.h:9
void Snap(int SnappingClient) override
Definition light.cpp:99
vec2 m_To
Definition light.h:10
void Tick() override
Definition light.cpp:86
void Reset() override
Definition light.cpp:81
bool HitCharacter()
Definition light.cpp:32
vec2 m_Core
Definition light.h:11
vector2_base< float > vec2
Definition vmath.h:161