Пример #1
0
 /// Constructor for objects of class Helper
 public Helper(Dictionary<string, Response> responses,
             CommandMapper commandMapper)
 {
     this.responses = responses;
      this.commandMapper = commandMapper;
      CommandName = "help";
 }
Пример #2
0
        private Dictionary<string, Place> places; //places can be found by name

        #endregion Fields

        #region Constructors

        /// Create the game and initialise its internal map.
        public Game()
        {
            places = Place.createPlaces("place_data.txt");
             CurrentPlace = places["outside"];
             commandMapper = new CommandMapper(this);
        }