Ejemplo n.º 1
0
        private void IdleState()
        {
            var mission = Mission;

            if (mission == null)
            {
                State = StorylineState.Done;
                return;
            }

            AgentId = mission.AgentId;
            var agent = Cache.Instance.DirectEve.GetAgentById(AgentId);

            if (agent == null)
            {
                Logging.Log("Storyline: Unknown agent [" + AgentId + "]");

                State = StorylineState.Done;
                return;
            }

            Logging.Log("Storyline: Going to do [" + mission.Name + "] for agent [" + agent.Name + "]");

            State      = StorylineState.Arm;
            _storyline = _storylines[Cache.Instance.FilterPath(mission.Name)];
        }
Ejemplo n.º 2
0
        private void IdleState()
        {
            DirectAgentMission currentStorylineMission = StorylineMission;

            if (currentStorylineMission == null)
            {
                _nextStoryLineAttempt         = DateTime.UtcNow.AddMinutes(15);
                _States.CurrentStorylineState = StorylineState.Done;
                Cache.Instance.MissionName    = String.Empty;
                return;
            }

            Cache.Instance.CurrentStorylineAgentId = currentStorylineMission.AgentId;
            DirectAgent storylineagent = Cache.Instance.DirectEve.GetAgentById(Cache.Instance.CurrentStorylineAgentId);

            if (storylineagent == null)
            {
                Logging.Log("Storyline", "Unknown agent [" + Cache.Instance.CurrentStorylineAgentId + "]", Logging.Yellow);

                _States.CurrentStorylineState = StorylineState.Done;
                return;
            }

            Logging.Log("Storyline", "Going to do [" + currentStorylineMission.Name + "] for agent [" + storylineagent.Name + "] AgentID[" + Cache.Instance.CurrentStorylineAgentId + "]", Logging.Yellow);
            Cache.Instance.MissionName = currentStorylineMission.Name;

            _highSecChecked = false;
            _States.CurrentStorylineState = StorylineState.Arm;
            _storyline = _storylines[Cache.Instance.FilterPath(currentStorylineMission.Name.ToLower())];
        }
Ejemplo n.º 3
0
 public void Reset()
 {
     State      = StorylineState.Idle;
     AgentId    = 0;
     _storyline = null;
     _agentInteraction.State = AgentInteractionState.Idle;
     _traveler.State         = TravelerState.Idle;
     _traveler.Destination   = null;
 }
Ejemplo n.º 4
0
 public void Reset()
 {
     //Logging.Log("Storyline", "Storyline.Reset", Logging.White);
     _States.CurrentStorylineState          = StorylineState.Idle;
     Cache.Instance.CurrentStorylineAgentId = 0;
     _storyline = null;
     _States.CurrentAgentInteractionState = AgentInteractionState.Idle;
     _States.CurrentTravelerState         = TravelerState.Idle;
     Traveler.Destination = null;
 }
Ejemplo n.º 5
0
        private void IdleState()
        {
            var mission = Mission;
            if (mission == null)
            {
                State = StorylineState.Done;
                return;
            }

            AgentId = mission.AgentId;
            var agent = Cache.Instance.DirectEve.GetAgentById(AgentId);
            if (agent == null)
            {
                Logging.Log("Storyline: Unknown agent [" + AgentId + "]");

                State = StorylineState.Done;
                return;
            }

            Logging.Log("Storyline: Going to do [" + mission.Name + "] for agent [" + agent.Name + "]");

            State = StorylineState.Arm;
            _storyline = _storylines[Cache.Instance.FilterPath(mission.Name)];
        }
Ejemplo n.º 6
0
 public void Reset()
 {
     State = StorylineState.Idle;
     AgentId = 0;
     _storyline = null;
     _agentInteraction.State = AgentInteractionState.Idle;
     _traveler.State = TravelerState.Idle;
     _traveler.Destination = null;
 }
Ejemplo n.º 7
0
        private void IdleState()
        {
            DirectAgentMission currentStorylineMission = StorylineMission;
            if (currentStorylineMission == null)
            {
                _nextStoryLineAttempt = DateTime.UtcNow.AddMinutes(15);
                _States.CurrentStorylineState = StorylineState.Done;
                Cache.Instance.MissionName = String.Empty;
                return;
            }

            Cache.Instance.CurrentStorylineAgentId = currentStorylineMission.AgentId;
            DirectAgent storylineagent = Cache.Instance.DirectEve.GetAgentById(Cache.Instance.CurrentStorylineAgentId);
            if (storylineagent == null)
            {
                Logging.Log("Storyline", "Unknown agent [" + Cache.Instance.CurrentStorylineAgentId + "]", Logging.Yellow);

                _States.CurrentStorylineState = StorylineState.Done;
                return;
            }

            Logging.Log("Storyline", "Going to do [" + currentStorylineMission.Name + "] for agent [" + storylineagent.Name + "] AgentID[" + Cache.Instance.CurrentStorylineAgentId + "]", Logging.Yellow);
            Cache.Instance.MissionName = currentStorylineMission.Name;

            _highSecChecked = false;
            _States.CurrentStorylineState = StorylineState.Arm;
            _storyline = _storylines[Cache.Instance.FilterPath(currentStorylineMission.Name)];
        }
Ejemplo n.º 8
0
 public void Reset()
 {
     //Logging.Log("Storyline", "Storyline.Reset", Logging.White);
     _States.CurrentStorylineState = StorylineState.Idle;
     Cache.Instance.CurrentStorylineAgentId = 0;
     _storyline = null;
     _States.CurrentAgentInteractionState = AgentInteractionState.Idle;
     _States.CurrentTravelerState = TravelerState.Idle;
     Traveler.Destination = null;
 }
Ejemplo n.º 9
0
        private void IdleState()
        {
            try
            {
                EveCom.AgentMission currentStorylineMission = StorylineMission;
                if (currentStorylineMission == null)
                {
                    _nextStoryLineAttempt = DateTime.UtcNow.AddMinutes(15);
                    _States.CurrentStorylineState = StorylineState.Done;
                    MissionSettings.MissionName = String.Empty;
                    AgentInteraction.UseStorylineAgentAsActiveAgent = false;
                    return;
                }

                QuestorCache.Instance.CurrentStorylineAgentId = currentStorylineMission.AgentID;
                EveCom.Agent storylineagent = EveCom.Agent.Get((int)QuestorCache.Instance.CurrentStorylineAgentId);
                if (storylineagent == null)
                {
                    Logging.Log("Storyline", "Unknown agent [" + QuestorCache.Instance.CurrentStorylineAgentId + "]", Logging.Yellow);
                    AgentInteraction.UseStorylineAgentAsActiveAgent = false;
                    _States.CurrentStorylineState = StorylineState.Done;
                    return;
                }

                Logging.Log("Storyline", "Going to do [" + currentStorylineMission.Name + "] for agent [" + storylineagent.Name + "] AgentID[" + QuestorCache.Instance.CurrentStorylineAgentId + "]", Logging.Yellow);
                MissionSettings.MissionName = currentStorylineMission.Name;
                AgentInteraction.UseStorylineAgentAsActiveAgent = true;
                _highSecChecked = false;
                _States.CurrentStorylineState = StorylineState.Arm;
                _storyline = _storylines[Logging.FilterPath(currentStorylineMission.Name.ToLower())];
            }
            catch (Exception exception)
            {
                Logging.Log("Storyline.IdleState", "IterateShipTargetValues - Exception: [" + exception + "]", Logging.Debug);
                return;
            }
        }
Ejemplo n.º 10
0
 public void Reset()
 {
     try
     {
         //Logging.Log("Storyline", "Storyline.Reset", Logging.White);
         _States.CurrentStorylineState = StorylineState.Idle;
         QuestorCache.Instance.CurrentStorylineAgentId = 0;
         _storyline = null;
         _States.CurrentAgentInteractionState = AgentInteractionState.Idle;
         _States.CurrentTravelerState = TravelerState.Idle;
         Traveler.Destination = null;
     }
     catch (Exception exception)
     {
         Logging.Log("Storyline.Reset", "IterateShipTargetValues - Exception: [" + exception + "]", Logging.Debug);
         return;
     }
 }