Beispiel #1
0
 public void yes(CommandParameters commandParameters)
 {
     if (ministeratdoor)
     {
         msg(messages.messages[247]);
         Character      daughter   = (Character)currentGame.gameObjects["daughter"];
         Rooms.RoomBase livingRoom = (Rooms.RoomBase)currentGame.gameObjects["living room"];
         currentGame.AddToRoom(livingRoom, daughter);
     }
 }
 public void go(CommandParameters commandParameters)
 {
     try
     {
         Rooms.RoomBase roomToEnter = currentGame.currentRoom.exits.Where(p => p.Key.direction == commandParameters.commandObjects[1].ObjectName).First().Value;
         currentGame.EnterRoom(roomToEnter);
     }
     catch
     {
         msg("\nYou can't go " + commandParameters.commandObjects[1].ObjectName);
     }
 }