C# 클래스 RemoteTech.FlightComputer.Commands.ManeuverCommand

상속: AbstractCommand
파일 보기 프로젝트 열기: RemoteTechnologiesGroup/RemoteTech 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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