Beispiel #1
0
        public JumpCommand(ICommunicator communicator, INavigator navigator, JumpPhrases jumpPhrases, Preferences preferences)
        {
            _communicator = communicator;
            _navigator    = navigator;

            _isPhrase    = jumpPhrases.IsPhrase;
            _arePhrase   = jumpPhrases.ArePhrase;
            _andPhrase   = jumpPhrases.AndPhrase;
            _puralPhrase = jumpPhrases.PluralPhrase;

            _jumpPhraseBook     = PhraseBook.Ingest(jumpPhrases.Jumping);
            _skipPhraseBook     = PhraseBook.Ingest(jumpPhrases.Skipping);
            _scanPhraseBook     = PhraseBook.Ingest(jumpPhrases.Scanning);
            _alreadyScannedBook = PhraseBook.Ingest(jumpPhrases.AlreadyScanned);

            _communicateSkippableSystems = preferences.CommunicateSkippableSystems;
        }
Beispiel #2
0
        public JumpCommand(ICommunicator communicator, INavigator navigator, JumpPhrases jumpPhrases, Preferences preferences, CelestialValues values, ILogger logger)
        {
            _communicator = communicator;
            _navigator    = navigator;
            _values       = values;
            _logger       = logger;

            _isPhrase     = jumpPhrases.IsPhrase;
            _arePhrase    = jumpPhrases.ArePhrase;
            _andPhrase    = jumpPhrases.AndPhrase;
            _pluralPhrase = jumpPhrases.PluralPhrase;

            _jumpPhraseBook     = PhraseBook.Ingest(jumpPhrases.Jumping);
            _skipPhraseBook     = PhraseBook.Ingest(jumpPhrases.Skipping);
            _scanPhraseBook     = PhraseBook.Ingest(jumpPhrases.Scanning);
            _alreadyScannedBook = PhraseBook.Ingest(jumpPhrases.AlreadyScanned);
            _systemValueBook    = PhraseBook.Ingest(jumpPhrases.SystemValue);

            _communicateSkippableSystems     = preferences.CommunicateSkippableSystems;
            _onlyCommunicateDuringExpedition = preferences.OnlyCommunicateDuringExpedition;
        }