示例#1
0
        public MadBot()
        {
            FleetTargeting     = new FleetTargeting(this);
            AbandonedTargeting = new AbandonedTargeting(this);
            FishTargeting      = new FishTargeting(this);
            ContextBehaviors.Add(Navigation = new NavigateToPoint(this)
            {
                BehaviorWeight = 1.0f
            });
            // Behaviors.Add(Efficiency = new Efficiency(this) { BehaviorWeight = 0.0f });
            // Behaviors.Add(Dodge0 = new Dodge(this) { LookAheadMS = 100, BehaviorWeight = 2 });
            // Behaviors.Add(Dodge1 = new Dodge(this) { LookAheadMS = 200, BehaviorWeight = 2 });
            // Behaviors.Add(Dodge2 = new Dodge(this) { LookAheadMS = 300, BehaviorWeight = 2 });
            for (int m = 000; m < 2000; m += 50)
            {
                ContextBehaviors.Add(new DogeWow(this)
                {
                    LookAheadMS = m + 50, BehaviorWeight = 1
                });
            }
            ContextBehaviors.Add(Separation = new Separation(this)
            {
                LookAheadMS = 500, BehaviorWeight = 2.0f
            });
            ContextBehaviors.Add(StayInBounds = new StayInBounds(this)
            {
                LookAheadMS = 1000, BehaviorWeight = 10f
            });

            Sensors.Add(SensorCTF = new SensorCTF(this));

            Navigation.TargetPoint = new Vector2(0, 0);
            Steps = 16;
        }
示例#2
0
 public ConfigTurret()
 {
     FleetTargeting = new FleetTargeting(this)
     {
         IsSafeShot = this.IsSafeShot
     };
     AbandonedTargeting = new AbandonedTargeting(this)
     {
         IsSafeShot = this.IsSafeShot
     };
     FishTargeting = new FishTargeting(this)
     {
         IsSafeShot = this.IsSafeShot
     };
 }
示例#3
0
 public ConfigBoostTurret()
 {
     FleetTargeting     = new FleetTargeting(this);
     AbandonedTargeting = new AbandonedTargeting(this);
     FishTargeting      = new FishTargeting(this);
 }