Exemplo n.º 1
0
 /// Create the game and initialise its internal map.
 public Game()
 {
     places = Place.createPlaces("place_data.txt");
      currentPlace = places["outside"];
      quitter =  new Quitter();
      goer = new Goer(this);
      Dictionary<string, string> helpDetails =
     new Dictionary<string, string>();
      helper = new Helper(helpDetails);
      helpDetails["help"] = helper.Help();
      helpDetails["go"] = goer.Help();
      helpDetails["quit"] = quitter.Help();
 }
Exemplo n.º 2
0
        /// Create the game and initialise its internal map.
        public Game()
        {
            places       = Place.createPlaces("place_data.txt");
            currentPlace = places["outside"];
            quitter      = new Quitter();
            goer         = new Goer(this);
            Dictionary <string, string> helpDetails =
                new Dictionary <string, string>();

            helper = new Helper(helpDetails);
            helpDetails["help"] = helper.Help();
            helpDetails["go"]   = goer.Help();
            helpDetails["quit"] = quitter.Help();
        }