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
gun.h
Go to the documentation of this file.
1
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
2
3
#ifndef GAME_SERVER_ENTITIES_GUN_H
4
#define GAME_SERVER_ENTITIES_GUN_H
5
6
#include <
game/server/entity.h
>
7
22
class
CGun
:
public
CEntity
23
{
24
vec2
m_Core
;
25
bool
m_Freeze
;
26
bool
m_Explosive
;
27
int
m_EvalTick
;
28
int
m_aLastFireTeam
[
MAX_CLIENTS
];
29
int
m_aLastFireSolo
[
MAX_CLIENTS
];
30
31
void
Fire
();
32
33
public
:
34
CGun
(
CGameWorld
*pGameWorld,
vec2
Pos,
bool
Freeze,
bool
Explosive,
int
Layer = 0,
int
Number = 0);
35
36
void
Reset
()
override
;
37
void
Tick
()
override
;
38
void
Snap
(
int
SnappingClient)
override
;
39
};
40
41
#endif
// GAME_SERVER_ENTITIES_GUN_H
CEntity
Definition:
entity.h:13
CGameWorld
Definition:
gameworld.h:18
CGun
Definition:
gun.h:23
CGun::Reset
void Reset() override
Definition:
gun.cpp:136
CGun::m_aLastFireTeam
int m_aLastFireTeam[MAX_CLIENTS]
Definition:
gun.h:28
CGun::CGun
CGun(CGameWorld *pGameWorld, vec2 Pos, bool Freeze, bool Explosive, int Layer=0, int Number=0)
Definition:
gun.cpp:16
CGun::m_Core
vec2 m_Core
Definition:
gun.h:24
CGun::Fire
void Fire()
Definition:
gun.cpp:46
CGun::Tick
void Tick() override
Definition:
gun.cpp:32
CGun::Snap
void Snap(int SnappingClient) override
Definition:
gun.cpp:141
CGun::m_aLastFireSolo
int m_aLastFireSolo[MAX_CLIENTS]
Definition:
gun.h:29
CGun::m_Freeze
bool m_Freeze
Definition:
gun.h:25
CGun::m_Explosive
bool m_Explosive
Definition:
gun.h:26
CGun::m_EvalTick
int m_EvalTick
Definition:
gun.h:27
vector2_base< float >
MAX_CLIENTS
@ MAX_CLIENTS
Definition:
protocol.h:88
entity.h
src
game
server
entities
gun.h
Generated by
1.9.4