C# Класс RemoteTech.FlightComputer.Commands.ManeuverCommand

Наследование: AbstractCommand
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Node ManeuverNode
OriginalDelta double
RemainingDelta double
RemainingTime double

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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.

Описание методов

CommandCanceled() публичный Метод

This method will be triggerd after deleting a command from the list.
public CommandCanceled ( FlightComputer computer ) : void
computer FlightComputer Current flight computer
Результат void

CommandEnqueued() публичный Метод

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
Результат void

Execute() публичный Метод

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.
Результат bool

Load() публичный Метод

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
Результат bool

Pop() публичный Метод

public Pop ( FlightComputer f ) : bool
f FlightComputer
Результат bool

Save() публичный Метод

Save the index of the maneuver node to the persistent
public Save ( ConfigNode n, FlightComputer fc ) : void
n System.ConfigNode
fc FlightComputer
Результат void

WithNode() публичный статический Метод

public static WithNode ( int nodeIndex, FlightComputer f ) : ManeuverCommand
nodeIndex int
f FlightComputer
Результат ManeuverCommand

getMaxBurnTime() публичный Метод

Returns the total time for this burn in seconds
public getMaxBurnTime ( FlightComputer f ) : double
f FlightComputer Flightcomputer for the current vessel
Результат double

Описание свойств

Node публичное свойство

public ManeuverNode Node
Результат ManeuverNode

OriginalDelta публичное свойство

public double OriginalDelta
Результат double

RemainingDelta публичное свойство

public double RemainingDelta
Результат double

RemainingTime публичное свойство

public double RemainingTime
Результат double