Beispiel #1
0
        public ContextTurret()
        {
            ContextBehaviors.Add(Navigation = new NavigateToPoint(this)
            {
                BehaviorWeight = 0.00f
            });
            ContextBehaviors.Add(Efficiency = new Efficiency(this)
            {
                BehaviorWeight = 1f, MaximumAngle = MathF.PI / 4
            });
            ContextBehaviors.Add(Dodge0 = new Dodge(this)
            {
                LookAheadMS = 250, BehaviorWeight = 2
            });
            ContextBehaviors.Add(Dodge1 = new Dodge(this)
            {
                LookAheadMS = 500, BehaviorWeight = 2
            });
            ContextBehaviors.Add(Dodge2 = new Dodge(this)
            {
                LookAheadMS = 1000, BehaviorWeight = 2
            });
            ContextBehaviors.Add(Separation = new Separation(this)
            {
                LookAheadMS = 500, BehaviorWeight = 0f
            });
            ContextBehaviors.Add(StayInBounds = new StayInBounds(this)
            {
                LookAheadMS = 1000, BehaviorWeight = 1f
            });

            Navigation.TargetPoint = new Vector2(0, 0);
            Steps = 16;
        }
Beispiel #2
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;
        }
Beispiel #3
0
        public CTFBot()
        {
            ContextBehaviors.Add(Navigation = new NavigateToPoint(this)
            {
                BehaviorWeight = 0.1f
            });
            ContextBehaviors.Add(Efficiency = new Efficiency(this)
            {
                BehaviorWeight = 0.1f
            });
            ContextBehaviors.Add(Dodge0 = new Dodge(this)
            {
                LookAheadMS = 250, BehaviorWeight = 2
            });
            ContextBehaviors.Add(Dodge1 = new Dodge(this)
            {
                LookAheadMS = 500, BehaviorWeight = 2
            });
            ContextBehaviors.Add(Dodge2 = new Dodge(this)
            {
                LookAheadMS = 1000, BehaviorWeight = 2
            });
            ContextBehaviors.Add(Separation = new Separation(this)
            {
                LookAheadMS = 500, BehaviorWeight = 0f
            });
            ContextBehaviors.Add(StayInBounds = new StayInBounds(this)
            {
                LookAheadMS = 200, BehaviorWeight = 0.3f
            });

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

            Navigation.TargetPoint = Vector2.Zero;
            Steps = 16;
        }