Ejemplo n.º 1
0
 //probably shouldn't be static
 //Functions
 public static void GoToLocation(Location location)
 {
     // If your choice is 1 (the first choice)
     if (location.GetRoom() == "Home")
     {
         RunHomeStory();
     }
     //check to see if your choice is the same list value as the Home location
     if (Player.dave.m_location.GetRoom().IndexOf("Home") == 0)
     {
         Player.dave.m_location.SetRoom("Home");
     }
     if (Player.dave.m_location.GetRoom().IndexOf("McDonalds") == 0)
     {
         //go to mcdonalds
     }
     if (Player.dave.m_location.GetRoom().IndexOf("Daichi's House") == 0)
     {
         //go to daichi's house
     }
 }