Пример #1
0
        internal static World CreateWorld()
        {
            World newWorld = new World();


            newWorld.AddLocation(-2, -1, "Farmer's Field",
                                 "There are rows of corn growing here, with giant rats hiding between them.",
                                 "FarmFields.png");

            newWorld.LocationAt(-2, -1).AddMonster(2, 100);

            newWorld.AddLocation(-1, -1, "Farmer's House",
                                 "This is the house of your neighbor, Farmer Ted.",
                                 "Farmhouse.png");

            newWorld.LocationAt(-1, -1).TraderHere = TraderFactory.GetTraderByName("Farmer Ted");

            newWorld.AddLocation(0, -1, "Home",
                                 "This is your home",
                                 "Home.png");

            newWorld.AddLocation(-1, 0, "Trading Shop",
                                 "The shop of Susan, the trader.",
                                 "Trader.png");

            newWorld.LocationAt(-1, 0).TraderHere = TraderFactory.GetTraderByName("Susan");

            newWorld.AddLocation(0, 0, "Town square",
                                 "You see a fountain here.",
                                 "TownSquare.png");

            newWorld.AddLocation(1, 0, "Town Gate",
                                 "There is a gate here, protecting the town from giant spiders.",
                                 "TownGate.png");

            newWorld.AddLocation(2, 0, "Spider Forest",
                                 "The trees in this forest are covered with spider webs.",
                                 "SpiderForest.png");

            newWorld.LocationAt(2, 0).AddMonster(3, 100);

            newWorld.AddLocation(0, 1, "Herbalist's hut",
                                 "You see a small hut, with plants drying from the roof.",
                                 "HerbalistsHut.png");

            newWorld.LocationAt(0, 1).TraderHere = TraderFactory.GetTraderByName("Pete the Herbalist");

            newWorld.LocationAt(0, 1).QuestsAvailableHere.Add(QuestFactory.getQuestByID(1));

            newWorld.AddLocation(0, 2, "Herbalist's garden",
                                 "There are many plants here, with snakes hiding behind them.",
                                 "HerbalistsGarden.png");

            newWorld.LocationAt(0, 2).AddMonster(1, 100);

            return(newWorld);
        }
Пример #2
0
        //creates locations and puts them in the game world
        internal static World CreateWorld()
        {
            World newWorld = new World();

            newWorld.addLocation(-2, -1, "Isamu's Field",
                                 "Rows of corn grow here, with giant rats hiding among them.",
                                 "FarmFields.png");

            newWorld.locationAt(-2, -1).AddMonster(2, 100);

            newWorld.addLocation(-1, -1, "Isamu's House",
                                 "This is the house of your neighbor, Isamu.",
                                 "Farmhouse.png");

            newWorld.locationAt(-1, -1).traderHere = TraderFactory.GetTraderByName("Isamu");

            newWorld.addLocation(0, -1, "Home",
                                 "This is your home.",
                                 "Home.png");

            newWorld.addLocation(-1, 0, "Trading Shop",
                                 "The shop of Chiaki, the trader.",
                                 "Trader.png");

            newWorld.locationAt(-1, 0).traderHere = TraderFactory.GetTraderByName("Chiaki");

            newWorld.addLocation(0, 0, "Town square",
                                 "You see a fountain here.",
                                 "TownSquare.png");

            newWorld.addLocation(1, 0, "Town Gate",
                                 "There is a gate here, protecting the town from demons.",
                                 "TownGate.png");

            newWorld.addLocation(2, 0, "Dark Forest",
                                 "The trees in this forest are covered with a terrifying presence.",
                                 "SpiderForest.png");

            newWorld.locationAt(2, 0).AddMonster(3, 100);

            newWorld.addLocation(0, 1, "Herbalist's hut",
                                 "You see a small hut, with plants drying from the roof.",
                                 "HerbalistsHut.png");

            newWorld.locationAt(0, 1).traderHere = TraderFactory.GetTraderByName("Hikawa");

            newWorld.locationAt(0, 1).questAvailable.Add(QuestFactory.getQuestByID(1));

            newWorld.addLocation(0, 2, "Herbalist's garden",
                                 "There are many plants here, with slimes hiding behind them.",
                                 "HerbalistsGarden.png");

            newWorld.locationAt(0, 2).AddMonster(1, 100);

            return(newWorld);
        }