Exemple #1
0
        public MoveToDropOffLocationPartialBehavior(IMovement movement, IEntityProvider entityProvider, ICargoConfiguration cargoConfiguration, IBookMarkCache bookMarkCache, IBookmarks bookmarks,
                                                    IMovementConfiguration movementConfiguration, IMeCache meCache, MathUtility mathUtility, IIsxeveProvider isxeveProvider)
        {
            _movement              = movement;
            _entityProvider        = entityProvider;
            _cargoConfiguration    = cargoConfiguration;
            _bookMarkCache         = bookMarkCache;
            _bookmarks             = bookmarks;
            _movementConfiguration = movementConfiguration;
            _meCache        = meCache;
            _mathUtility    = mathUtility;
            _isxeveProvider = isxeveProvider;

            ModuleName = "MoveToDropOffLocationPartialBehavior";
        }
Exemple #2
0
        //Initialize the class
        public Freighter(IEveWindowProvider eveWindowProvider, ICargoConfiguration cargoConfiguration, IMainConfiguration mainConfiguration,
                         IMiningConfiguration miningConfiguration, IMeCache meCache, IShip ship, IStation station, IJettisonContainer jettisonContainer,
                         IEntityProvider entityProvider, IEventCommunications eventCommunications, MoveToDropOffLocationPartialBehavior moveToDropOffLocationPartialBehavior,
                         DropOffCargoPartialBehavior dropOffCargoPartialBehavior, IMovement movement)
        {
            _eveWindowProvider = eveWindowProvider;
            _moveToDropOffLocationPartialBehavior = moveToDropOffLocationPartialBehavior;
            _dropOffCargoPartialBehavior          = dropOffCargoPartialBehavior;
            _movement          = movement;
            _ship              = ship;
            _meCache           = meCache;
            _mainConfiguration = mainConfiguration;

            ModuleName     = "Freighter";
            PulseFrequency = 2;
            BehaviorManager.BehaviorsToPulse.Add(BotModes.Freighting, this);
            IsEnabled = true;
        }
Exemple #3
0
        public DropOffCargoPartialBehavior(IEveWindowProvider eveWindowProvider, ICargoConfiguration cargoConfiguration, IMainConfiguration mainConfiguration,
                                           IMiningConfiguration miningConfiguration, IMeCache meCache, IShip ship, IStation station, IJettisonContainer jettisonContainer,
                                           IEntityProvider entityProvider, IEventCommunications eventCommunications)
        {
            _eveWindowProvider   = eveWindowProvider;
            _cargoConfiguration  = cargoConfiguration;
            _mainConfiguration   = mainConfiguration;
            _miningConfiguration = miningConfiguration;
            _meCache             = meCache;
            _ship                = ship;
            _station             = station;
            _jettisonContainer   = jettisonContainer;
            _entityProvider      = entityProvider;
            _eventCommunications = eventCommunications;

            ModuleName = "DropOffCargoPartialBehavior";

            _doDropoffRandomWait = new RandomWaitObject(ModuleName);
            _doDropoffRandomWait.AddWait(new KeyValuePair <int, int>(601, 1800), 1.5);
            _doDropoffRandomWait.AddWait(new KeyValuePair <int, int>(121, 600), 6.67);
            _doDropoffRandomWait.AddWait(new KeyValuePair <int, int>(11, 120), 15);
            _doDropoffRandomWait.AddWait(new KeyValuePair <int, int>(6, 10), 30);
            _doDropoffRandomWait.AddWait(new KeyValuePair <int, int>(1, 5), 66.67);
        }