private void CreateObjects() { livingRoom = new RoomWithDoor("Living Room", "an antique carpet", "inside the closet", "an oak door with a brass knob"); frontYard = new OutsideWithDoor("Front Yard", false, "an oak door with a brass knob"); garden = new OutsideWithHidingPlace("Garden", false, "inside the shed"); backYard = new OutsideWithDoor("Back yard", true, "a screen door"); diningRoom = new RoomWithHidingPlace("Dining room", "chrystal chandelier", "in the tall armoire"); kitchen = new RoomWithDoor("Kitchen", "stainless steel appliances", "in the cabinet", "a screen door"); stairs = new Room("Stairs", "a wooden bannister"); hallway = new RoomWithHidingPlace("Upstairs hallway", "a picture of a dog", "in the closet"); bathroom = new RoomWithHidingPlace("Bathroom", "a sink and a toilet", "in the shower"); masterBedroom = new RoomWithHidingPlace("Master bedroom", "a large bed", "under the bed"); secondBedRoom = new RoomWithHidingPlace("Second bedroom", "a small bed", "under the bed"); driveway = new OutsideWithHidingPlace("Driveway", true, "in the garage"); livingRoom.Exits = new Location[] { diningRoom, stairs }; diningRoom.Exits = new Location[] { livingRoom, kitchen }; frontYard.Exits = new Location[] { backYard, garden, driveway }; garden.Exits = new Location[] { frontYard, backYard }; backYard.Exits = new Location[] { garden, frontYard }; kitchen.Exits = new Location[] { diningRoom }; stairs.Exits = new Location[] { livingRoom, hallway }; hallway.Exits = new Location[] { stairs, bathroom, masterBedroom, secondBedRoom }; bathroom.Exits = new Location[] { hallway }; masterBedroom.Exits = new Location[] { hallway }; secondBedRoom.Exits = new Location[] { hallway }; driveway.Exits = new Location[] { backYard, frontYard }; //For the IHasExteriorDoor object, we need to set where their door goes to livingRoom.DoorLocation = frontYard; backYard.DoorLocation = kitchen; frontYard.DoorLocation = livingRoom; kitchen.DoorLocation = backYard; }
private void createObjects() { livingRoom = new RoomWithDoor("Living Room", "an antique carpet", "an oak door with a brass knob"); diningRoom = new Room("Dining Room", "crystal chandelier"); kitchen = new RoomWithDoor("Kitchen", "stainless steel appliances", "screen door"); frontYard = new OutsideWithDoor("Front Yard", false, "an oak door with a brass knob"); backYard = new OutsideWithDoor("Back Yard", true, "screen door"); garden = new Outside("Garden", false); frontYard.Exits = new Location[2] { livingRoom, garden }; livingRoom.Exits = new Location[2] { frontYard, diningRoom }; diningRoom.Exits = new Location[2] { livingRoom, kitchen }; kitchen.Exits = new Location[2] { diningRoom, backYard }; backYard.Exits = new Location[2] { kitchen, garden }; garden.Exits = new Location[2] { frontYard, backYard }; }
public void CreateObjects() { DiningRoom = new Room("Dining Room", "a glass chandelier"); Stairs = new Room("Second Story Stairs", "a wooden banister"); LivingRoom = new RoomWithDoor("Living Room", "an antique carpet", "a wooden door with an old brass knob"); FrontYard = new OutsideWithDoor("Front Yard", "a wooden door", false); BackYard = new OutsideWithDoor("Back Yard", "a screen door", true); Kitchen = new RoomWithHidingPlaceAndDoor("Kitchen", "a complete cabinet set", " a glass door", "in a cabinet"); Bathroom = new RoomWithHidingPlace("Bathroom", " a sink and a toilet", "in the shower"); MasterBedroom = new RoomWithHidingPlace("Master Bedroom", "a large bed", "under the large bed"); SecondBedroom = new RoomWithHidingPlace("Second Bedroom", "a small bed", "under the small bed"); UpstairsHallway = new RoomWithHidingPlace("Upstairs Hallway", "a picture of a dog", "in the hall closet"); Driveway = new OutsideWithHidingPlace("Driveway", false, "in the garage"); Garden = new OutsideWithHidingPlace("Garden", false, "in a shed"); DiningRoom.Exits = new Location[2] { LivingRoom, Kitchen }; Stairs.Exits = new Location[2] { LivingRoom, UpstairsHallway }; LivingRoom.Exits = new Location[2] { DiningRoom, Stairs }; FrontYard.Exits = new Location[3] { Garden, BackYard, Driveway }; BackYard.Exits = new Location[3] { Garden, FrontYard, Driveway }; Kitchen.Exits = new Location[1] { DiningRoom }; Bathroom.Exits = new Location[1] { UpstairsHallway }; MasterBedroom.Exits = new Location[1] { UpstairsHallway }; SecondBedroom.Exits = new Location[1] { UpstairsHallway }; UpstairsHallway.Exits = new Location[4] { Stairs, MasterBedroom, SecondBedroom, Bathroom }; Driveway.Exits = new Location[2] { FrontYard, BackYard }; Garden.Exits = new Location[2] { FrontYard, BackYard }; LivingRoom.DoorLocation = FrontYard; FrontYard.DoorLocation = LivingRoom; Kitchen.DoorLocation = BackYard; BackYard.DoorLocation = Kitchen; }
public void CreateObject() { garden = new OutsideWithHidingPlace("Garden", false, "inside the shed"); frontYard = new OutsideWithDoor("FrontYard", false, "an heavy-looking oak door"); backYard = new OutsideWithDoor("BackYard", true, "a screen door"); driveway = new OutsideWithHidingPlace("Driveway", true, "in the garage"); diningRoom = new RoomWithHidingPlace("DiningRoom", "a crystal chandelier", "in the tall armoire"); livingRoom = new RoomWithDoor("Living Room", "an antique carpet", "inside the closet", "an oak door with a brass knob"); kitchen = new RoomWithDoor("Kitchen", "stainless steel appliances", "in the cabinet", "a screen door"); stairs = new Room("Stairs", "a wooden bannister"); hallway = new RoomWithHidingPlace("Upstairs Hallway", "a picture of dog", "in the closet"); bathroom = new RoomWithHidingPlace("Bathroom", "a sink and a toilet", "in the shower"); masterBedroom = new RoomWithHidingPlace("MasterBedroom", "a large bed", "under the bed"); secondBedroom = new RoomWithHidingPlace("Second Bedroom", "a small bed", "under the bed"); garden.Exits = new Location[] { frontYard, backYard }; frontYard.Exits = new Location[] { garden, backYard, driveway }; backYard.Exits = new Location[] { garden, frontYard, driveway }; driveway.Exits = new Location[] { backYard, frontYard }; diningRoom.Exits = new Location[] { livingRoom, kitchen }; livingRoom.Exits = new Location[] { diningRoom, stairs }; kitchen.Exits = new Location[] { diningRoom }; stairs.Exits = new Location[] { livingRoom, hallway }; hallway.Exits = new Location[] { stairs, bathroom, masterBedroom, secondBedroom }; bathroom.Exits = new Location[] { hallway }; masterBedroom.Exits = new Location[] { hallway }; secondBedroom.Exits = new Location[] { hallway }; livingRoom.DoorLocation = frontYard; frontYard.DoorLocation = livingRoom; kitchen.DoorLocation = backYard; backYard.DoorLocation = kitchen; opponent = new Opponent(frontYard); checkButton.Visible = false; goHereButton.Visible = false; exits.Visible = false; goThroughTheDoorButton.Visible = false; Moves = 0; }
private void CreateObjects() { livingRoom = new RoomWithDoor("an antique carpet", "Living Room", "an oak door with a brass knob"); diningRoom = new Room( "a crystal chandelier","Dining Room"); kitchen = new RoomWithDoor("stainless steel appliances", "Kitchen", "a screen door"); frontYard = new OutsideWithDoor(false, "Front Yard", "an oak door with a brass knob"); backYard = new OutsideWithDoor(true, "Back Yard", "a screen door"); garden = new Outside(false,"Garden"); diningRoom.Exits = new Location[] { livingRoom, kitchen }; livingRoom.Exits = new Location[] { diningRoom }; kitchen.Exits = new Location[] { diningRoom }; frontYard.Exits = new Location[] { backYard, garden }; backYard.Exits = new Location[] { frontYard, garden }; garden.Exits = new Location[] { backYard, frontYard }; livingRoom.location = frontYard; frontYard.location= livingRoom; kitchen.location = backYard; backYard.location = kitchen; }
public void CreateObjects() { _frontYard = new OutsideWithDoor("Front Yard", false, "An Oak Door With A Brass Knob"); _backYard = new OutsideWithDoor("Back Yard", true, "A Screen Door"); _garden = new Outside("Garden", false); _livingRoom = new RoomWithDoor("Living Room", "Antique Carpet", "An Oak Door With A Brass Knob"); _kitchen = new RoomWithDoor("Kitchen", "Stainless Steel appliances", "A Screen Door"); _diningRoom = new Room("Dining Room", "Crystal Chandelier"); _frontYard.Exits = new Location[] { _backYard, _garden }; _backYard.Exits = new Location[] { _frontYard, _garden }; _garden.Exits = new Location[] { _frontYard, _backYard }; _livingRoom.Exits = new Location[] { _diningRoom }; _kitchen.Exits = new Location[] { _diningRoom }; _diningRoom.Exits = new Location[] { _livingRoom, _kitchen }; _frontYard.DoorLocation = _livingRoom; _livingRoom.DoorLocation = _frontYard; _backYard.DoorLocation = _kitchen; _kitchen.DoorLocation = _backYard; }
private void CreateObjects() { Garden = new OutsideWithHidingPlace("Garden", false, "inside the shed"); FrontYard = new OutsideWithDoor("Front Yard", false, "a heavy looking oak door"); BackYard = new OutsideWithDoor("Back Yard", true, "a screen door"); LivingRoom = new RoomWithDoor("Living Room", "antique carpet", "an oak door with a brass handle", "in the closet"); Kitchen = new RoomWithDoor("Kitchen", "stainless steel appliances", "a screen door", "in the cabinet"); DiningRoom = new RoomWithHidingPlace("Dining Room", "a crystal chandelier", "in the tall armoire"); // Added 2/8/16 Stairs = new Room("Stairs", "a wooden bannister"); UpstairsHallway = new RoomWithHidingPlace("Upstairs Hallway", "a picture of a dog", "in the closet"); MasterBedroom = new RoomWithHidingPlace("Master Bedroom", "a large bed", "under the bed"); SecondBedroom = new RoomWithHidingPlace("Second Bedroom", "a small bed", "under the bed"); Bathroom = new RoomWithHidingPlace("Bathroom", "a sink and a toilet", "in the shower"); Driveway = new OutsideWithHidingPlace("Driveway", false, "in the garage"); Garden.Exits = new Location[] { FrontYard, BackYard }; FrontYard.Exits = new Location[] { BackYard, Garden, Driveway }; BackYard.Exits = new Location[] { FrontYard, Garden, Driveway }; LivingRoom.Exits = new Location[] { DiningRoom, Stairs }; Kitchen.Exits = new Location[] { DiningRoom }; DiningRoom.Exits = new Location[] { LivingRoom, Kitchen }; //Added 2/8/16 Stairs.Exits = new Location[] { LivingRoom, UpstairsHallway }; UpstairsHallway.Exits = new Location[] { Stairs, MasterBedroom, SecondBedroom, Bathroom }; MasterBedroom.Exits = new Location[] { UpstairsHallway }; SecondBedroom.Exits = new Location[] { UpstairsHallway }; Bathroom.Exits = new Location[] { UpstairsHallway }; Driveway.Exits = new Location[] { FrontYard, BackYard }; LivingRoom.DoorLocation = FrontYard; FrontYard.DoorLocation = LivingRoom; Kitchen.DoorLocation = BackYard; BackYard.DoorLocation = Kitchen; }
private void CreateObjects() { livingRoom = new RoomWithDoor("Living Room", "an antique carpet", "an oak door with a brass knob", "inside the closet"); kitchen = new RoomWithDoor("Kitchen", "stainless steel appliances", "a screen door", "in the cabinet"); diningRoom = new RoomWithHidingPlace("Dining Room", "a crystal chandelier", "in the tall armoire"); stairs = new Room("Stairs", "a wooden bannister"); upstairsHallway = new RoomWithHidingPlace("Upstairs Hallway","a picture of a dog","in the closet"); masterBedroom = new RoomWithHidingPlace("Master Bedroom", "a large bed", "under the bed"); secondBedroom = new RoomWithHidingPlace("Second Bedroom", "a small bed", "under the bed"); bathroom = new RoomWithHidingPlace("Bathroom", "a sink and a toilet", "in the shower"); frontYard = new OutsideWithDoor("Front Yard", false, "an oak door with a brass knob"); backYard = new OutsideWithDoor("Back Yard", true, "a screen door"); garden = new OutsideWithHidingPlace("Garden", false, "inside the shed"); driveway = new OutsideWithHidingPlace("Driveway", false, "in the garage"); livingRoom.Exits = new Location[] { diningRoom, stairs }; stairs.Exits = new Location[] { livingRoom, upstairsHallway }; kitchen.Exits = new Location[] {diningRoom }; diningRoom.Exits = new Location[] { livingRoom, kitchen }; upstairsHallway.Exits = new Location[] { masterBedroom, secondBedroom, bathroom, stairs }; masterBedroom.Exits = new Location[] { upstairsHallway }; secondBedroom.Exits = new Location[] { upstairsHallway }; bathroom.Exits = new Location[] { upstairsHallway }; frontYard.Exits = new Location[] { backYard, garden, driveway }; backYard.Exits = new Location[] { frontYard, garden, driveway }; garden.Exits = new Location[] { frontYard, backYard }; driveway.Exits = new Location[] { frontYard, backYard }; livingRoom.DoorLocation = frontYard; frontYard.DoorLocation = livingRoom; kitchen.DoorLocation = backYard; backYard.DoorLocation = kitchen; opponent = new Opponent(frontYard); }
private void CreateObjects() { livingRoom = new RoomWithDoor("Living Room", "an antique carpet", "an oak door with a brass knob", "inside the closet"); kitchen = new RoomWithDoor("Kitchen", "stainless steel appliances", "a screen door", "in the cabinet"); diningRoom = new RoomWithHidingPlace("Dining Room", "a crystal chandelier", "in the tall armoire"); stairs = new Room("Stairs", "a wooden bannister"); upstairsHallway = new RoomWithHidingPlace("Upstairs Hallway", "a picture of a dog", "in the closet"); masterBedroom = new RoomWithHidingPlace("Master Bedroom", "a large bed", "under the bed"); secondBedroom = new RoomWithHidingPlace("Second Bedroom", "a small bed", "under the bed"); bathroom = new RoomWithHidingPlace("Bathroom", "a sink and a toilet", "in the shower"); frontYard = new OutsideWithDoor("Front Yard", false, "an oak door with a brass knob"); backYard = new OutsideWithDoor("Back Yard", true, "a screen door"); garden = new OutsideWithHidingPlace("Garden", false, "inside the shed"); driveway = new OutsideWithHidingPlace("Driveway", false, "in the garage"); livingRoom.Exits = new Location[] { diningRoom, stairs }; stairs.Exits = new Location[] { livingRoom, upstairsHallway }; kitchen.Exits = new Location[] { diningRoom }; diningRoom.Exits = new Location[] { livingRoom, kitchen }; upstairsHallway.Exits = new Location[] { masterBedroom, secondBedroom, bathroom, stairs }; masterBedroom.Exits = new Location[] { upstairsHallway }; secondBedroom.Exits = new Location[] { upstairsHallway }; bathroom.Exits = new Location[] { upstairsHallway }; frontYard.Exits = new Location[] { backYard, garden, driveway }; backYard.Exits = new Location[] { frontYard, garden, driveway }; garden.Exits = new Location[] { frontYard, backYard }; driveway.Exits = new Location[] { frontYard, backYard }; livingRoom.DoorLocation = frontYard; frontYard.DoorLocation = livingRoom; kitchen.DoorLocation = backYard; backYard.DoorLocation = kitchen; opponent = new Opponent(frontYard); }
private void CreateLocations() { livingRoom = new RoomWithDoor("Living Room", "an antique carpet", "an oak door with a brass knob"); diningRoom = new Room("Dining Room", "a chrystal chandelier"); kitchen = new RoomWithDoor("Kitchen", "stainles steel appliances", "a screen door"); frontYard = new OutsideWithDoor("Front Yard", false, "an oak door with a brass knob"); backYard = new OutsideWithDoor("Back Yard", true, "a screen door"); garden = new Outside("Garden", false); diningRoom.Exits = new Location[] { livingRoom, kitchen }; livingRoom.Exits = new Location[] { diningRoom }; kitchen.Exits = new Location[] { livingRoom }; frontYard.Exits = new Location[] { garden }; backYard.Exits = new Location[] { garden }; garden.Exits = new Location[] { frontYard, backYard }; livingRoom.DoorLocation = frontYard; frontYard.DoorLocation = livingRoom; kitchen.DoorLocation = backYard; backYard.DoorLocation = kitchen; }