mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-14 03:58:18 +00:00
583d6e6c01
while IFS= read -r line; do file=${line%%:*}; lineno=$(echo $line | cut -d':' -f2); echo "Treating $file line $lineno"; sed -i -e "${lineno}s/virtual //" -e "${lineno}s/);\$/) override;/" -e "${lineno}s/)\$/) override/" -e "${lineno}s/const\$/const override/" -e "${lineno}s/) {/) override {/" -e "${lineno}s/) const {/) const override {/" -e "${lineno}s/const;$/const override;/" "$file"; done < a
30 lines
664 B
C++
30 lines
664 B
C++
/* (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_SERVER_ENTITIES_PICKUP_H
|
|
#define GAME_SERVER_ENTITIES_PICKUP_H
|
|
|
|
#include <game/server/entity.h>
|
|
|
|
class CPickup : public CEntity
|
|
{
|
|
public:
|
|
CPickup(CGameWorld *pGameWorld, int Type, int SubType = 0, int Layer = 0, int Number = 0);
|
|
|
|
void Reset() override;
|
|
void Tick() override;
|
|
void TickPaused() override;
|
|
void Snap(int SnappingClient) override;
|
|
|
|
private:
|
|
int m_Type;
|
|
int m_Subtype;
|
|
//int m_SpawnTick;
|
|
|
|
// DDRace
|
|
|
|
void Move();
|
|
vec2 m_Core;
|
|
};
|
|
|
|
#endif
|