DDraceNetwork Docs
pickup.h
Go to the documentation of this file.
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
7
8class CPickup : public CEntity
9{
10public:
11 static const int ms_CollisionExtraSize = 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
23private:
24 int m_Type;
25 int m_Subtype;
26
27 // DDRace
28
29 void Move();
31};
32
33#endif
Definition: entity.h:13
Definition: gameworld.h:17
Definition: pickup.h:11
vec2 m_Core
Definition: pickup.h:32
void Snap(int SnappingClient) override
Definition: pickup.cpp:166
void Tick() override
void Move()
static const int ms_CollisionExtraSize
Definition: pickup.h:13
int Type() const
Definition: pickup.h:22
CPickup(CGameWorld *pGameWorld, int Id, const CPickupData *pPickup)
Definition: pickup.cpp:147
void TickPaused() override
Definition: pickup.cpp:162
void Reset() override
Definition: pickup.cpp:28
int m_Type
Definition: pickup.h:26
int m_Subtype
Definition: pickup.h:27
int Subtype() const
Definition: pickup.h:21