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); }
public void Handle(IEvent @event) { StarSystem nextSystem = _navigator.GetNextSystem(); _communicator.Communicate(string.Format(_phraseBook.GetRandomPhrase(), nextSystem.Name)); }