C# Class RemoteTech.FlightComputer.Commands.BurnCommand

Inheritance: AbstractCommand
Mostrar archivo Open project: RemoteTechnologiesGroup/RemoteTech Class Usage Examples

Public Methods

Method Description
Abort ( ) : void
CommandCanceled ( FlightComputer computer ) : void

This method will be triggerd after deleting a command from the list.

CommandEnqueued ( FlightComputer computer ) : void

This method will be triggerd right after the command was enqueued to the flight computer list.

Execute ( FlightComputer f, FlightCtrlState fcs ) : bool
Off ( ) : BurnCommand
Pop ( FlightComputer f ) : bool
WithDeltaV ( float throttle, double delta ) : BurnCommand
WithDuration ( float throttle, double duration ) : BurnCommand
getMaxBurnTime ( FlightComputer f ) : double

Returns the total time for this burn in seconds

Private Methods

Method Description
burnLength ( ) : string

Method Details

Abort() public method

public Abort ( ) : void
return void

CommandCanceled() public method

This method will be triggerd after deleting a command from the list.
public CommandCanceled ( FlightComputer computer ) : void
computer FlightComputer Current flight computer
return void

CommandEnqueued() public method

This method will be triggerd right after the command was enqueued to the flight computer list.
public CommandEnqueued ( FlightComputer computer ) : void
computer FlightComputer Current flightcomputer
return void

Execute() public method

public Execute ( FlightComputer f, FlightCtrlState fcs ) : bool
f FlightComputer
fcs FlightCtrlState
return bool

Off() public static method

public static Off ( ) : BurnCommand
return BurnCommand

Pop() public method

public Pop ( FlightComputer f ) : bool
f FlightComputer
return bool

WithDeltaV() public static method

public static WithDeltaV ( float throttle, double delta ) : BurnCommand
throttle float
delta double
return BurnCommand

WithDuration() public static method

public static WithDuration ( float throttle, double duration ) : BurnCommand
throttle float
duration double
return BurnCommand

getMaxBurnTime() public method

Returns the total time for this burn in seconds
public getMaxBurnTime ( FlightComputer f ) : double
f FlightComputer Flightcomputer for the current vessel
return double