ddnet/src/game/server/entities/gun.h

32 lines
494 B
C
Raw Normal View History

/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
#ifndef CGun_TYPE
#define CGun_TYPE
#include <game/server/entity.h>
#include <game/gamecore.h>
class CCharacter;
class CGun : public CEntity
{
int m_EvalTick;
vec2 m_Core;
2010-10-04 07:45:10 +00:00
bool m_Freeze;
bool m_Explosive;
void Fire();
int m_Delay;
public:
2010-10-04 07:45:10 +00:00
CGun(CGameWorld *pGameWorld, vec2 Pos, bool Freeze, bool Explosive);
virtual void Reset();
virtual void Tick();
virtual void Snap(int SnappingClient);
};
#endif