mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-14 20:18:19 +00:00
3be8a592e5
Purely automatic change. In case of conflict with this change, apply the other change and rerun the formatting to restore it: $ python scripts/fix_style.py
31 lines
588 B
C++
31 lines
588 B
C++
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
|
|
|
|
#ifndef GAME_SERVER_ENTITIES_GUN_H
|
|
#define GAME_SERVER_ENTITIES_GUN_H
|
|
|
|
#include <game/gamecore.h>
|
|
#include <game/server/entity.h>
|
|
|
|
class CCharacter;
|
|
|
|
class CGun : public CEntity
|
|
{
|
|
int m_EvalTick;
|
|
|
|
vec2 m_Core;
|
|
bool m_Freeze;
|
|
bool m_Explosive;
|
|
|
|
void Fire();
|
|
int m_LastFire;
|
|
|
|
public:
|
|
CGun(CGameWorld *pGameWorld, vec2 Pos, bool Freeze, bool Explosive, int Layer = 0, int Number = 0);
|
|
|
|
virtual void Reset();
|
|
virtual void Tick();
|
|
virtual void Snap(int SnappingClient);
|
|
};
|
|
|
|
#endif // GAME_SERVER_ENTITIES_GUN_H
|