public void Setup()
        {
            Boundary lobby      = new Boundary("Lobby", " You find yourself in the lobby, always on the lookout for HR and dodging darts as your coworkes shoot at you");
            Boundary mainOffice = new Boundary("Office", "You are around the office running around as you dodge the darts that are being shot at you. Meanwhile the day keeps on going. Remember HR is always lurking");
            Boundary myDesk     = new Boundary("Desk", "You come to your cubible thinking that it may be a safe space, but oh so wrong you were. You gotta keep shooting");
            Boundary breakRoom  = new Boundary("Cafe", "Even in the Cafe you aren't safe. You got to keep shooting");

            lobby.AddNeighborBoundary(mainOffice, true);
            myDesk.AddNeighborBoundary(breakRoom, true);
            mainOffice.AddNeighborBoundary(myDesk, true);
            lobby.AddNeighborBoundary(myDesk, true);
            lobby.AddNeighborBoundary(breakRoom, true);
            mainOffice.AddNeighborBoundary(breakRoom, true);

            Location = lobby;

            Item gun        = new Item("Cricket", 0, "Single Dart Nerf Blaster 10,000");
            Item playerAmmo = new Item("Dart", 5);
            Item ammoDesk   = new Item("Dart", 5);
            Item ammoMain   = new Item("Dart");
            Item ammoLobby  = new Item("Dart");
            Item ammoBreak  = new Item("Dart");

            gun.AmmoCount = 1;
            myDesk.Items.Add(ammoDesk);
            mainOffice.Items.Add(ammoMain);
            breakRoom.Items.Add(ammoBreak);
            lobby.Items.Add(ammoLobby);
            breakRoom.Items.Add(ammoBreak);

            Player = new Player("Joe");
            Player.Inventory.Add(gun);
            Player.Inventory.Add(playerAmmo);
            CoWorker = new CoWorker(Team());
        }
Exemple #2
0
        public void Setup()
        {
            Player.Inventory.Clear();

            Boundary cafeteria = new Boundary("Cafeteria", "Your adrenaline kicks in and you jolt up. Taking a quick assesment of the room you see the entry to the hallway. By the entrance you see the ship's doctor motionless under debris.");

            cafeteria.AltDescription = "You do another scan of the cafeteria. There's nothing else here for you. You hear an explosion nearby. You have to get to the escape pods!";

            // Boundary doctor = new Boundary("Doctor", "You rush to the doctor and check her pulse. Nothing. You start to tear at the debris on top of her to attempt CPR but discover she's been impaled as you lift the last piece of debris.\nIn both her hands you notice some nylocloth and a vial of chlorogen. Her failed attempt to alleviate the pain.");
            // doctor.AltDescription = "You check the doctor again. There's nothing you can do for her. You hear an explosion nearby. You have to get to the escape pods!";

            Boundary hallway = new Boundary("Hallway", "You burst into the hallway. You can run directly to the Port for the escape pods, try the Hololift to find a different Port at another level, check the Engineering room, or go back to the Cafeteria.");

            // NOTE Maybe add the losing scenario in the Engineering Room. Add alien encounter.
            Boundary engineering = new Boundary("Engineering", "You reach the Engineering room and the entryway is already open. The door panel sparks and emits smoke from fresh blaster marks.\nPeering into the room and see a Warpmancer soldier rummaging through the different compartments. He throws tools and parts over his shoulder as he looks for something specific to loot.\nYou notice one of the tools he's discarded is a splicer. You sneak into the room and hide behind some alloy crates continuing to watch the Warpmancer.\n3 quick, sharp pings sound off and the Warpmancer perks up and rushes back out the door.");

            // NOTE Still want to add an alien encounter in the Port.
            Boundary port = new Boundary("Port", "You reach the Escape Port entry and frantically hit the button to open the door. No response. You try to pry the doors open with your fingers but they don't budge. If only you could cut through the door somehow.");

            port.AltDescription = "You use the splicer to cut through the entry, pull the doors apart, and fall into the Escape Port. You rush to an escape pod, jump in, and hit the launch sequence.\nThe pod blasts through the open hatch and sends you to a safe distance. You watch the once mighty ship, The Venator, explode as you head towards the nearest planet. Alone...";

            Boundary hololift = new Boundary("Hololift", "You run to the hololift and hit the button to open the door. The doors open and you instantly get sucked out into the cold void of space. The vacuum of space sucks the scream out of your lungs as you see the enemy Warpmancer ship continue to fire at your ship. Your vision starts to blur and fade as the void embraces you into its fold.");

            Event doctor = new Event("Doctor", "You rush to the doctor and check her pulse. Nothing. You start to tear at the debris on top of her to attempt CPR but discover she's been impaled as you lift the last piece of debris.\nIn both her hands you notice some nylocloth and a vial of chlorogen. Her failed attempt to alleviate the pain.");

            Item splicer   = new Item("Splicer", "Used to splice tools or cut through heavy metals.");
            Item nylocloth = new Item("Nylocloth", "Durable yet flexible material. Used often for clothing.");
            Item chlorogen = new Item("Chlorogen", "Extremely potent anesthesia. Most commonly used in medical procedures. Use caution due to potency.");
            Item eek       = new Item("Equalizer", "Rapid-firing blaster. Nicknamed 'Eek' due to the high-pitched 'Eee' sound it makes when you hold down the trigger.");

            cafeteria.AddNeighborBoundary(hallway);
            // NOTE Take this out if using Event class
            // cafeteria.AddNeighborBoundary(doctor);
            hallway.AddNeighborBoundary(engineering);
            hallway.AddNeighborBoundary(port);
            hallway.AddNeighborBoundary(hololift);

            cafeteria.Events.Add(doctor);

            engineering.Items.Add(splicer);
            // NOTE Change these back to doctor if going back to doing events as boundaries
            cafeteria.Items.Add(nylocloth);
            cafeteria.Items.Add(chlorogen);

            Location = cafeteria;
        }
Exemple #3
0
        public void Setup()
        {
            start.AddNeighborBoundary(one);
            one.AddNeighborBoundary(two);
            two.AddNeighborBoundary(three);
            three.AddNeighborBoundary(four);
            four.AddNeighborBoundary(five);
            five.AddNeighborBoundary(six);
            six.AddNeighborBoundary(seven);
            seven.AddNeighborBoundary(eight);
            eight.AddNeighborBoundary(nine);
            eight.AddNeighborBoundary(ten);
            ten.AddNeighborBoundary(eleven);
            eleven.AddNeighborBoundary(twelve);
            twelve.AddNeighborBoundary(thirteen);
            thirteen.AddNeighborBoundary(fourteen);
            fourteen.AddNeighborBoundary(fifteen);
            fifteen.AddNeighborBoundary(sixteen);
            sixteen.AddNeighborBoundary(seventeen);
            seventeen.AddNeighborBoundary(eighteen);
            eighteen.AddNeighborBoundary(end);

            List <Item> allItems = new List <Item>();

            Item ektorp   = new Item("EKTORP", "Sofa, Lofallet beige *891.292.07");
            Item jappling = new Item("JÄPPLING", "Armchair, Kimstad dark brown *103.707.41");
            Item reggisor = new Item("REGISSÖR", "Coffee table, brown, glass *203.420.74");

            one.Items.Add(ektorp);
            one.Items.Add(jappling);
            one.Items.Add(reggisor);
            foreach (Item item in one.Items)
            {
                eighteen.Items.Add(item);
                allItems.Add(item);
            }

            Item bestaburs = new Item("BESTÅ BURS", "TV bench, high gloss white *302.691.29");

            two.Items.Add(bestaburs);
            foreach (Item item in two.Items)
            {
                eighteen.Items.Add(item);
                allItems.Add(item);
            }

            Item isfjorden   = new Item("ISFJORDEN", "Bedroom mirror stand, black-brown satin *302.174.99");
            Item kullen      = new Item("KULLEN", "Six piece dresser, black-brown *403.221.26");
            Item hemnes      = new Item("KNARREVIK", "Nightstand, black *303.811.83");
            Item brunkrissla = new Item("BRUNKRISSLA", "Duvet cover and pillowcases, lilac *504.402.47");
            Item kallkrasse  = new Item("KÄLLKRASSE", "Comforter, warmer *904.208.22");

            three.Items.Add(isfjorden);
            three.Items.Add(kullen);
            three.Items.Add(hemnes);
            three.Items.Add(brunkrissla);
            three.Items.Add(kallkrasse);
            foreach (Item item in three.Items)
            {
                eighteen.Items.Add(item);
                allItems.Add(item);
            }

            Item spisig  = new Item("SPISIG", "Children's play kitchen, white and pink *204.278.17");
            Item trofast = new Item("TROFAST", "Storage combination with boxes, black, pink *392.286.72");
            Item sniglar = new Item("SNIGLAR", "Crib, beech *502.485.41");

            four.Items.Add(spisig);
            four.Items.Add(trofast);
            four.Items.Add(sniglar);
            foreach (Item item in four.Items)
            {
                eighteen.Items.Add(item);
                allItems.Add(item);
            }

            Item millberget = new Item("MILLBERGET", "Swivel chair, Kimstad white *003.317.07");
            Item frede      = new Item("FREDDE", "Computer desk, black *502.190.44");

            five.Items.Add(millberget);
            five.Items.Add(frede);

            foreach (Item item in five.Items)
            {
                eighteen.Items.Add(item);
                allItems.Add(item);
            }

            Item malsjo   = new Item("MALSJÖ", "Glassware cabinet, black stained *003.277.72");
            Item hoghem   = new Item("HOGHEM", "Bar shelf, black-brown *103.894.44");
            Item skogsta  = new Item("SKOGSTA", "Dining table, acacia *704.192.64");
            Item leifarne = new Item("LEIFARNE", "Dining chair, dark yellow, Broringe black *093.041.96");

            six.Items.Add(malsjo);
            six.Items.Add(hoghem);
            six.Items.Add(skogsta);
            six.Items.Add(leifarne);
            foreach (Item item in six.Items)
            {
                eighteen.Items.Add(item);
                allItems.Add(item);
            }

            Item almaren = new Item("ÄLMAREN", "Kitchen faucet, stainless steel color *503.416.43");
            Item saljan  = new Item("SÄLJAN", "Countertop, black marble effect, laminate *603.356.94");

            seven.Items.Add(almaren);
            seven.Items.Add(saljan);
            foreach (Item item in seven.Items)
            {
                eighteen.Items.Add(item);
                allItems.Add(item);
            }

            Item marmeladApelsinFlader = new Item("MARMELAD APELSIN & FLÄDER", "Orange and elderflower marmalade, organic");
            Item smakrik = new Item("SMAKRIK", "Canola oil, wild garlic organic");

            eight.Items.Add(marmeladApelsinFlader);
            eight.Items.Add(smakrik);
            foreach (Item item in eight.Items)
            {
                allItems.Add(item);
            }

            Item swedishMeatballs = new Item("Swedish Meatballs", "Nourishment");
            Item salmonMeatballs  = new Item("Salmon Meatballs", "Nourishment");
            Item salad            = new Item("Blackberry Summer Salad", "Nourishment");
            Item cake             = new Item("Chockolate Conspiracy Cake", "Nourishment");

            nine.Items.Add(swedishMeatballs);
            nine.Items.Add(salmonMeatballs);
            nine.Items.Add(salad);
            nine.Items.Add(cake);

            Item fullandad = new Item("FULLÄNDAD", "5-piece kitchen utensil set, gray");
            Item idealisk  = new Item("IDEALISK", "Grater, stainless steel");
            Item rort      = new Item("RÖRT", "Cooking spoon and fork set, beech");
            Item elly      = new Item("ELLY", "Dish towels, white, blue");
            Item rajtan    = new Item("RAJTAN", "Spice jar, glass, aluminum");
            Item ikea365   = new Item("IKEA 365+", "Food container set, glass");
            Item oumbarlig = new Item("OUMBÄRLIG", "Frying pan");
            Item lockbete  = new Item("LOCKBETE", "Muffin pan, black");

            ten.Items.Add(fullandad);
            ten.Items.Add(idealisk);
            ten.Items.Add(rort);
            ten.Items.Add(elly);
            ten.Items.Add(rajtan);
            ten.Items.Add(ikea365);
            ten.Items.Add(oumbarlig);
            ten.Items.Add(lockbete);
            foreach (Item item in ten.Items)
            {
                allItems.Add(item);
            }

            Item hektar = new Item("HEKTAR", "Work lamp with wireless charging, dark gray");
            Item sillbo = new Item("SILLBO", "LED bulb, E26 140 lumen, globe, mirrored top bronze colored");

            eleven.Items.Add(hektar);
            eleven.Items.Add(sillbo);
            foreach (Item item in eleven.Items)
            {
                allItems.Add(item);
            }

            Item lack  = new Item("SKÅDIS", "Pegboard with containers hooks and elastic coards, white");
            Item flyt  = new Item("FLYT", "Magazine file bin, white");
            Item drona = new Item("DRÖNA", "Linen storage box, dark blue");

            twelve.Items.Add(lack);
            twelve.Items.Add(flyt);
            twelve.Items.Add(drona);
            foreach (Item item in twelve.Items)
            {
                allItems.Add(item);
            }

            Item kalkgrund = new Item("KALKGRUND", "Soap dispenser, chrome plated");
            Item trensum   = new Item("TRENSUM", "Vanity mirror, stainless steel");
            Item lilla     = new Item("LILLA", "Children's potty seat, green");
            Item immeln    = new Item("IMMELN", "Shower caddy, two tiers, zinc plated");
            Item svartsjon = new Item("SVARTSJÖN", "Toilet paper roll holder, black");

            thirteen.Items.Add(kalkgrund);
            thirteen.Items.Add(trensum);
            thirteen.Items.Add(lilla);
            thirteen.Items.Add(immeln);
            thirteen.Items.Add(svartsjon);
            foreach (Item item in thirteen.Items)
            {
                allItems.Add(item);
            }

            Item sigrunn  = new Item("SIGRUNN", "Plaid fabric sheet, white, multicolor");
            Item irmelin  = new Item("IRMELIN", "Flower pattern fabric, white, multicolor");
            Item vikfjard = new Item("VIKFJÄRD", "Towel set, blue");

            fourteen.Items.Add(sigrunn);
            fourteen.Items.Add(irmelin);
            fourteen.Items.Add(vikfjard);
            foreach (Item item in fourteen.Items)
            {
                allItems.Add(item);
            }

            Item koldby    = new Item("KOLDBY", "Cowhide Rug, brown");
            Item stillebak = new Item("STILLEBÄK", "Rug, low pile, blue");

            fifteen.Items.Add(koldby);
            fifteen.Items.Add(stillebak);
            foreach (Item item in fifteen.Items)
            {
                allItems.Add(item);
            }

            Item stopla   = new Item("STOPLA", "Wall clock");
            Item knoppang = new Item("KNOPPÄNG", "Posters with frames, set of 8, black");
            Item rotsund  = new Item("ROTSUND", "Mirror, white");

            sixteen.Items.Add(stopla);
            sixteen.Items.Add(knoppang);
            sixteen.Items.Add(rotsund);
            foreach (Item item in sixteen.Items)
            {
                allItems.Add(item);
            }

            Item pepparkorn = new Item("PEPPARKORN", "Vase, blue");
            Item utvandig   = new Item("UTVÄNDIG", "Decorative tray, natural");
            Item annanstans = new Item("ANNANSTANS", "Handmade decorative plate, black and brown");
            Item borrby     = new Item("BORRBY", "Lantern for candle, black indoor/outdoor");

            seventeen.Items.Add(pepparkorn);
            seventeen.Items.Add(utvandig);
            seventeen.Items.Add(annanstans);
            seventeen.Items.Add(borrby);
            foreach (Item item in seventeen.Items)
            {
                allItems.Add(item);
            }

            List <int> generateShoppingList = new List <int>();
            Random     random = new Random();
            int        itemIndex;

            for (int i = 0; i < 10; i++)
            {
                //NOTE this is an incorrect use a do while loop because if it's ever true then unfortunately an infinite loop is created,
                //if you're excluding duplicates then use the same .Contains() method with an if/else statement instead of a do/while
                do
                {
                    itemIndex = random.Next(allItems.Count);
                } while (generateShoppingList.Contains(itemIndex));
                generateShoppingList.Add(itemIndex);
            }

            foreach (int i in generateShoppingList)
            {
                ShoppingList.Add(allItems[i]);
            }

            start.Items.Add(gymkhana);
            eight.Items.Add(gymkhana);
            ShoppingCart = false;

            Location = start;
            Playing  = true;
        } //initialize all of your data for the application