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_CLIENT_PREDICTION_ENTITIES_PICKUP_H |
4 | #define GAME_CLIENT_PREDICTION_ENTITIES_PICKUP_H |
5 | |
6 | #include <game/client/prediction/entity.h> |
7 | |
8 | class CPickupData; |
9 | |
10 | class CPickup : public CEntity |
11 | { |
12 | public: |
13 | static const int = 6; |
14 | |
15 | void Tick() override; |
16 | |
17 | CPickup(CGameWorld *pGameWorld, int Id, const CPickupData *pPickup); |
18 | void FillInfo(CNetObj_Pickup *pPickup); |
19 | bool Match(CPickup *pPickup); |
20 | bool InDDNetTile() { return m_IsCoreActive; } |
21 | |
22 | int Type() const { return m_Type; } |
23 | int Subtype() const { return m_Subtype; } |
24 | |
25 | private: |
26 | int m_Type; |
27 | int m_Subtype; |
28 | |
29 | // DDRace |
30 | |
31 | void Move(); |
32 | vec2 m_Core; |
33 | bool m_IsCoreActive; |
34 | }; |
35 | |
36 | #endif |
37 | |