From 0cc3ab7c1ee21ea35ebe3ff17f641477dd34f9ec Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Fri, 28 Dec 2012 02:45:20 +0000 Subject: cPickup now uses full cItem, instead of a pointer git-svn-id: http://mc-server.googlecode.com/svn/trunk@1114 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Pickup.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source/Pickup.h') diff --git a/source/Pickup.h b/source/Pickup.h index 6c5979e13..17dc379a7 100644 --- a/source/Pickup.h +++ b/source/Pickup.h @@ -2,12 +2,13 @@ #pragma once #include "Entity.h" +#include "Item.h" + class cPlayer; -class cItem; @@ -23,13 +24,12 @@ class cPickup : public: CLASS_PROTODEF(cPickup); - cPickup(int a_X, int a_Y, int a_Z, const cItem & a_Item, float a_SpeedX = 0.f, float a_SpeedY = 0.f, float a_SpeedZ = 0.f); //tolua_export - ~cPickup(); //tolua_export + cPickup(int a_MicroPosX, int a_MicroPosY, int a_MicroPosZ, const cItem & a_Item, float a_SpeedX = 0.f, float a_SpeedY = 0.f, float a_SpeedZ = 0.f); //tolua_export virtual void Initialize(cWorld * a_World) override; - cItem * GetItem(void) {return m_Item; } //tolua_export - const cItem * GetItem(void) const {return m_Item; } + cItem & GetItem(void) {return m_Item; } //tolua_export + const cItem & GetItem(void) const {return m_Item; } virtual void SpawnOn(cClientHandle & a_ClientHandle) override; @@ -51,7 +51,7 @@ private: float m_Timer; - cItem* m_Item; + cItem m_Item; bool m_bCollected; }; //tolua_export -- cgit v1.2.3