mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-11 02:28:18 +00:00
3580547297
Signed-off-by: GreYFoXGTi <GreYFoXGTi@GMaiL.CoM>
30 lines
521 B
C++
30 lines
521 B
C++
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
|
|
|
|
#ifndef GAME_SERVER_ENTITY_DRAGGER_H
|
|
#define GAME_SERVER_ENTITY_DRAGGER_H
|
|
|
|
#include <game/server/entity.h>
|
|
|
|
class CCharacter;
|
|
|
|
class CDragger : public CEntity
|
|
{
|
|
vec2 core;
|
|
float strength;
|
|
int eval_tick;
|
|
void move();
|
|
void drag();
|
|
CCharacter *target;
|
|
bool nw;
|
|
public:
|
|
|
|
|
|
CDragger(CGameWorld *pGameWorld, vec2 pos, float strength, bool nw=false);
|
|
|
|
virtual void Reset();
|
|
virtual void Tick();
|
|
virtual void Snap(int snapping_client);
|
|
};
|
|
|
|
#endif
|