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);
        }
Ejemplo n.º 2
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.", "/Engine;component/Images/Locations/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.", "/Engine;component/Images/Locations/Farmhouse.png");
            newWorld.LocationAt(-1, -1).TraderHere = TraderFactory.GetTraderByName("Farmer Ted");

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

            newWorld.AddLocation(-1, 0, "Trading Shop", "The shop of Susan, the trader.", "/Engine;component/Images/Locations/Trader.png");
            newWorld.LocationAt(-1, 0).TraderHere = TraderFactory.GetTraderByName("Susan");

            newWorld.AddLocation(0, 0, "Town square", "You see a fountain here.", "/Engine;component/Images/Locations/TownSquare.png");

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

            newWorld.AddLocation(2, 0, "Spider Forest", "The trees in this forest are covered with spider webs.", "/Engine;component/Images/Locations/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.", "/Engine;component/Images/Locations/HerbalistsHut.png");
            newWorld.LocationAt(0, 1).TraderHere = TraderFactory.GetTraderByName("Pete the Herbalist");
            newWorld.LocationAt(0, 1).QuestAvailableHere.Add(QuestFactory.GetQuestByID(1));

            newWorld.AddLocation(0, 2, "Herbalist's garden", "There are many plants here, with snakes hiding behind them.", "/Engine;component/Images/Locations/HerbalistsGarden.png");
            newWorld.LocationAt(0, 2).AddMonster(1, 100);
            return(newWorld);
        }
Ejemplo n.º 3
0
 private static void AddTraders(XmlNode traderNode, Location newLocation)
 {
     if (traderNode != null)
     {
         newLocation.LocalTrader = TraderFactory.GetTraderByName(traderNode.GetXMLAttributeValue <int>("Id"));
     }
 }
Ejemplo n.º 4
0
        internal static World CreateWorld()
        {
            World newWorld = new World();

            newWorld.AddLocation(-2, -1, "Farmer's Field",
                                 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse mauris.",
                                 "farmfield.jpg",
                                 "Map-2-1.png");

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

            newWorld.AddLocation(-1, -1, "Farmer's House",
                                 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse mauris.",
                                 "farmhouse.jpg",
                                 "Map-1-1.png");

            newWorld.LocationAt(-1, -1).TraderHere = TraderFactory.GetTraderById(2); // Farmer Ted Trader

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

            newWorld.AddLocation(0, 0, "Town Square",
                                 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse mauris.",
                                 "fountain.jpg", "Map00.png");

            newWorld.AddLocation(0, 1, "Herbalist hut",
                                 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse mauris.",
                                 "herbalisthut.jpg", "Map01.png");

            newWorld.LocationAt(0, 1).TraderHere = TraderFactory.GetTraderById(3); // Pete the ganja man Trader

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

            newWorld.AddLocation(0, 2, "Herb Garden",
                                 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse mauris.",
                                 "herbgarden.jpg", "Map02.png");

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

            newWorld.AddLocation(-1, 0, "Trading shop",
                                 "I got what you need",
                                 "tradingshop.jpg", "Map-10.png");
            newWorld.LocationAt(-1, 0).TraderHere = TraderFactory.GetTraderById(1); // Susan Trader

            newWorld.AddLocation(1, 0, "Town gate",
                                 "Are you sure you want to leave?",
                                 "towngate.jpg", "Map10.png");

            newWorld.AddLocation(2, 0, "Spider forest",
                                 "Oh no you got lost",
                                 "spiderforest.png", "Map20.png");

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

            return(newWorld);
        }
Ejemplo n.º 5
0
        private static void AddTrader(Location location, XmlNode traderHere)
        {
            if (traderHere == null)
            {
                return;
            }

            location.TraderHere = TraderFactory.GetTraderByName(traderHere.AttributeAsString("Name"));
        }
Ejemplo n.º 6
0
        private static void AddTrader(Location location, XmlNode traderHere)
        {
            if (traderHere == null)
            {
                return;
            }

            location.TraderHere = TraderFactory.GetTraderByID(traderHere.AttributeAsInt("ID"));
        }
Ejemplo n.º 7
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 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);
        }
Ejemplo n.º 8
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);
        }
Ejemplo n.º 9
0
        internal static World CreateWorld()
        {
            World newWorld = new World();

            newWorld.AddLocation(-2, -1, "Circular drive",
                                 "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, "Hotel Entrance",
                                 "This is the house of your neighbor, Farmer Ted.",
                                 "Farmhouse.png");
            newWorld.LocationAt(-1, -1).TraderHere =
                TraderFactory.GetTraderByName("Farmer Ted");

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

            newWorld.AddLocation(-1, 0, "Hotel Lobby",
                                 "The shop of Susan, the trader.",
                                 "Trader.png");
            newWorld.LocationAt(-1, 0).TraderHere =
                TraderFactory.GetTraderByName("Susan");

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

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

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

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

            newWorld.AddLocation(0, 1, "Dining Room",
                                 "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, "Hallway",
                                 "There are many plants here, with snakes hiding behind them.",
                                 "HerbalistsGarden.png");

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

            return(newWorld);
        }
Ejemplo n.º 10
0
        internal static World CreateWorld()
        {
            World newWorld = new World();

            newWorld.AddLocation(-2, -1, "农民的田地",
                                 "这里生长着成排的玉米,中间藏着巨大的老鼠。",
                                 "FarmFields.png");
            //添加老鼠
            newWorld.LocationAt(-2, -1).AddMonster(2, 100);

            newWorld.AddLocation(-1, -1, "农民的房子",
                                 "这是你邻居农夫泰德的房子。",
                                 "Farmhouse.png");
            newWorld.LocationAt(-1, -1).TraderHere =
                TraderFactory.GetTraderByName("农夫泰德");

            newWorld.AddLocation(0, -1, "家",
                                 "这是你的房子",
                                 "Home.png");

            newWorld.AddLocation(-1, 0, "贸易商店",
                                 "商人苏珊的商店。",
                                 "Trader.png");
            newWorld.LocationAt(-1, 0).TraderHere =
                TraderFactory.GetTraderByName("苏珊");

            newWorld.AddLocation(0, 0, "城市广场",
                                 "你在这里看到一个喷泉。",
                                 "TownSquare.png");

            newWorld.AddLocation(1, 0, "城堡之门",
                                 "这里有一扇门,保护小镇免受巨蜘蛛的侵袭。",
                                 "TownGate.png");

            newWorld.AddLocation(2, 0, "蜘蛛森林",
                                 "这片森林里的树都结满了蜘蛛网。",
                                 "SpiderForest.png");
            //添加蜘蛛
            newWorld.LocationAt(2, 0).AddMonster(3, 100);

            newWorld.AddLocation(0, 1, "草药医生的小屋",
                                 "你看到一个小茅屋,屋顶上正在晾干草药。.",
                                 "HerbalistsHut.png");
            newWorld.LocationAt(0, 1).TraderHere =
                TraderFactory.GetTraderByName("草药医生皮特");
            //添加除蛇任务
            newWorld.LocationAt(0, 1).QuestsAvailableHere.Add(QuestFactory.GetQuestById(1));

            newWorld.AddLocation(0, 2, "草药医生的花园",
                                 "这里有许多植物,它们后面藏着蛇。",
                                 "HerbalistsGarden.png");
            //添加蛇
            newWorld.LocationAt(0, 2).AddMonster(1, 100);
            return(newWorld);
        }
Ejemplo n.º 11
0
        internal static World CreateWorld()
        {
            World newWorld = new World();

            //TODO find a way to link names to location coords.
            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); //type 2 is rat with 100 encounterrate


            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); //type 3 is spider 100% encounter rate

            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));// this makes it so you don't need a temp variable to hold the location

            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); //type 1 is snake 100% encounter rate


            return(newWorld);
        }
Ejemplo n.º 12
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, 10);

            newWorld.AddLocation(-1, -1, "Farmer's House",
                                 "This is the house of your neighbour Farmer Frank.",
                                 "Farmhouse.png");
            newWorld.LocationAt(-1, -1).TraderHere = TraderFactory.GetTraderByName("Farmer Frank");

            newWorld.AddLocation(0, -1, "Home",
                                 "This is your home. Here you can heal by resting and save your game.",
                                 "Locations/Home.png");

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

            newWorld.AddLocation(0, 0, "Town square",
                                 "You see a fountain here. Throw a coin in for a wish... maybe...",
                                 "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("Angela 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);
        }
Ejemplo n.º 13
0
        private static void AddTrader(Location location, XmlNodeList traderNodes)
        {
            if (traderNodes == null)
            {
                return;
            }

            foreach (XmlNode traderNode in traderNodes)
            {
                location.TraderHere =
                    TraderFactory.GetTraderByID(traderNode.AttributeAsInt("ID"));
            }
        }
        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);
        }
Ejemplo n.º 15
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);
        }
Ejemplo n.º 16
0
        // Internal classes may only be used inside the same project. Only GameSession should be using me
        internal static World CreateWorld()
        {
            World newWorld = new World();

            newWorld.AddLocation(
                0,
                -1,
                "Home",
                "Before you is a ramshackle hut with mold growing along the walls from the steady misting rain.",
                "Home.png"
                );

            newWorld.AddLocation(
                -1,
                -1,
                "Farmer's House",
                "This is the farmer's hut.'",
                "FarmHouse.png"
                );

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

            newWorld.AddLocation(
                -2,
                -1,
                "Farmer's Field",
                "Rows of corn stretch as far as the eye can see. The wind howls, and from the stalks the sound of crunching emanates.",
                "FarmFields.png"
                );

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

            newWorld.AddLocation(
                -1,
                0,
                "Trading Shop",
                "Ye ole shoppe",
                "Trader.png"
                );

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

            newWorld.AddLocation(
                0,
                0,
                "Town Square",
                "This is where the town gallows stand.",
                "TownSquare.png"
                );
            newWorld.AddLocation(
                1,
                0,
                "Town Gate",
                "The gate dangles from the walls by a single rusty hinge.",
                "TownGate.png"
                );

            newWorld.AddLocation(
                2,
                0,
                "Spider Forest",
                "What light is not blocked by the tree canopy is captured by the thick layers of gossamer web.",
                "SpiderForest.png"
                );

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

            newWorld.AddLocation(
                0,
                1,
                "Herbalist's Hut",
                "A moldy ramshackle hut, before which an evil looking scarecrow spins in the wind.",
                "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",
                "Many strange flowers grow wild here. You hear the hissing of angry snakes.",
                "HerbalistsGarden.png"
                );

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

            return(newWorld);
        }
Ejemplo n.º 17
0
        internal static World CreateWorld()
        {
            World newWorld = new World();

            #region Home location

            newWorld.AddLocation(
                0, -1,
                "Home",
                "Sweet home",
                "Home.png");

            #endregion

            #region farmer's location

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

            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.LocationAt(-1, -1).TraderHere =
                TraderFactory.GerTraderByName("Farmer Ted");

            #endregion

            #region Town locations

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

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

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


            newWorld.LocationAt(-1, 0).TraderHere =
                TraderFactory.GerTraderByName("Susan");
            #endregion

            #region Herbalist Fields

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


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

            //Add quest in location herbalist's garden
            newWorld.LocationAt(0, 1).QuestAvailableHere.Add(QuestFactory.GetQuestByID(1));

            //Add snake in location "Herbalist's garden"
            newWorld.LocationAt(0, 2).AddMonster(1, 100);

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

            #endregion

            #region Spider Field

            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);

            #endregion

            return(newWorld);
        }
Ejemplo n.º 18
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);
        }
Ejemplo n.º 19
0
        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);
        }
Ejemplo n.º 20
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
        }
Ejemplo n.º 21
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);
        }
        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);
        }