summaryrefslogtreecommitdiff
path: root/src/game-server/testing.cpp
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-01-03 22:34:40 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-01-03 22:34:40 +0000
commit36eb5ac7f856dc83242837738eb18cfd9039352f (patch)
tree89ebfae081d2207e68dc04b52e4558b3a316834f /src/game-server/testing.cpp
parent282ca19e33b79f4468ce6402406ddb1397f2d115 (diff)
downloadmanaserv-36eb5ac7f856dc83242837738eb18cfd9039352f.tar.gz
manaserv-36eb5ac7f856dc83242837738eb18cfd9039352f.tar.bz2
manaserv-36eb5ac7f856dc83242837738eb18cfd9039352f.tar.xz
manaserv-36eb5ac7f856dc83242837738eb18cfd9039352f.zip
Added a Xmas cake: the server now supports items on floor.
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: