private void Reset(ShipControlCommons shipControl) { shipControl.Reset(gyroOverride: false, thrusterEnable: true, thrusterCondition: ThrusterCondition); Mode = Modes.Idle; SaveLastCommand(shipControl, null); }
private void StartReverse(ShipControlCommons shipControl, EventDriver eventDriver) { shipControl.Reset(gyroOverride: true); var shipBackward = Base6Directions.GetFlippedDirection(shipControl.ShipForward); seeker.Init(shipControl, shipUp: shipControl.ShipUp, shipForward: shipBackward); cruiser.Init(shipControl, localForward: Base6Directions.Direction.Backward); if (Mode != REVERSING) { Mode = REVERSING; eventDriver.Schedule(0, Reverse); } }
private void Start(ShipControlCommons shipControl, EventDriver eventDriver) { shipControl.Reset(gyroOverride: true); if (MINING_ROLL_RPM > 0.0f) { shipControl.GyroControl.SetAxisVelocityRPM(GyroControl.Roll, MINING_ROLL_RPM); } seeker.Init(shipControl, shipUp: shipControl.ShipUp, shipForward: shipControl.ShipForward); cruiser.Init(shipControl, localForward: Base6Directions.Direction.Forward); if (Mode != MINING) { Mode = MINING; eventDriver.Schedule(0, Mine); } }
private void Reset(ShipControlCommons shipControl) { shipControl.Reset(gyroOverride: false, thrusterEnable: true, thrusterCondition: ThrusterCondition); Mode = IDLE; SaveLastCommand(shipControl, null); }
private void Start(ShipControlCommons shipControl, EventDriver eventDriver) { shipControl.Reset(gyroOverride: true); if (MINING_ROLL_RPM > 0.0f) shipControl.GyroControl.SetAxisVelocityRPM(GyroControl.Roll, MINING_ROLL_RPM); seeker.Init(shipControl, shipUp: shipControl.ShipUp, shipForward: shipControl.ShipForward); cruiser.Init(shipControl, localForward: Base6Directions.Direction.Forward); if (Mode != MINING) { Mode = MINING; eventDriver.Schedule(0, Mine); } }