From a420eb543f8206730aebb80e60a625f7204694e4 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Thu, 14 Aug 2008 18:25:44 +0000 Subject: moved alot of stuff to their own cpp/hpp files --- src/game/server/entities/pickup.hpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/game/server/entities/pickup.hpp (limited to 'src/game/server/entities/pickup.hpp') diff --git a/src/game/server/entities/pickup.hpp b/src/game/server/entities/pickup.hpp new file mode 100644 index 00000000..cd480d92 --- /dev/null +++ b/src/game/server/entities/pickup.hpp @@ -0,0 +1,24 @@ +/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */ + +#ifndef GAME_SERVER_ENTITY_PICKUP_H +#define GAME_SERVER_ENTITY_PICKUP_H + +#include + +// TODO: move to seperate file +class PICKUP : public ENTITY +{ +public: + static const int phys_size = 14; + + int type; + int subtype; // weapon type for instance? + int spawntick; + PICKUP(int _type, int _subtype = 0); + + virtual void reset(); + virtual void tick(); + virtual void snap(int snapping_client); +}; + +#endif -- cgit 1.4.1