Beispiel #1
0
        public void initialize()
        {
            Roomlist.Add(Kitchen);
            Roomlist.Add(Street);
            Roomlist.Add(Floor);
            Roomlist.Add(Courtyard);
            Roomlist.Add(Dealerroom);
            Roomlist.Add(Growroom);
            Roomlist.Add(Wayhome);

            Room.addExitNorth(Street, Floor);
            Room.addExitWest(Street, Courtyard);
            Room.addExitEast(Floor, Kitchen);
            Room.addExitWest(Floor, Growroom);
            Room.addExitNorth(Floor, Dealerroom);
            Room.addExitEast(Street, Wayhome);

            Kitchen.RoomInventory.Add(Knife);
            Kitchen.RoomInventory.Add(Potion);
            //Growroom.RoomInventory.Add(Herbs);
            Growroom.RoomInventory.Add(Plants);
            Courtyard.RoomInventory.Add(Baseballbat);

            Kitchen.CharacterList.Add(Ladysboyfriend);
            Floor.CharacterList.Add(Man);
            Floor.CharacterList.Add(Lady);
            Dealerroom.CharacterList.Add(Dealer);
            Courtyard.CharacterList.Add(Penn);

            Ladysboyfriend.Characterinventory.Add(Pistol);
            Dealer.Characterinventory.Add(Herbs);
            //Character.giveweapon(Ladysboyfriend, Pistol);
            Knife.isUsableHere  = Growroom;
            Dollar.isUsableHere = Dealerroom;

            Player.Location = Street;
            //Player.Pocket = Dollar;
            //Penn.Pocket = Dollar;

            Player.Characterinventory.Add(Dollar);
            Penn.Characterinventory.Add(Dollar);
            Character.getmoney(Player, Dollar, 50);
            Character.getmoney(Penn, Dollar, 5);

            Console.WriteLine(Startuptext);
            Console.Read();
            Console.Write("...50 Dollar have been added to your inventory.\n\n");

            Console.WriteLine("You just spawned in the " + Player.Location.Name + ". Find a way to get your Herbs followed by the walk to your home again.");

            Console.WriteLine("\nType any command or 'h' / 'help' to get the command list");
        }
Beispiel #2
0
        public void initialize()
        {
            Room.addExitNorth(Foyer, Dancefloor);
            Room.addExitEast(Foyer, Toilet);
            Room.addExitWest(Dancefloor, OutdoorArea);
            Room.addExitNorth(Dancefloor, DJDesk);
            Room.addExitEast(Dancefloor, Bar);
            Player.Location = Foyer;


            Foyer.RoomInventory.Add(Cellphone);
            Foyer.CharacterList.Add(Security);

            Toilet.CharacterList.Add(CleaningLady);
            Toilet.RoomInventory.Add(CarKeys);

            Dancefloor.CharacterList.Add(Bodybuilder);

            OutdoorArea.CharacterList.Add(Lady);
            OutdoorArea.RoomInventory.Add(Gun);

            DJDesk.CharacterList.Add(DJ);
            DJDesk.RoomInventory.Add(Glass);

            Bar.CharacterList.Add(Barkeeper);
            Bar.RoomInventory.Add(BeerBottle);

            CleaningLady.Characterinventory.Add(Rolex);
            Barkeeper.Characterinventory.Add(BeerBottle);

            Console.WriteLine(Startuptext);

            Console.WriteLine("Type 'l' or 'look' to get a describtion of your location and its exits.");
            Console.WriteLine("To navigate between the different Spots type e.g. 'n' or 'north'.");
            Console.WriteLine("Type 'h' or 'help' to get the command list.");
            Console.WriteLine("\nType any command to continue... ");
            Console.WriteLine("You are in the " + Player.Location.Name);
        }