summaryrefslogtreecommitdiffstats
path: root/src/game-server/testing.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2007-07-17 18:05:07 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2007-07-17 18:05:07 +0000
commit28010750064bdf3bc8aea36565d788d8a068ef2a (patch)
tree3b4cbe4889a041a634180af8f6474d3b6d3fb08f /src/game-server/testing.cpp
parent2359f42b667f9f0ac182bb1dccd26bd5c034717a (diff)
Implemented loading of warp and spawn areas from map files.
Diffstat (limited to 'src/game-server/testing.cpp')
-rw-r--r--src/game-server/testing.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/game-server/testing.cpp b/src/game-server/testing.cpp
index 31f26d6..01cb4e4 100644
--- a/src/game-server/testing.cpp
+++ b/src/game-server/testing.cpp
@@ -27,31 +27,13 @@ static void dropItem(MapComposite *map, int x, int y, int type)
void testingMap(MapComposite *map)
{
- static Rectangle rectA = { 56 * 32, 12 * 32, 5 * 32, 32 };
- static WarpAction warpA(MapManager::getMap(3), 44 * 32 + 16, 80 * 32 + 16);
- static Rectangle rectB = { 42 * 32, 88 * 32, 5 * 32, 32 };
- static WarpAction warpB(MapManager::getMap(1), 58 * 32 + 16, 17 * 32 + 16);
-
switch (map->getID())
{
case 1:
{
- // Create maggot spawn area
- Rectangle maggotSpawnRect = { 720, 900, 320, 320 };
- GameState::insert(new SpawnArea(map, MonsterManager::getMonster(1002), maggotSpawnRect));
-
- // Portal to map 3
- GameState::insert(new TriggerArea(map, rectA, &warpA));
-
// Drop some items
dropItem(map, 58 * 32 + 16, 20 * 32 + 16, 508);
dropItem(map, 58 * 32 + 16, 21 * 32 + 16, 524);
} break;
-
- case 3:
- {
- // Portal to map 1
- GameState::insert(new TriggerArea(map, rectB, &warpB));
- } break;
}
}