예제 #1
0
        public RandomWaitObject(string parentName)
        {
            _maxRuntimeConfiguration = StealthBot.Config.MaxRuntimeConfig;

            IsEnabled  = false;
            ModuleName = String.Format("{0} RWO", parentName);
            _random    = new Random(DateTime.Now.Millisecond);
        }
예제 #2
0
        public RandomWaitObject(string parentName, ILogging logging, IMaxRuntimeConfiguration maxRuntimeConfiguration)
            : base(logging)
        {
            _maxRuntimeConfiguration = maxRuntimeConfiguration;

            IsEnabled  = false;
            ModuleName = String.Format("{0} RWO", parentName);
            _random    = new Random(DateTime.Now.Millisecond);
        }
예제 #3
0
        public Targeting(ILogging logging, IMaxRuntimeConfiguration maxRuntimeConfiguration, IMeCache meCache, IShip ship,
                         IDrones drones, IAlerts alerts, IModuleManager moduleManager, ITargetQueue targetQueue, IEntityProvider entityProvider, IMovement movement)
            : base(logging)
        {
            _meCache        = meCache;
            _ship           = ship;
            _drones         = drones;
            _alerts         = alerts;
            _moduleManager  = moduleManager;
            _targetQueue    = targetQueue;
            _entityProvider = entityProvider;
            _movement       = movement;

            ModuleManager.ModulesToPulse.Add(this);
            ModuleName = "Targeting";

            _randomWait = new RandomWaitObject("Targeting", logging, maxRuntimeConfiguration);
            _randomWait.AddWait(new KeyValuePair <int, int>(3, 5), 5);
            _randomWait.AddWait(new KeyValuePair <int, int>(1, 2), 15);
        }