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 | |
8 | class CPickup : public CEntity |
9 | { |
10 | public: |
11 | static const int = 6; |
12 | |
13 | CPickup(CGameWorld *pGameWorld, int Type, int SubType = 0, int Layer = 0, int Number = 0); |
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 | |
23 | private: |
24 | int m_Type; |
25 | int m_Subtype; |
26 | |
27 | // DDRace |
28 | |
29 | void Move(); |
30 | vec2 m_Core; |
31 | }; |
32 | |
33 | #endif |
34 | |