DDNet documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
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::CGameWorld
friend CGameWorld
Definition
entity.h:17
CEntity::CEntity
CEntity(CGameWorld *pGameWorld, int Objtype, vec2 Pos=vec2(0, 0), int ProximityRadius=0)
Definition
entity.cpp:11
CGun::Reset
void Reset() override
Definition
gun.cpp:134
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:17
CGun::m_Core
vec2 m_Core
Definition
gun.h:24
CGun::Fire
void Fire()
Definition
gun.cpp:47
CGun::Tick
void Tick() override
Definition
gun.cpp:33
CGun::Snap
void Snap(int SnappingClient) override
Definition
gun.cpp:139
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
MAX_CLIENTS
@ MAX_CLIENTS
Definition
protocol.h:89
entity.h
vec2
vector2_base< float > vec2
Definition
vmath.h:168
src
game
server
entities
gun.h
Generated by
1.18.0