示例#1
0
        public void SetAIStuff(AIMousePlate plate)
        {
            _isPlayerRam = false;

            _aiPlate = plate;

            FinishSettingUp();
        }
        public MotionController_Linear(EditorOptions options, ItemOptionsArco itemOptions, ShipPartDNA dna, AIMousePlate mousePlate)
            : base(options, dna, itemOptions.MotionController_Damage.HitpointMin, itemOptions.MotionController_Damage.HitpointSlope, itemOptions.MotionController_Damage.Damage)
        {
            _itemOptions = itemOptions;
            _mousePlate = mousePlate;

            this.Design = new MotionController_LinearDesign(options, true);
            this.Design.SetDNA(dna);

            double radius, volume;
            SensorVision.GetMass(out _mass, out volume, out radius, out _scaleActual, dna, itemOptions);

            this.Radius = radius;

            _neurons = SensorVision.CreateNeurons(dna, itemOptions, itemOptions.MotionController_Linear_NeuronDensity, false, false);

            BuildTerrain();

            _distanceMult = _mousePlate.MaxXY / _neurons.Max(o => o.PositionLength);
        }
示例#3
0
        public void SetAIStuff(AIMousePlate plate)
        {
            _isPlayerRam = false;

            _aiPlate = plate;

            FinishSettingUp();
        }