/// Constructor for objects of class Helper public Bagger(Dictionary <string, IResponse> responses, CommandMapper commandMapper) { this._responses = responses; this._commandMapper = commandMapper; CommandName = "bag"; }
/// Constructor for objects of class Helper public Helper(Dictionary <string, IResponse> responses, CommandMapper commandMapper) { _responses = responses; _commandMapper = commandMapper; CommandName = "help"; }
/// Create the game and initialise its internal map. public Game() { _places = Place.CreatePlaces("Text Documents/place_data.txt"); CurrentPlace = _places["Forest"]; _commandMapper = new CommandMapper(this); }