1/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
2/* If you are missing that file, acquire a complete release at teeworlds.com. */
3#ifndef GAME_SERVER_ENTITIES_PICKUP_H
4#define GAME_SERVER_ENTITIES_PICKUP_H
5
6#include <game/server/entity.h>
7
8class CPickup : public CEntity
9{
10public:
11 static const int ms_CollisionExtraSize = 6;
12
13 CPickup(CGameWorld *pGameWorld, int Type, int SubType, int Layer, int Number, int Flags);
14
15 void Reset() override;
16 void Tick() override;
17 void TickPaused() override;
18 void Snap(int SnappingClient) override;
19
20 int Type() const { return m_Type; }
21 int Subtype() const { return m_Subtype; }
22
23private:
24 int m_Type;
25 int m_Subtype;
26 int m_Flags;
27
28 // DDRace
29
30 void Move();
31 vec2 m_Core;
32};
33
34#endif
35