From 36eb5ac7f856dc83242837738eb18cfd9039352f Mon Sep 17 00:00:00 2001 From: Guillaume Melquiond Date: Wed, 3 Jan 2007 22:34:40 +0000 Subject: Added a Xmas cake: the server now supports items on floor. --- src/game-server/testing.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/game-server/testing.cpp') diff --git a/src/game-server/testing.cpp b/src/game-server/testing.cpp index e580694..2565f3e 100644 --- a/src/game-server/testing.cpp +++ b/src/game-server/testing.cpp @@ -2,7 +2,10 @@ to the game. It should be removed once all the related managers have been implemented. There are no headers for this file on purpose. */ +#include + #include "controller.h" +#include "game-server/itemmanager.hpp" #include "game-server/state.hpp" #include "game-server/trigger.hpp" @@ -27,6 +30,13 @@ void testingMap(int id) being->setPosition(pos); gameState->insert(being); } + ItemClass *ic = itemManager->getItem(508); + assert(ic); + Item *i = new Item(ic); + i->setMapId(1); + Point pos = { 58 * 32 + 16, 20 * 32 + 16 }; + i->setPosition(pos); + gameState->insert(i); } break; case 3: -- cgit