The combat class will target and kill any NPC that is targeting the questor. It will also kill any NPC that is targeted but not aggressing the questor.
Ejemplo n.º 1
0
        public CombatHelperBehavior()
        {
            _arm = new Arm();
            _combat = new Combat();
            _drones = new Drones();
            _panic = new Panic();
            _salvage = new Salvage();
            //_slave = new Slave();
            _unloadLoot = new UnloadLoot();
            _watch = new Stopwatch();

            //
            // this is combat mission specific and needs to be generalized
            //
            Settings.Instance.SettingsLoaded += SettingsLoaded;

            //Settings.Instance.UseFittingManager = false;

            // States.CurrentCombatHelperBehaviorState fixed on ExecuteMission
            _States.CurrentCombatHelperBehaviorState = CombatHelperBehaviorState.UnloadLoot;
            _States.CurrentArmState = ArmState.Idle;

            //_States.CurrentCombatState = CombatState.Idle;
            //_States.CurrentDroneState = DroneState.Idle;
            _States.CurrentUnloadLootState = UnloadLootState.Idle;
            _States.CurrentTravelerState = TravelerState.Idle;
        }
Ejemplo n.º 2
0
        public CombatMissionsBehavior()
        {
            _lastPulse = DateTime.MinValue;

            _traveler = new Traveler();
            _random = new Random();
            _salvage = new Salvage();
            _combat = new Combat();
            _drones = new Drones();
            _unloadLoot = new UnloadLoot();
            _agentInteraction = new AgentInteraction();
            _arm = new Arm();
            _courierMissionCtrl = new CourierMissionCtrl();
            _switchShip = new SwitchShip();
            _combatMissionCtrl = new CombatMissionCtrl();
            _panic = new Panic();
            _storyline = new Storyline();
            _statistics = new Statistics();
            _watch = new Stopwatch();

            //
            // this is combat mission specific and needs to be generalized
            //
            Settings.Instance.SettingsLoaded += SettingsLoaded;

            // States.CurrentCombatMissionBehaviorState fixed on ExecuteMission
            _States.CurrentCombatMissionBehaviorState = CombatMissionsBehaviorState.Idle;
            _States.CurrentArmState = ArmState.Idle;
            _States.CurrentUnloadLootState = UnloadLootState.Idle;
            _States.CurrentTravelerState = TravelerState.AtDestination;
        }
Ejemplo n.º 3
0
        //DateTime _nextAction = DateTime.Now;
        public DirectionalScannerBehavior()
        {
            _lastPulse = DateTime.Now;
            _random = new Random();
            _salvage = new Salvage();
            _combat = new Combat();
            _drones = new Drones();
            _traveler = new Traveler();
            _unloadLoot = new UnloadLoot();
            _arm = new Arm();
            _panic = new Panic();
            _watch = new Stopwatch();

            //
            // this is combat mission specific and needs to be generalized
            //
            Settings.Instance.SettingsLoaded += SettingsLoaded;
            //Settings.Instance.UseFittingManager = false;

            // States.CurrentDirectionalScannerBehaviorState fixed on ExecuteMission
            _States.CurrentDirectionalScannerBehaviorState = DirectionalScannerBehaviorState.Idle;
            _States.CurrentArmState = ArmState.Idle;
            //_States.CurrentCombatState = CombatState.Idle;
            //_States.CurrentDroneState = DroneState.Idle;
            _States.CurrentUnloadLootState = UnloadLootState.Idle;
            _States.CurrentTravelerState = TravelerState.Idle;
        }
Ejemplo n.º 4
0
        public MiningBehavior()
        {
            _arm = new Arm();
            _panic = new Panic();
            _combat = new Combat();
            _unloadLoot = new UnloadLoot();
            _drones = new Drones();

            _lastPulse = DateTime.MinValue;

            MiningToolGroupIDs.Add((int)Group.Miners);              //miners
            MiningToolGroupIDs.Add((int)Group.StripMiners);         //strip miners
            MiningToolGroupIDs.Add((int)Group.ModulatedStripMiners);//modulated strip miners
        }
Ejemplo n.º 5
0
        //DateTime _nextAction = DateTime.Now;
        public DirectionalScannerBehavior()
        {
            _salvage = new Salvage();
            _combat = new Combat();
            _drones = new Drones();
            _arm = new Arm();
            _panic = new Panic();
            _watch = new Stopwatch();

            //
            // this is combat mission specific and needs to be generalized
            //
            Settings.Instance.SettingsLoaded += SettingsLoaded;
            _States.CurrentDirectionalScannerBehaviorState = DirectionalScannerBehaviorState.Idle;
            _States.CurrentArmState = ArmState.Idle;
            _States.CurrentUnloadLootState = UnloadLootState.Idle;
            _States.CurrentTravelerState = TravelerState.Idle;
        }