summaryrefslogtreecommitdiff
path: root/src/game-server/testing.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <crush@themanaworld.org>2009-02-10 14:45:26 +0100
committerPhilipp Sehmisch <crush@themanaworld.org>2009-02-10 14:58:59 +0100
commit08b15ca37fd6cb658a873b36115f2c78be29e272 (patch)
tree8c26fb9015e0a04659e6213ac7097eb853026d90 /src/game-server/testing.cpp
parentef5d6d3c0c8c35aabc0ee208572d95b7d1838147 (diff)
downloadmanaserv-08b15ca37fd6cb658a873b36115f2c78be29e272.tar.gz
manaserv-08b15ca37fd6cb658a873b36115f2c78be29e272.tar.bz2
manaserv-08b15ca37fd6cb658a873b36115f2c78be29e272.tar.xz
manaserv-08b15ca37fd6cb658a873b36115f2c78be29e272.zip
Removed testing.cpp because all of its functionality can now be covered by LUA scripts
Diffstat (limited to 'src/game-server/testing.cpp')
-rw-r--r--src/game-server/testing.cpp36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/game-server/testing.cpp b/src/game-server/testing.cpp
deleted file mode 100644
index 4828df40..00000000
--- a/src/game-server/testing.cpp
+++ /dev/null
@@ -1,36 +0,0 @@
-/* This file is for testing purpose only. It hardcodes some events related
- 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 "game-server/gamehandler.hpp"
-#include "game-server/item.hpp"
-#include "game-server/itemmanager.hpp"
-#include "game-server/mapcomposite.hpp"
-#include "game-server/state.hpp"
-#include "scripting/script.hpp"
-
-static void dropItem(MapComposite *map, int x, int y, int type)
-{
- ItemClass *ic = ItemManager::getItem(type);
- assert(ic);
- Item *i = new Item(ic, 1);
- i->setMap(map);
- Point pos(x, y);
- i->setPosition(pos);
- GameState::insertSafe(i);
-}
-
-void testingMap(MapComposite *map)
-{
- switch (map->getID())
- {
- case 1:
- {
- // Drop some items.
- dropItem(map, 58 * 32 + 16, 20 * 32 + 16, 508);
- dropItem(map, 58 * 32 + 16, 21 * 32 + 16, 524);
- } break;
- }
-}