2019-04-11 22:46:54 +00:00
|
|
|
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
|
|
|
|
/* If you are missing that file, acquire a complete release at teeworlds.com. */
|
|
|
|
#ifndef GAME_CLIENT_PREDICTION_ENTITIES_PICKUP_H
|
|
|
|
#define GAME_CLIENT_PREDICTION_ENTITIES_PICKUP_H
|
|
|
|
|
|
|
|
#include <game/client/prediction/entity.h>
|
|
|
|
|
|
|
|
class CPickup : public CEntity
|
|
|
|
{
|
|
|
|
public:
|
2022-05-17 20:13:44 +00:00
|
|
|
void Tick() override;
|
2019-04-11 22:46:54 +00:00
|
|
|
|
2021-09-19 12:14:00 +00:00
|
|
|
CPickup(CGameWorld *pGameWorld, int ID, CNetObj_Pickup *pPickup, const CNetObj_EntityEx *pEntEx = 0);
|
2019-04-13 23:34:15 +00:00
|
|
|
void FillInfo(CNetObj_Pickup *pPickup);
|
|
|
|
bool Match(CPickup *pPickup);
|
2021-05-27 07:45:41 +00:00
|
|
|
bool InDDNetTile() { return m_IsCoreActive; }
|
2019-04-11 22:46:54 +00:00
|
|
|
|
2019-04-13 23:34:15 +00:00
|
|
|
private:
|
2019-04-11 22:46:54 +00:00
|
|
|
int m_Type;
|
|
|
|
int m_Subtype;
|
|
|
|
|
|
|
|
// DDRace
|
|
|
|
|
|
|
|
void Move();
|
|
|
|
vec2 m_Core;
|
2021-05-27 07:45:41 +00:00
|
|
|
bool m_IsCoreActive;
|
2019-04-11 22:46:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|