2010-07-29 05:21:18 +00:00
|
|
|
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
|
|
|
|
|
2010-08-21 17:32:42 +00:00
|
|
|
#ifndef GAME_SERVER_ENTITY_DRAGGER_H
|
|
|
|
#define GAME_SERVER_ENTITY_DRAGGER_H
|
2010-07-29 05:21:18 +00:00
|
|
|
|
|
|
|
#include <game/server/entity.h>
|
|
|
|
|
|
|
|
class CCharacter;
|
|
|
|
|
2010-08-21 17:32:42 +00:00
|
|
|
class CDragger : public CEntity
|
2010-07-29 05:21:18 +00:00
|
|
|
{
|
|
|
|
vec2 core;
|
|
|
|
float strength;
|
|
|
|
int eval_tick;
|
|
|
|
void move();
|
|
|
|
void drag();
|
|
|
|
CCharacter *target;
|
|
|
|
bool nw;
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
2010-08-21 17:32:42 +00:00
|
|
|
CDragger(CGameWorld *pGameWorld, vec2 pos, float strength, bool nw=false);
|
2010-07-29 05:21:18 +00:00
|
|
|
|
|
|
|
virtual void Reset();
|
|
|
|
virtual void Tick();
|
|
|
|
virtual void Snap(int snapping_client);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|