Esempio n. 1
0
        void Setup()
        {
            // Do the things like create enemies and rooms and assign items to enemies

            var room1 = new Room("The Starting Room", "You awake to the sound of violence coming from the north, west to the south it is suspiciously quiet, An acrid smell permeates from the south.");

            var room2          = new Room("North Room", "its bland but there is a grotesque goblin staring at you");
            var poisonTrapRoom = new TrapRoom("Poison Room", "smells bad", 300);

            DeathRoom = poisonTrapRoom;
            room1.Exits.Add("north", room2);
            room2.Exits.Add("south", room1);

            CurrentRoom = room1;
            Start();
        }
Esempio n. 2
0
        void Setup()
        {
            // Do the things like create enemies and rooms and assign items to enemies
            Weapon Dagger          = new Weapon("Dull dagger", 15);
            Weapon EnchantedDagger = new Weapon("Enchanted Dagger", 50);
            Weapon Sword           = new Weapon("Old Sword", 25);
            Weapon Battleaxe       = new Weapon("Rusted Battleaxe", 30);
            Enemy  Goblin          = new Enemy("Gleb", 50);
            Enemy  Kobold          = new Enemy("Gromp", 75);

            Goblin.EquipWeapon(Dagger);
            Kobold.EquipWeapon(Dagger);
            Enemy Orc = new Enemy("Grawl", 75);

            Orc.EquipWeapon(Battleaxe);


            var room1 = new Room("The Starting Room", "You awake to the sound of violence coming from the north, west to the south it is suspiciously quiet, An acrid smell permeates from the south.");

            room1.Content.Add(Sword);
            var room2 = new Room("North Room", "its bland but there is a grotesque goblin staring at you");

            room2.Enemy = Goblin;
            var poisonTrapRoom = new TrapRoom("Poison Room", "smells bad", 300);
            var room3          = new Room("West of starting room", "It is a dimly lit room with a fire in the corner, sitting by the fire is kobold with its back to you there appears to be dried blood on the ground and a torn tapestry to the south");
            var secretRoom     = new Room("secret Room", "It appears to be an old storeroom poorly hidden. inside is a stool, utop that stool is a unlabled flask. and beside is a dagger engraved with uninteligable script");

            secretRoom.Content.Add(EnchantedDagger);
            // secretRoom.Content.Add(Potion)
            var bossRoom = new Room("Boss Room", "As you approach the door you get chills down your spine, maybe you should have thought more about this decision. Once inside you see a large Orc with a battleaxe waiting for you.");

            room1.Exits.Add("north", room2);
            room1.Exits.Add("south", poisonTrapRoom);
            room1.Exits.Add("west", room3);
            room1.Exits.Add("east", bossRoom);
            room3.Exits.Add("south", secretRoom);
            room3.Exits.Add("east", room1);
            secretRoom.Exits.Add("north", room3);
            room2.Exits.Add("south", room1);

            CurrentRoom = room1;
            Start();
        }