summaryrefslogtreecommitdiff
path: root/src/net/tmwa/inventoryhandler.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-14 21:41:38 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-14 21:41:38 +0300
commit1884c7ebfce2f9a2723da41be09cde5e7e14938e (patch)
treebd0ca87ffdacdb97af37eaf2fcdd835f7ebe877e /src/net/tmwa/inventoryhandler.h
parent91a0b8f7e497be66225e0e24679bb515daefe7cf (diff)
downloadmanaverse-1884c7ebfce2f9a2723da41be09cde5e7e14938e.tar.gz
manaverse-1884c7ebfce2f9a2723da41be09cde5e7e14938e.tar.bz2
manaverse-1884c7ebfce2f9a2723da41be09cde5e7e14938e.tar.xz
manaverse-1884c7ebfce2f9a2723da41be09cde5e7e14938e.zip
Stop protected pickups flood.
Diffstat (limited to 'src/net/tmwa/inventoryhandler.h')
-rw-r--r--src/net/tmwa/inventoryhandler.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/net/tmwa/inventoryhandler.h b/src/net/tmwa/inventoryhandler.h
index c91fb01f7..5f674eab0 100644
--- a/src/net/tmwa/inventoryhandler.h
+++ b/src/net/tmwa/inventoryhandler.h
@@ -35,6 +35,7 @@
#include "net/tmwa/messagehandler.h"
#include <list>
+#include <queue>
#ifdef __GNUC__
#define _UNUSED_ __attribute__ ((unused))
@@ -170,11 +171,17 @@ class InventoryHandler : public MessageHandler, public Net::InventoryHandler
int convertFromServerSlot(int serverSlot);
+ void pushPickup(int floorId)
+ { mSentPickups.push(floorId); }
+
private:
EquipBackend mEquips;
InventoryItems mInventoryItems;
Inventory *mStorage;
InventoryWindow *mStorageWindow;
+
+ typedef std::queue<int> PickupQueue;
+ PickupQueue mSentPickups;
};
} // namespace TmwAthena