コード例 #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();
 }
コード例 #2
0
ファイル: game.cs プロジェクト: rmmcosta/intro_CS_CSharp
        /// 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();
        }