Пример #1
0
 /// Constructor for objects of class Helper
 public Bagger(Dictionary <string, IResponse> responses,
               CommandMapper commandMapper)
 {
     this._responses     = responses;
     this._commandMapper = commandMapper;
     CommandName         = "bag";
 }
Пример #2
0
 /// Constructor for objects of class Helper
 public Helper(Dictionary <string, IResponse> responses,
               CommandMapper commandMapper)
 {
     _responses     = responses;
     _commandMapper = commandMapper;
     CommandName    = "help";
 }
Пример #3
0
 /// 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);
 }