| 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() const { return m_IsCoreActive; } |
| 21 | |
| 22 | int Type() const { return m_Type; } |
| 23 | int Subtype() const { return m_Subtype; } |
| 24 | int Flags() const { return m_Flags; } |
| 25 | |
| 26 | private: |
| 27 | int m_Type; |
| 28 | int m_Subtype; |
| 29 | int m_Flags; |
| 30 | |
| 31 | // DDRace |
| 32 | |
| 33 | void Move(); |
| 34 | vec2 m_Core; |
| 35 | bool m_IsCoreActive; |
| 36 | }; |
| 37 | |
| 38 | #endif |
| 39 | |