mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-11 10:38:20 +00:00
29 lines
422 B
C
29 lines
422 B
C
|
/* 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 eval_tick;
|
||
|
|
||
|
vec2 core;
|
||
|
|
||
|
void fire();
|
||
|
int DELAY;
|
||
|
|
||
|
public:
|
||
|
CGun(CGameWorld *pGameWorld, vec2 pos);
|
||
|
|
||
|
virtual void Reset();
|
||
|
virtual void Tick();
|
||
|
virtual void Snap(int SnappingClient);
|
||
|
};
|
||
|
|
||
|
|
||
|
#endif
|