Example #1
0
        static void InitMap(ref Map map)
        {
            // Add locations with their coordinates to this list.
            Forest forest = new Forest("Black Forest");

            map.AddLocation(forest, 3, 2);
            map.AddLocation(forest, 4, 2);
            map.AddLocation(forest, 1, 4);
            Cliff cliff = new Cliff("Rockface");

            map.AddLocation(cliff, 1, 5);
            Church church = new Church("Old Chapel");

            map.AddLocation(church, 3, 4);
            Swamp swamp = new Swamp("Bog");

            map.AddLocation(swamp, 4, 1);
            Town town = new Town("Skyrim");

            map.AddLocation(town, 2, 2);
            Ravine ravine = new Ravine("High pass");

            map.AddLocation(ravine, 1, 2);
            Lake lake = new Lake("");

            map.AddLocation(lake, 0, 2);
            Tomb tomb = new Tomb("");

            map.AddLocation(tomb, 4, 3);
            Road road = new Road("");

            map.AddLocation(road, 2, 1);
            map.AddLocation(road, 2, 0);
            map.AddLocation(road, 2, 3);
            map.AddLocation(road, 2, 4);
            Castle castle = new Castle("");

            map.AddLocation(castle, 1, 0);
            CastleArmory castleArmory = new CastleArmory("");

            map.AddLocation(castleArmory, 0, 0);
            TombHall tombHall = new TombHall("");

            map.AddLocation(tombHall, 5, 3);
            map.AddLocation(tombHall, 8, 1);
            TombHall1 tombHall1 = new TombHall1("");

            map.AddLocation(tombHall1, 7, 5);
            map.AddLocation(tombHall1, 9, 2);
            TombHall2 tombHall2 = new TombHall2("");

            map.AddLocation(tombHall2, 7, 2);
            map.AddLocation(tombHall2, 9, 3);
            TombRoom tombRoom = new TombRoom("");

            map.AddLocation(tombRoom, 6, 3);
            map.AddLocation(tombRoom, 6, 5);
            map.AddLocation(tombRoom, 6, 1);
            map.AddLocation(tombRoom, 10, 3);
            TombRoom1 tombRoom1 = new TombRoom1("");

            map.AddLocation(tombRoom1, 5, 4);
            map.AddLocation(tombRoom1, 7, 4);
            map.AddLocation(tombRoom1, 7, 1);
            TombRoom2 tombRoom2 = new TombRoom2("");

            map.AddLocation(tombRoom2, 5, 5);
            map.AddLocation(tombRoom2, 6, 2);
            map.AddLocation(tombRoom2, 9, 1);
            TombTreasure tombTreasure = new TombTreasure("");

            map.AddLocation(tombTreasure, 11, 3);
        }
        static void InitMap(ref Map map)
        {
            // Add locations with their coordinates to this list.
            Forest forest = new Forest("Woodhearth");

            map.AddLocation(forest, 3, 2);
            map.AddLocation(forest, 4, 2);
            map.AddLocation(forest, 1, 4);
            Cliff cliff = new Cliff("The Hanger");

            map.AddLocation(cliff, 1, 5);
            Church church = new Church("Church of Stendarr");

            map.AddLocation(church, 3, 4);
            Swamp swamp = new Swamp("Bog");

            map.AddLocation(swamp, 4, 1);
            Town town = new Town("Mana");

            map.AddLocation(town, 2, 2);
            Ravine ravine = new Ravine("High pass");

            map.AddLocation(ravine, 1, 2);
            Lake lake = new Lake("Black Lake");

            map.AddLocation(lake, 0, 2);
            Tomb tomb = new Tomb("Dunbarrow");

            map.AddLocation(tomb, 4, 3);
            Road road = new Road("Road");

            map.AddLocation(road, 2, 1);
            map.AddLocation(road, 2, 0);
            map.AddLocation(road, 2, 3);
            map.AddLocation(road, 2, 4);
            Castle castle = new Castle("Dragonstar");

            map.AddLocation(castle, 1, 0);
            CastleArmory castleArmory = new CastleArmory("Dragonstar armory");

            map.AddLocation(castleArmory, 0, 0);
            TombHall tombHall = new TombHall("Tombhall1");

            map.AddLocation(tombHall, 5, 3);
            map.AddLocation(tombHall, 8, 1);
            TombHall1 tombHall1 = new TombHall1("Tombhall2");

            map.AddLocation(tombHall1, 7, 5);
            map.AddLocation(tombHall1, 9, 2);
            TombHall2 tombHall2 = new TombHall2("Tombhall3");

            map.AddLocation(tombHall2, 7, 2);
            map.AddLocation(tombHall2, 9, 3);
            TombRoom tombRoom = new TombRoom("Tombroom1");

            map.AddLocation(tombRoom, 6, 3);
            TombRoom1 tombRoom1 = new TombRoom1("Tombroom2");

            map.AddLocation(tombRoom1, 5, 4);
            map.AddLocation(tombRoom1, 7, 4);
            map.AddLocation(tombRoom1, 7, 1);
            TombRoom2 tombRoom2 = new TombRoom2("Tombroom3");

            map.AddLocation(tombRoom2, 5, 5);
            map.AddLocation(tombRoom2, 6, 2);
            map.AddLocation(tombRoom2, 9, 1);
            TombRoom3 tombroom3 = new TombRoom3("Tombroom4");

            map.AddLocation(tombRoom, 6, 5);
            map.AddLocation(tombRoom, 6, 1);
            map.AddLocation(tombRoom, 10, 3);
            TombTreasure tombTreasure = new TombTreasure("TombTreasureRoom");

            map.AddLocation(tombTreasure, 11, 3);
            TombTreasure1 tombTreasure1 = new TombTreasure1("TombTreasureRoom1");

            map.AddLocation(tombTreasure1, 12, 3);
        }