summaryrefslogtreecommitdiff
path: root/src/game-server/testing.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game-server/testing.cpp')
-rw-r--r--src/game-server/testing.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/game-server/testing.cpp b/src/game-server/testing.cpp
index e580694d..2565f3ec 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 <cassert>
+
#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: