예제 #1
0
    private void Initialise()
    {
        var torqueApplier = new MultiTorquerTorqueAplier(_thisSpaceship, _torquers, TorqueMultiplier, AngularDragForTorquers);

        //ensure this starts active.
        torqueApplier.Activate();

        _pilot = new SpaceshipPilot(torqueApplier, _thisSpaceship, _engines, ShootAngle, Fuel)
        {
            StartDelay               = StartDelay,
            SlowdownWeighting        = SlowdownWeighting,
            TangentialSpeedWeighting = TangentialSpeedWeighting,
            LocationAimWeighting     = LocationAimWeighting,
            VectorArrow              = VectorArrow,
            MaxRange             = MaxRange,
            MinRange             = MinRange,
            MaxTangentialSpeed   = MaxTangentialVelocity,
            MinTangentialSpeed   = MinTangentialVelocity,
            RadialSpeedThreshold = RadialSpeedThreshold
        };
    }
    private void Initialise()
    {
        var torqueApplier = new MultiTorquerTorqueAplier(_thisSpaceship, _torquers, TorqueMultiplier, AngularDragForTorquers);

        //ensure this starts active.
        torqueApplier.Activate();

        //_autoPilot = new SpaceshipPilot(torqueApplier, _thisSpaceship, Engines, ShootAngle, Fuel)
        //{
        //    StartDelay = StartDelay,
        //    SlowdownWeighting = SlowdownWeighting,
        //    TangentialSpeedWeighting = TangentialSpeedWeighting,
        //    LocationAimWeighting = LocationAimWeighting,
        //    VectorArrow = VectorArrow,
        //    MaxRange = MaxRange,
        //    MinRange = MinRange,
        //    MaxTangentialSpeed = MaxTangentialVelocity,
        //    MinTangentialSpeed = MinTangentialVelocity,
        //    RadialSpeedThreshold = RadialSpeedThreshold
        //};

        _manualPilot = new ManualSpaceshipPilot(torqueApplier, _thisSpaceship, Engines, Fuel);
    }