public ControllerPackage_en_au_2d(IConfigurationRoot configuration) { _configuration = configuration; GetAndSetDimensions(); _geoLocator = new GeoLocator_2d_NESW(_xDimension, _yDimension); _commandInterpreter = new CommandInterpreter_en_au(); _commandController = new CommandController_en_au(_commandInterpreter, _geoLocator); }
public CommandControllerBase(CommandInterpreterBase commandInterpreter, GeoLocatorBase geoLocator) { _geoLocator = geoLocator; _commandInterpreter = commandInterpreter; _commandInterpreter.CommandMove += HandleMoveEvent; _commandInterpreter.CommandLeft += HandleLeftEvent; _commandInterpreter.CommandRight += HandleRightEvent; _commandInterpreter.CommandPlace += HandlePlaceEvent; _commandInterpreter.CommandReport += HandleReportEvent; }
public CommandController_en_au(CommandInterpreterBase commandInterpreter, GeoLocatorBase geoLocator) : base(commandInterpreter, geoLocator) { }