Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- namespace museum2
- {
- class Program
- {
- static void Main(string[] args)
- {
- List<Room> rooms = new List<Room>();
- rooms.Add(new Room("Entrance"));
- rooms.Add(new Room("Hallway"));
- rooms.Add(new Room("Green Room"));
- //Artwork monaLisa = new Artwork("Mona Lisa", "famous painting", "DaVinci");
- // connect neighboring room to entrence
- // Green room
- // Green room artwork
- // Red room
- // Purple room
- // Blue room
- // Black room
- //Room currentRoom = entrance;
- //while (true)
- //{
- // Console.WriteLine("You are in:" + currentRoom.getName());
- // currentRoom.printArtworks();
- // Room roomUp = currentRoom.getRoomUp();
- // Room roomRight = currentRoom.getRoomRight();
- // Room roomDown = currentRoom.getRoomDown();
- // Room roomLeft = currentRoom.getRoomLeft();
- // if (roomUp != null)
- // {
- // Console.WriteLine(roomUp.getName() + "is up, write \"f\" to get there.");
- // }
- // if (roomRight != null)
- // {
- // Console.WriteLine(roomRight.getName() + " is to the right, write \"r\" to get there.");
- // }
- // if (roomDown != null)
- // {
- // Console.WriteLine(roomDown.getName() + " is downward, write \"d\" to get there.");
- // }
- // if (roomLeft != null)
- // {
- // Console.WriteLine(roomLeft.getName() + " is to the left, write \"l\" to get there.");
- // }
- // Console.Write("write which direction you want to go: ");
- // string answer = Console.ReadLine();
- // switch (answer)
- // {
- // case "f":
- // if (roomUp != null)
- // {
- // currentRoom = roomUp;
- // }
- // else
- // {
- // Console.WriteLine("There is no room above.");
- // }
- // break;
- // case "r":
- // if (roomRight != null)
- // {
- // currentRoom = roomRight;
- // }
- // else
- // {
- // Console.WriteLine("There is no room on the right.");
- // }
- // break;
- // case "d":
- // if (roomDown != null)
- // {
- // currentRoom = roomDown;
- // }
- // else
- // {
- // Console.WriteLine("There is no room below.");
- // }
- // break;
- // case "l":
- // if (roomLeft != null)
- // {
- // currentRoom = roomLeft;
- // }
- // else
- // {
- // Console.WriteLine("There is no room on the left.");
- // }
- // break;
- // }
- // Console.WriteLine();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement