Beispiel #1
0
        public void Handle(IEvent @event)
        {
            _communicator.Communicate(_phraseBook.GetRandomPhrase());

            StarSystem nextSystem = _navigator.GetNextSystem();

            _galaxyMap.FindSystem(nextSystem.Name);
        }
        public void Handle(IEvent @event)
        {
            StarSystem nextSystem = _navigator.GetNextSystem();
            string     nextSystemName;

            if (nextSystem == null && !String.IsNullOrEmpty(_playerStatus.Destination))
            {
                _communicator.Communicate(_finalDestination.GetRandomPhrase());
                nextSystemName = _playerStatus.Destination;
            }
            else
            {
                _communicator.Communicate(_phraseBook.GetRandomPhrase());
                nextSystemName = nextSystem.Name;
            }

            _galaxyMap.FindSystem(nextSystemName);
        }
Beispiel #3
0
        public void Handle(IEvent @event)
        {
            StarSystem nextSystem = _navigator.GetNextSystem();

            _communicator.Communicate(string.Format(_phraseBook.GetRandomPhrase(), nextSystem.Name));
        }