C# Class RemoteTech.FlightComputer.Commands.ManeuverCommand

Inheritance: AbstractCommand
Afficher le fichier Open project: RemoteTechnologiesGroup/RemoteTech Class Usage Examples

Méthodes publiques

Свойство Type Description
Node ManeuverNode
OriginalDelta double
RemainingDelta double
RemainingTime double

Méthodes publiques

Méthode Description
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 computer, FlightCtrlState ctrlState ) : bool

Executes the maneuver burn for the configured maneuver node.

Load ( ConfigNode n, FlightComputer fc ) : bool

Find the maneuver node by the saved node id (index id of the meneuver list)

Pop ( FlightComputer f ) : bool
Save ( ConfigNode n, FlightComputer fc ) : void

Save the index of the maneuver node to the persistent

WithNode ( int nodeIndex, FlightComputer f ) : ManeuverCommand
getMaxBurnTime ( FlightComputer f ) : double

Returns the total time for this burn in seconds

Private Methods

Méthode Description
AbortManeuver ( FlightComputer computer ) : void

getRemainingDeltaV ( FlightComputer computer ) : double

Gets the current remaining delta velocity for this maneuver burn determined by the vessels burn vector of the passed FlightComputer instance.

Method Details

CommandCanceled() public méthode

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

CommandEnqueued() public méthode

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
Résultat void

Execute() public méthode

Executes the maneuver burn for the configured maneuver node.
public Execute ( FlightComputer computer, FlightCtrlState ctrlState ) : bool
computer FlightComputer FlightComputer instance of the computer of the vessel the ManeuverCommand is for.
ctrlState FlightCtrlState FlightCtrlState instance of the current state of the vessel.
Résultat bool

Load() public méthode

Find the maneuver node by the saved node id (index id of the meneuver list)
public Load ( ConfigNode n, FlightComputer fc ) : bool
n System.ConfigNode Node with the command infos
fc FlightComputer Current flightcomputer
Résultat bool

Pop() public méthode

public Pop ( FlightComputer f ) : bool
f FlightComputer
Résultat bool

Save() public méthode

Save the index of the maneuver node to the persistent
public Save ( ConfigNode n, FlightComputer fc ) : void
n System.ConfigNode
fc FlightComputer
Résultat void

WithNode() public static méthode

public static WithNode ( int nodeIndex, FlightComputer f ) : ManeuverCommand
nodeIndex int
f FlightComputer
Résultat ManeuverCommand

getMaxBurnTime() public méthode

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

Property Details

Node public_oe property

public ManeuverNode Node
Résultat ManeuverNode

OriginalDelta public_oe property

public double OriginalDelta
Résultat double

RemainingDelta public_oe property

public double RemainingDelta
Résultat double

RemainingTime public_oe property

public double RemainingTime
Résultat double