internal static World CreateWorld()
        {
            World newWorld = new World();

            newWorld.AddLocation(-2, -1, "Farmer's Field", "There are rows of crops here, with danger lurking within.", "startinghouse.jpg");
            newWorld.LocationAt(-2, -1).AddMonster(2, 100);

            newWorld.AddLocation(-1, -1, "Farmer's House", "This is the house of the local farmer, John.", "startinghouse.jpg");
            newWorld.LocationAt(-1, -1).TraderHere = TraderFactory.GetTraderByName("Farmer John");

            newWorld.AddLocation(0, -1, "Your Home", "This is your home.", "/Engine;component/Images/Locations/startinghouse.jpg");

            newWorld.AddLocation(-1, 0, "Trader's Shop", "The shop of Susan, the local merchant.", "startinghouse.jpg");
            newWorld.LocationAt(-1, 0).TraderHere = TraderFactory.GetTraderByName("Susan");

            newWorld.AddLocation(0, 0, "Town Square", "You see a fountain here.", "startinghouse.jpg");
            newWorld.AddLocation(1, 0, "Town Gate", "There is a gate here, protecting the the from giant spiders.", "startinghouse.jpg");
            newWorld.AddLocation(2, 0, "Spider Forest", "Each tree in this forest is home to hundreds of tiny spiders.", "startinghouse.jpg");
            newWorld.LocationAt(2, 0).AddMonster(3, 100);

            newWorld.AddLocation(0, 1, "Herbalist's Hut", "You spot a tiny hut out here, with medical plants all around it.", "startinghouse.jpg");
            newWorld.LocationAt(0, 1).QuestsAvailableHere.Add(QuestFactory.GetQuestByID(1)); //Adding quest to location by ID
            newWorld.LocationAt(0, 1).TraderHere = TraderFactory.GetTraderByName("Pete the Herbalist");

            newWorld.AddLocation(0, 2, "Herbalist's Garden", "There's a lot of herbs here, with critters lurking betwixt them all.", "startinghouse.jpg");
            newWorld.LocationAt(0, 2).AddMonster(1, 100);

            return(newWorld);
        }
Beispiel #2
0
        internal static World CreateWorld()
        {
            World world = new World();

            world.AddLocation(-2, -1, "Farmer's Field",
                              "There are rows of corn growing here, with giant rats hiding between them.",
                              "/Engine;component/Images/Locations/FarmFields.png");
            world.AddLocation(-1, -1, "Farmer's House",
                              "This is the house of your neighbor, Farmer Ted.",
                              "/Engine;component/Images/Locations/Farmhouse.png");
            world.AddLocation(0, -1, "Home",
                              "This is your home.",
                              "/Engine;component/Images/Locations/Home.png");
            world.AddLocation(-1, 0, "Trading Shop",
                              "The shop of Susan, the trader.",
                              "/Engine;component/Images/Locations/Trader.png");
            world.AddLocation(0, 0, "Town Square",
                              "There is a fountain here.",
                              "/Engine;component/Images/Locations/TownSquare.png");
            world.AddLocation(1, 0, "Town Gate",
                              "There is a gate here, protecting the town from giant spiders.",
                              "/Engine;component/Images/Locations/TownGate.png");
            world.AddLocation(2, 0, "Spider Forest",
                              "The trees in this forest are covered with spider webs.",
                              "/Engine;component/Images/Locations/SpiderForest.png");
            world.AddLocation(0, 1, "Herbalist's hut",
                              "You see a small hut, with plants drying from the roof.",
                              "/Engine;component/Images/Locations/HerbalistsHut.png");
            world.AddLocation(0, 2, "Herbalist's garden",
                              "There are many plants here, with snakes hiding(not very well) behind them.",
                              "/Engine;component/Images/Locations/HerbalistsGarden.png");

            world.LocationAt(0, 1).QuestsAvailable.Add(QuestFactory.GetQuestByID(1));
            return(world);
        }
Beispiel #3
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 neighbour, 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);
        }
        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 Joe.",
                                 "Farmhouse.png");

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

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

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

            newWorld.AddLocation(-1, 0, "Trading Shop",
                                 "Susan's shop.",
                                 "Trader.png");

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

            newWorld.AddLocation(1, 0, "Town Gate",
                                 "This is the town gate",
                                 "TownGate.png");

            newWorld.AddLocation(2, 0, "SpiderForest",
                                 "This is where spiders dwell.",
                                 "SpiderForest.png");

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

            newWorld.AddLocation(0, 1, "Herbalist's Hut",
                                 "This is where the herbalist lives.",
                                 "HerbalistsHut.png");

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

            // Add quest at Herbalist Hut
            newWorld.LocationAt(0, 1).QuestsAvailableHere.Add(QuestFactory.GetQuestByID(1));

            newWorld.AddLocation(0, 2, "Herb Garden",
                                 "This is where the herbs are.",
                                 "HerbalistsGarden.png");

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

            return(newWorld);
        }
Beispiel #5
0
 private static void AddQuests(XmlNodeList questsNode, Location newLocation)
 {
     if (questsNode != null)
     {
         foreach (XmlNode questNode in questsNode)
         {
             newLocation.AvailibleQuests.Add(QuestFactory.GetQuestByID(questNode.GetXMLAttributeValue <int>("Id")));
         }
     }
 }
        private static void AddQuests(Location location, XmlNodeList quests)
        {
            if (quests == null)
            {
                return;
            }

            foreach (XmlNode questNode in quests)
            {
                location.QuestsAvailableHere.Add(QuestFactory.GetQuestByID(questNode.AttributeAsInt("ID")));
            }
        }
        internal static World CreateWorld()
        {
            World newWorld = new World();

            newWorld.AddLocation(-2, -1, "Pole Farmera",
                                 "Gdzieś wśród tych rzędów kukurydzy, chowa się wielki szczur!",
                                 "/engine;component/Obrazy/Lokacje/PoleFarmera.png");

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

            newWorld.AddLocation(-1, -1, "Dom farmerski",
                                 "Wokół pasą się krówki, a kogut przymierza się do dziobnięcia Cię w stopę.",
                                 "/engine;component/Obrazy/Lokacje/Domfarmerski.png");

            newWorld.LocationAt(-1, -1).QuestsAvailableHere.Add(QuestFactory.GetQuestByID(2));

            newWorld.AddLocation(0, -1, "Dom",
                                 "To twój dom!",
                                 "/Engine;component/Obrazy/Lokacje/Dom.png");

            newWorld.AddLocation(-1, 0, "Sklep z różnościami",
                                 "Sklep z prawie 200 letnią historią, aktualnie prowadzony przez panią Elę.",
                                 "/Engine;component/Obrazy/Lokacje/Sklep.png");

            newWorld.AddLocation(0, 0, "Plac",
                                 "Wrzuć pieniążka do fontanny, a wszystkie twoje życzenia się spełnią.",
                                 "/Engine;component/Obrazy/Lokacje/Plac.png");

            newWorld.AddLocation(1, 0, "Brama do miasta",
                                 "Bez tej bramy, mieszkancy dawno zostaliby pożarci przez Wielkie Pająki.",
                                 "/Engine;component/Obrazy/Lokacje/Brama.png");

            newWorld.AddLocation(2, 0, "Pajęczy las",
                                 "Wszystkie rośliny pokrytę są pajęczyną...",
                                 "/Engine;component/Obrazy/Lokacje/Pajeczylas.png");

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

            newWorld.AddLocation(0, 1, "Domek zielarki",
                                 "Już z kilometra czuć intensywny zapach roślin, na ganku zapach jest nie do wytrzymania!.",
                                 "/Engine;component/Obrazy/Lokacje/Domekzielarki.png");

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

            newWorld.AddLocation(0, 2, "Ogród zielarki",
                                 "Tu też woń kwiatów przyprawia o zawrót głowy, jedynie węże wydają się być odporne.",
                                 "/Engine;component/Obrazy/Lokacje/ogrodzielarki.png");

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

            return(newWorld);
        }
Beispiel #8
0
        internal static World CreateWorld()
        {
            World newWorld = new World();

            newWorld.AddLocation(0, 0, "Island",
                                 "An island in the middle of a lake.",
                                 "/Engine;component/images/locations/island.jpg");

            newWorld.AddLocation(0, 1, "FeyVille Docks",
                                 "Colorful and Brightly lit docks welcome you to FeyVille.",
                                 "/Engine;component/images/locations/FVDocks.jpg");

            newWorld.AddLocation(0, 2, "FeyVille Trader",
                                 "The FeyVille Marketplace is a cluttered and brightly patterned collage. It's almost distracting enough that you miss the lack of other people...",
                                 "/Engine;component/images/locations/FVTrader.jpg");

            newWorld.AddLocation(-1, 2, "Fishmonger",
                                 "A vast variety of fish adorn her table. Were these all caught in The Lake?",
                                 "/Engine;component/images/locations/Fishmonger.jpg");

            newWorld.AddLocation(1, 2, "Ichthyologist",
                                 "Her eyes have a manic gleam as she welcomes you in, and you realize you will soon know a lot more about fish than you did an hour ago...",
                                 "/Engine;component/images/locations/ichthyologist.jpg");

            newWorld.AddLocation(-1, 0, "The Lake",
                                 "As you row out, you realize you can't see another side, only the island and two sets of docks behind you. Just how big is this \"Lake\"?",
                                 "/Engine;component/images/locations/Lake.jpg");

            newWorld.AddLocation(0, -1, "NightMoon Docks",
                                 "Though they're so small you would almost miss them but for the lonely lantern leading you in, there is a small \"Welcome to Nightmoon\" sign.",
                                 "/Engine;component/images/locations/NVDocks.jpg");

            newWorld.AddLocation(0, -2, "NightMoon Trader",
                                 "She has a wizened face and features that make you wonder how long she's been out here, peddling her wares.",
                                 "/Engine;component/images/locations/NVTrader.jpg");

            newWorld.AddLocation(-1, -2, "Butcher",
                                 "The butcher seems nice enough, but there's an intensity and accuracy to his movements that sets you on edge.",
                                 "/Engine;component/images/locations/Butcher.jpg");

            newWorld.AddLocation(1, -2, "Herbologist",
                                 "Although no one seems to be manning the store, you sense that if you touch anything it would not work out well for you...",
                                 "/Engine;component/images/locations/Herbologist.jpg");
            newWorld.LocationAt(1, -2).QuestsAvailableHere.Add(QuestFactory.GetQuestByID(1));

            newWorld.AddLocation(1, 0, "The Forest",
                                 "The forest welcomes you with soft sounds and a sense of adventure.",
                                 "/Engine;component/images/locations/Forest.jpg");

            return(newWorld);
        }
Beispiel #9
0
        /// <summary>
        /// Function used to build a new World object.
        /// </summary>
        /// <returns></returns>
        internal static World CreateWorld()
        {
            World newWorld = new World();

            // Locations
            newWorld.AddLocation(0, 0, "Home", "Your starting location", "/Engine;component/Images/Locations/home.png");
            newWorld.AddLocation(1, 0, "Town", "The center of town", "/Engine;component/Images/Locations/town.png");
            newWorld.AddLocation(2, 0, "Shop", "Purchase things here", "/Engine;component/Images/Locations/shop.png");
            newWorld.AddLocation(0, 1, "Spider Hill", "Home of the Spiders", "/Engine;component/Images/Locations/spider.png");

            // Quests
            newWorld.GetLocation(0, 1).LocationQuests.Add(QuestFactory.GetQuestByID(1));

            return(newWorld);
        }
        internal static World CreateWorld()
        {
            World newWorld = new World();

            newWorld.AddLocation(0, -1, "Home", "This is your home",
                                 "/Engine;component/Images/Locations/Home.png");

            newWorld.AddLocation(-1, -1, "Farmer's House",
                                 "This is Old McDonald's house", "/Engine;component/Images/Locations/Farmhouse.png");

            newWorld.AddLocation(-2, -1, "Farmer's Field",
                                 "Beware of this corn field, there are giant rats lurking within it.",
                                 "/Engine;component/Images/Locations/FarmFields.png");

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

            newWorld.AddLocation(-1, 0, "Trading Inn", "The inn of Leoksa, the trader.",
                                 "/Engine;component/Images/Locations/Trader.png");

            newWorld.AddLocation(0, 0, "Town Square", "The fountain is your clue",
                                 "/Engine;component/Images/Locations/TownSquare.png");

            newWorld.AddLocation(1, 0, "Town Gate",
                                 "There is a huge gate here to shield the town from giant arachnids",
                                 "/Engine;component/Images/Locations/TownGate.png");

            newWorld.AddLocation(2, 0, "Spider Forest",
                                 "The trees in this forest are teeming with webs... and spiders",
                                 "/Engine;component/Images/Locations/SpiderForest.png");

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

            newWorld.AddLocation(0, 1, "Herbalist's Cottage",
                                 "You see a hay-covered cottage, with herbs, drying outside",
                                 "/Engine;component/Images/Locations/HerbalistsHut.png");

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

            newWorld.AddLocation(0, 2, "Herbalist garden",
                                 "Watch out! There are many medicinal plants here, but snakes hide amongst them!",
                                 "/Engine;component/Images/Locations/HerbalistsGarden.png");

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

            return(newWorld); // instantiate a new world object and return it where its called
        }
        internal static World CreateWorld()
        {
            World newWorld = new World();

            newWorld.AddLocation(1, 0, "Haven", "The ancient Haven of Ubuntu island.", "/Engine;component/Images/Locations/Haven.jpg");
            newWorld.LocationAt(1, 0).TraderHere = TraderFactory.GetTraderByName("Captain");
            newWorld.AddLocation(0, 0, "Marketplace", "The Center of Ubuntu island", "/Engine;component/Images/Locations/Marketplace.jpg");
            newWorld.LocationAt(0, 0).QuestsAvailableHere.Add(QuestFactory.GetQuestByID(1));
            newWorld.LocationAt(0, 0).TraderHere = TraderFactory.GetTraderByName("Weaponsmith");
            newWorld.AddLocation(0, -1, "Orchard", "An old Orchard filled with Apple trees.", "/Engine;component/Images/Locations/Orchard.jpg");
            newWorld.AddLocation(0, 1, "Herb garden", "An old herb garden.", "/Engine;component/Images/Locations/HerbGarden.jpg");
            newWorld.LocationAt(0, 1).AddMonster(1, 100);
            newWorld.AddLocation(-1, 0, "Graveyard", "The graveyard of Ubuntu island.", "/Engine;component/Images/Locations/Cemetry.jpg");
            newWorld.LocationAt(-1, 0).AddMonster(2, 50);
            newWorld.AddLocation(-2, 0, "Crypt", "A Dark Crypt with a Grave in the center.", "/Engine;component/Images/Locations/Crypt.jpg");

            return(newWorld);
        }
Beispiel #12
0
        internal static World CreateWorld()
        {
            World newWorld = new World();                                                                                                                                  // instantiates a new World object

            newWorld.AddLocation(0, -1, "Home", "This is your home", "/Engine;component/Images/Locations/house.png");                                                      // home
            newWorld.AddLocation(0, 0, "Town Square", "This is the center of town", "/Engine;component/Images/Locations/town_square.png");                                 // town square
            newWorld.AddLocation(-1, -1, "Library", "This is the center of knowlege.", "/Engine;component/Images/Locations/library.jpg");                                  // library
            newWorld.AddLocation(1, -1, "Sue's Bakery", "This is where the best food in town is!", "/Engine;component/Images/Locations/bakery.png");                       // Sue's bakery

            newWorld.LocationAt(1, -1).QuestList.Add(QuestFactory.GetQuestByID(1));                                                                                        // add quest to our world

            newWorld.AddLocation(0, -2, "Mystic Lake", "There is an odd aura about this lake.", "/Engine;component/Images/Locations/mystic_lake.jpg");                     // mystic lake
            newWorld.AddLocation(-2, 0, "Werewolf Grove", "Howling is heard here when the full moon rises.", "/Engine;component/Images/Locations/werewolf_grove.jpg");     // werewolf grove
            newWorld.AddLocation(-1, 0, "Hermit's Swamp", "This is the home of an old, scraggly man.", "/Engine;component/Images/Locations/hermits_swamp.jpg");            // hermit's swamp
            newWorld.AddLocation(1, 0, "Dead Man's Lake", "This is said to be home to the bodies of this town.", "/Engine;component/Images/Locations/dead_mans_lake.png"); // dead man's lake
            newWorld.AddLocation(0, 2, "Snowflake Summit", "This is the top of Snowflake Mountain!", "/Engine;component/Images/Locations/snowflake_summit.png");           // snowflake summit
            newWorld.AddLocation(0, 1, "Snowflake Mountain", "This is a foreboding mountain.", "/Engine;component/Images/Locations/snoflake_mountain.png");                // snowflake mountain
            return(newWorld);
        }
Beispiel #13
0
        internal static World CreateWorld()
        {
            World newWorld = new World();

            newWorld.AddLocation(-2, -1, "Campo del granjero",
                                 "Aquí hay hileras de maíz, con ratas gigantes que se esconden entre ellas.",
                                 "/Engine;component/Images/Locations/FarmFields.png");

            newWorld.AddLocation(-1, -1, "Casa del granjero",
                                 "Esta es la casa de tu vecino, el granjero Ted.",
                                 "/Engine;component/Images/Locations/Farmhouse.png");

            newWorld.AddLocation(0, -1, "Hogar",
                                 "Esta es tu casa",
                                 "/Engine;component/Images/Locations/Home.png");

            newWorld.AddLocation(-1, 0, "Tienda de comercio",
                                 "La tienda de Susan, la comerciante.",
                                 "/Engine;component/Images/Locations/Trader.png");

            newWorld.AddLocation(0, 0, "Plaza de la ciudad",
                                 "Ves una fuente aquí.",
                                 "/Engine;component/Images/Locations/TownSquare.png");

            newWorld.AddLocation(1, 0, "Puerta de la ciudad",
                                 "Aquí hay una puerta que protege al pueblo de las arañas gigantes.",
                                 "/Engine;component/Images/Locations/TownGate.png");

            newWorld.AddLocation(2, 0, "Bosque de arañas",
                                 "Los árboles en este bosque están cubiertos de telarañas.",
                                 "/Engine;component/Images/Locations/SpiderForest.png");

            newWorld.AddLocation(0, 1, "Cabaña del herbolario",
                                 "Ves una pequeña cabaña, con plantas secas que caen del techo.",
                                 "/Engine;component/Images/Locations/HerbalistsHut.png");
            newWorld.LocationAt(0, 1).QuestsAvailableHere.Add(QuestFactory.GetQuestByID(1));

            newWorld.AddLocation(0, 2, "Jardín del herbolario",
                                 "Aquí hay muchas plantas, con serpientes escondidas detrás de ellas.",
                                 "/Engine;component/Images/Locations/HerbalistsGarden.png");

            return(newWorld);
        }
Beispiel #14
0
        internal static World CreateWorld()
        {
            World newWorld = new World();

            newWorld.AddLocation(-2, -1, "Crack Room", "The room of a crackhead", "crackheadroom.jpg");

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

            newWorld.AddLocation(-1, -1, "Crack House", "Runned down building.", "crackhouse.jpg");
            newWorld.LocationAt(-1, -1).TraderHere = TraderFactory.GetTraderByName("Bang on 'em Josh");

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

            newWorld.AddLocation(-1, 0, "Gun Store", "Welcome to TayTay Gun Store", "gunstore.jpeg");
            newWorld.LocationAt(-1, 0).TraderHere = TraderFactory.GetTraderByName("Kiana");

            newWorld.AddLocation(0, 0, "Police Station", "The Boys in Blue", "policestation.jpg");

            newWorld.AddLocation(1, 0, "Parking Lot", "You kicking cans", "dirtyparkinglot.jpg");
            newWorld.LocationAt(1, 0).QuestsAvailableHere.Add(QuestFactory.GetQuestByID(2));

            newWorld.AddLocation(2, 0, "Hood Park", "Welcome to Hood!", "hoodpark.jpg");

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

            newWorld.AddLocation(0, 1, "Liquor Store", "Say whats up to Farook behind the glass", "Liquorstore.jpg");
            newWorld.LocationAt(0, 1).TraderHere = TraderFactory.GetTraderByName("Joseph");

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

            newWorld.AddLocation(0, 2, "The Streets", "Your at end of the hood, the gate is locked", "hoodstreet.jpg");

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

            return(newWorld);
        }
Beispiel #15
0
        internal static World CreateWorld()
        {
            World newWorld = new World();

            newWorld.AddLocation(0, 1, "Computer Room",
                                 "A room full of workstations.\nSomehow, a few machines still run.",
                                 "Servers.png");
            //robot quest here

            newWorld.AddLocation(1, -1, "Zoo",
                                 "The cages are empty, the asphalt cracked.\nBut a few robot attendants still wander about.",
                                 "Zoo.png");
            newWorld.LocationAt(1, -1).QuestsAvailableHere.Add(QuestFactory.GetQuestByID(1));

            newWorld.AddLocation(1, 0, "Park",
                                 "Weeds and trees have taken over much of the place.\nThe playground equipment is overgrown.",
                                 "Park.png");

            newWorld.AddLocation(1, 1, "Hospital Lobby",
                                 "Torn carpet and broken chairs.\nA vending machine sits in one corner.",
                                 "Lobby.png");
            newWorld.LocationAt(1, 1).TraderHere =
                TraderFactory.GetTraderByName("Hospital Vending Machine");

            newWorld.AddLocation(1, 2, "Hospital Room",
                                 "A filthy hospital room. The other bed is empty.\nA few robots wander in and out over time.",
                                 "Hospital.png");

            newWorld.AddLocation(2, 1, "Empty Street",
                                 "The wind blows trash through the street.\nThe air is full of hissing and barking and other beastial sounds.",
                                 "Street.png");
            //add snakes here
            newWorld.LocationAt(2, 1).AddMonster(1, 100);

            newWorld.AddLocation(3, 0, "Food Court",
                                 "TVs and radio equipment... what was this place?\nSome sort of communication hub?",
                                 "FoodCourt.png");

            newWorld.AddLocation(3, 1, "Mall Entrance",
                                 "The mall building is in surprisingly good shape.\nRemnants of an old barricade sit near the door.",
                                 "Mall.png");

            newWorld.AddLocation(3, 2, "Novelty Store",
                                 "A few toys and knick-nacks still remain.\nSo does what is left of the store's robot security.",
                                 "Store.png");
            //add robot here
            newWorld.LocationAt(3, 2).AddMonster(3, 100);

            newWorld.AddLocation(4, 0, "Security Office",
                                 "Looks like there were monitors here once, but they're long gone.\nAll that's left is a broken-down robot and an unplugged fridge.",
                                 "Security.png");
            //add rat quest here

            newWorld.AddLocation(4, 1, "Pet Store",
                                 "Empty cages full of sawdust. Empty shelves.\n The constant sounds of chewing and digging in the background.",
                                 "PetStore.png");
            //add rats here
            newWorld.LocationAt(4, 1).AddMonster(2, 100);

            return(newWorld);
        }
Beispiel #16
0
        internal static World CreateWorld() //internal function only in Engine Project
        {
            World newWorld = new World();   //instantiating the World object under name 'newWorld'

            newWorld.AddLocation(-2, -1, "Farmer's Field",
                                 "There are rows of corn growing here, with giant rats hiding between them.",
                                 "FarmFields.png");         // path was shortened as common path to files was declared in World class

            newWorld.LocationAt(-2, -1).AddMonster(2, 100); // 2- monster ID, 100- chances of encountering

            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)); //(0) This takes from World, that takes From Location and gives ass property 'QuestAvailableHere'
                                                                                             //Line (1) & (2) doing same as line (0)
                                                                                             //(1) Location hh = newWorld.LocationAt(0, 1);
                                                                                             //(2) hh.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); //return newWorld instance with filled data
        }
        internal static World CreateWorld()
        {
            World newWorld = new World();

            // AVAILABLE LOCATIONS

            // TOWN SQUARE
            newWorld.AddLocation(0, 0, "Town Square",
                                 "Smells awful",
                                 "TownSquare.png");

            // HOME
            newWorld.AddLocation(0, -1, "Home",
                                 "'Your home is, where your toilet is' ~ Unknown",
                                 "Home.png");

            // TOWN GATE
            newWorld.AddLocation(1, 0, "Town Gate",
                                 "Bricks",
                                 "TownGate.png");

            // SPIDER FOREST
            newWorld.AddLocation(2, 0, "Spider Forest",
                                 "fujka",
                                 "SpiderForest.png");
            newWorld.LocationAt(2, 0).AddMonster(3, 100);

            // TRADING SHOP
            newWorld.AddLocation(-1, 0, "Trading Shop",
                                 "The quality :<",
                                 "Trader.png");
            newWorld.LocationAt(-1, 0).TraderHere = TraderFactory.GetTraderByName("Susan");

            // FARM HOUSE
            newWorld.AddLocation(-1, -1, "Farm House",
                                 "farm",
                                 "Farmhouse.png");
            newWorld.LocationAt(-1, -1).TraderHere = TraderFactory.GetTraderByName("Farmer Ted");

            // FARMERS FIELD
            newWorld.AddLocation(-2, -1, "Farm fields",
                                 "corn",
                                 "FarmFields.png");
            newWorld.LocationAt(-2, -1).AddMonster(2, 100);

            // HERBALIST HUT
            newWorld.AddLocation(0, 1, "Herbalists Hut",
                                 "420 blaze it",
                                 "HerbalistsHut.png");
            newWorld.LocationAt(0, 1).TraderHere = TraderFactory.GetTraderByName("Pete the Herbalist");

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

            // HERBALIST GARDEN
            newWorld.AddLocation(0, 2, "Herbalists Garden",
                                 "The quality :<",
                                 "HerbalistsGarden.png");
            newWorld.LocationAt(0, 2).AddMonster(1, 100);

            return(newWorld);
        }
Beispiel #18
0
        internal static World CreateWorld()
        {
            World newWorld = new World();

            newWorld.AddLocation(-2, -1, "Farmářova Pole",
                                 "Jsou tu velké lány pole, s obrovskými krysami, které se v nich ukrývají.",
                                 "FarmFields.png");

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

            newWorld.AddLocation(-1, -1, "Farmářův Příbytek",
                                 "Tohle je dům tvého souseda, Farmáře Pepy.",
                                 "Farmhouse.png");
            newWorld.LocationAt(-1, -1).QuestsAvailableHere.Add(QuestFactory.GetQuestByID(2));

            newWorld.LocationAt(-1, -1).TraderHere =
                TraderFactory.GetTraderByName("Farmář Pepa");

            newWorld.AddLocation(0, -1, "Domov",
                                 "Tvůj sladký domov",
                                 "Home.png");

            newWorld.AddLocation(-1, 0, "Večerka",
                                 "Obchůdek Pavly, tvé žluté kamarádky.",
                                 "Trader.png");

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

            newWorld.AddLocation(0, 0, "Náměstí",
                                 "Nic moc tu není, až na fontánu",
                                 "TownSquare.png");

            newWorld.AddLocation(1, 0, "Městská Brána",
                                 "Je tu brána, která brání město před obrovskými pavouky.",
                                 "TownGate.png");

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

            newWorld.AddLocation(2, 0, "Pavoučí les",
                                 "Les jako každý jiný, ale od čeho můžou být ty pavučiny?",
                                 "SpiderForest.png", AttunementFactory.GetAttunementByID(20000));

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

            newWorld.AddLocation(3, 0, "Mýtina",
                                 "Ještě tu nic není",
                                 "", AttunementFactory.GetAttunementByID(20001));

            newWorld.LocationAt(3, 0).QuestsAvailableHere.Add(QuestFactory.GetQuestByID(3));

            newWorld.AddLocation(0, 1, "Herbalistova Chatrč",
                                 "Vidíš malou chatrč se střechou porostlou bylinkami.",
                                 "HerbalistsHut.png");

            newWorld.LocationAt(0, 1).TraderHere =
                TraderFactory.GetTraderByName("Herbalista Péťa");

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

            newWorld.AddLocation(0, 2, "Herbalistova Zahrada",
                                 "Je tu pozoruhodné množství rostlin, ale ještě poziruhodnější množství hadů.",
                                 "HerbalistsGarden.png");

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

            return(newWorld);
        }
Beispiel #19
0
 static AttunementFactory()
 {
     _attunements.Add(new Attunement(20000, QuestFactory.GetQuestByID(1)));
     _attunements.Add(new Attunement(20001, QuestFactory.GetQuestByID(3)));
 }
        internal static World CreateWorld()
        {
            World newWorld = new World();

            newWorld.AddLocation(2, -2, "Farmer's Field",
                                 "There are rows of corn growing here, with giant rats hiding between them.",
                                 "Field.jpg");
            newWorld.LocationAt(2, -2).AddMonster(2, 80);
            newWorld.LocationAt(2, -2).AddMonster(4, 20);

            newWorld.AddLocation(2, -1, "Lonely farm",
                                 "This is the house of farmer David.",
                                 "FarmerHouse.jpg");
            newWorld.LocationAt(2, -1).TraderHere = TraderFactory.GetTraderByName("David the farmer");
            newWorld.LocationAt(2, -1).QuestsAvailableHere.Add(QuestFactory.GetQuestByID(2));

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

            newWorld.AddLocation(-1, 0, "Trading Shop",
                                 "The shop of River, the trader.",
                                 "Shop.jpg");
            newWorld.LocationAt(-1, 0).TraderHere = TraderFactory.GetTraderByName("River");

            newWorld.AddLocation(0, 0, "Town square",
                                 "You see a fountain here and two shops one to the north and one to the east. You live to the south",
                                 "TownSquare.jpg");

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

            newWorld.AddLocation(2, 0, "Road outside the town",
                                 "Long and winding roads. To the east, the spider forest, south is the fields and to the north is the mountain.",
                                 "Road.jpg");
            newWorld.LocationAt(2, 0).QuestsAvailableHere.Add(QuestFactory.GetQuestByID(3));
            newWorld.LocationAt(2, 0).TraderHere = TraderFactory.GetTraderByName("Tore the bug expert");

            newWorld.AddLocation(3, 0, "Spider Forest",
                                 "The trees in this forest are covered with spider webs.",
                                 "SpiderForest.jpg");
            newWorld.LocationAt(3, 0).AddMonster(3, 100);

            newWorld.AddLocation(0, 1, "Herbalist's hut",
                                 "You see a small hut, with plants drying from the roof.",
                                 "HerbalistHouse.jpg");
            newWorld.LocationAt(0, 1).TraderHere = TraderFactory.GetTraderByName("Florian Flower");
            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.",
                                 "HerbalistGarden.jpg");
            newWorld.LocationAt(0, 2).AddMonster(1, 100);

            newWorld.AddLocation(99, 99, "The Gate Beyond",
                                 "You died all too young",
                                 "Dead.jpg");

            return(newWorld);
        }