From 28010750064bdf3bc8aea36565d788d8a068ef2a Mon Sep 17 00:00:00 2001 From: Eugenio Favalli Date: Tue, 17 Jul 2007 18:05:07 +0000 Subject: Implemented loading of warp and spawn areas from map files. --- src/game-server/testing.cpp | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/game-server/testing.cpp') 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; } } -- cgit