DDraceNetwork Docs
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
a
c
d
e
f
g
i
m
n
p
r
s
t
v
w
x
Functions
Variables
d
f
g
m
x
Typedefs
Enumerator
a
c
e
f
g
i
m
n
p
r
s
t
v
w
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Typedefs
c
f
i
p
s
t
v
w
Enumerations
c
e
m
r
v
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Related Functions
c
i
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Variables
_
a
b
c
d
f
g
i
l
m
n
p
r
s
t
u
v
x
Typedefs
a
b
c
d
e
f
g
h
i
j
n
o
p
s
t
u
v
w
Enumerations
c
d
e
h
i
l
t
w
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Macros
_
a
b
c
d
e
f
g
h
i
l
m
n
p
r
s
t
u
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
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:18
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:98
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