DDraceNetwork Docs
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
7
22class CGun : public CEntity
23{
30
31 void Fire();
32
33public:
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
Definition: entity.h:13
Definition: gameworld.h:17
Definition: gun.h:23
void Reset() override
Definition: gun.cpp:141
int m_aLastFireTeam[MAX_CLIENTS]
Definition: gun.h:28
CGun(CGameWorld *pGameWorld, vec2 Pos, bool Freeze, bool Explosive, int Layer=0, int Number=0)
Definition: gun.cpp:16
vec2 m_Core
Definition: gun.h:24
void Fire()
Definition: gun.cpp:51
void Tick() override
Definition: gun.cpp:32
void Snap(int SnappingClient) override
Definition: gun.cpp:146
int m_aLastFireSolo[MAX_CLIENTS]
Definition: gun.h:29
bool m_Freeze
Definition: gun.h:25
bool m_Explosive
Definition: gun.h:26
int m_EvalTick
Definition: gun.h:27
@ MAX_CLIENTS
Definition: protocol.h:88