mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-11 02:28:18 +00:00
30 lines
558 B
C++
30 lines
558 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>
|
|
#include <list>
|
|
class CCharacter;
|
|
|
|
class CDragger : public CEntity
|
|
{
|
|
vec2 m_Core;
|
|
float m_Strength;
|
|
int m_EvalTick;
|
|
void Move();
|
|
void Drag();
|
|
std::list<CCharacter *> m_Targets;
|
|
bool m_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
|