2010-11-20 10:37:14 +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. */
|
2010-05-29 07:25:38 +00:00
|
|
|
#ifndef GAME_SERVER_ENTITIES_PICKUP_H
|
|
|
|
#define GAME_SERVER_ENTITIES_PICKUP_H
|
|
|
|
|
|
|
|
#include <game/server/entity.h>
|
|
|
|
|
|
|
|
class CPickup : public CEntity
|
|
|
|
{
|
|
|
|
public:
|
2010-11-13 13:22:19 +00:00
|
|
|
CPickup(CGameWorld *pGameWorld, int Type, int SubType = 0, int Layer = 0, int Number = 0);
|
2011-04-13 18:37:12 +00:00
|
|
|
|
2022-05-17 20:13:44 +00:00
|
|
|
void Reset() override;
|
|
|
|
void Tick() override;
|
|
|
|
void TickPaused() override;
|
|
|
|
void Snap(int SnappingClient) override;
|
2011-04-13 18:37:12 +00:00
|
|
|
|
2010-05-29 07:25:38 +00:00
|
|
|
private:
|
|
|
|
int m_Type;
|
|
|
|
int m_Subtype;
|
2010-07-29 05:21:18 +00:00
|
|
|
//int m_SpawnTick;
|
2011-04-09 06:41:31 +00:00
|
|
|
|
|
|
|
// DDRace
|
|
|
|
|
|
|
|
void Move();
|
2010-07-29 05:21:18 +00:00
|
|
|
vec2 m_Core;
|
2010-05-29 07:25:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|