public MoveCharRequestStrategy(ILogger logger, ICharacterActionManager charActionManager, ICharacterInfo charInfo, PlayerHandler playerHandler) { _logger = logger ?? throw new Exception("MoveCharRequestStrategy - logger cannot be NULL!"); _charActionManager = charActionManager ?? throw new Exception("MoveCharRequestStrategy - char. action manager cannot be NULL!"); _charInfo = charInfo ?? throw new Exception("MoveCharRequestStrategy - char. info cannot be NULL!"); _playerHandler = playerHandler ?? throw new Exception("MoveCharRequestStrategy - player handler cannot be NULL!"); }
public SwitchPlaceRequestStrategy(ILogger logger, ICharacterActionManager charActionManager, ICharacterInfo charInfo, IGeoDataInfo geoDataInfo, PlayerHandler playerHandler) { _logger = logger ?? throw new Exception("SwitchPlaceRequestStrategy - logger cannot be NULL!"); _charActionManager = charActionManager ?? throw new Exception("SwitchPlaceRequestStrategy - char. action manager cannot be NULL!"); _charInfo = charInfo ?? throw new Exception("SwitchPlaceRequestStrategy - char. info cannot be NULL!"); _playerHandler = playerHandler ?? throw new Exception("SwitchPlaceRequestStrategy - player handler cannot be NULL!"); _geoDataInfo = geoDataInfo ?? throw new Exception("SwitchPlaceRequestStrategy - geo data info cannot be NULL!"); }