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
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
CEntity
Definition:
entity.h:13
CGameWorld
Definition:
gameworld.h:17
CLight
Definition:
light.h:8
CLight::m_LengthL
int m_LengthL
Definition:
light.h:23
CLight::Step
void Step()
Definition:
light.cpp:72
CLight::m_EvalTick
int m_EvalTick
Definition:
light.h:13
CLight::m_Tick
int m_Tick
Definition:
light.h:15
CLight::m_CurveLength
int m_CurveLength
Definition:
light.h:22
CLight::m_AngularSpeed
float m_AngularSpeed
Definition:
light.h:24
CLight::m_Speed
int m_Speed
Definition:
light.h:25
CLight::CLight
CLight(CGameWorld *pGameWorld, vec2 Pos, float Rotation, int Length, int Layer=0, int Number=0)
Definition:
light.cpp:14
CLight::Move
void Move()
Definition:
light.cpp:45
CLight::m_Length
int m_Length
Definition:
light.h:26
CLight::m_Rotation
float m_Rotation
Definition:
light.h:9
CLight::Snap
void Snap(int SnappingClient) override
Definition:
light.cpp:104
CLight::m_To
vec2 m_To
Definition:
light.h:10
CLight::Tick
void Tick() override
Definition:
light.cpp:85
CLight::Reset
void Reset() override
Definition:
light.cpp:80
CLight::HitCharacter
bool HitCharacter()
Definition:
light.cpp:31
CLight::m_Core
vec2 m_Core
Definition:
light.h:11
vector2_base< float >
entity.h
src
game
server
entities
light.h
Generated by
1.9.4