Nasal Flightplan: Difference between revisions

Line 61: Line 61:
== Leg methods and variables ==
== Leg methods and variables ==
A leg is a wrapper for a waypoint, so it will have all waypoints variables and methods plus what is listed below.
A leg is a wrapper for a waypoint, so it will have all waypoints variables and methods plus what is listed below.
; setSpeed() :
Notice, that a leg you have gotten from a plan, but deleted in the plan, will be invalid and should not be used or modified.
; setAltitude() :
A leg you have gotten from a plan, when modified, will modify the leg inside the plan you got it from.
; setSpeed(speed, type) : Sets the speed restriction.
; setAltitude(altitude, type) : Sets the altitude restriction.
; path() :
; path() :
; courseAndDistanceFrom() :
; courseAndDistanceFrom() :
; parents :
; parents :
; index :
; index :
; alt_cstr : Altitude restriction.
; alt_cstr : Read-only. Altitude restriction.
; alt_cstr_type : Altitude restriction type. Can be "at", "above", "below", "mach", "computed", "computed-mach", "delete".
; alt_cstr_type : Read-only. Altitude restriction type. Can be "at", "above", "below", "mach", "computed", "computed-mach", "delete".
; speed_cstr : Speed restriction.
; speed_cstr : Read-only. Speed restriction.
; speed_cstr_type : Speed restriction. Can be "at", "above", "below", "mach", "computed", "computed-mach", "delete".
; speed_cstr_type : Read-only. Speed restriction. Can be "at", "above", "below", "mach", "computed", "computed-mach", "delete".
; leg_distance :
; leg_distance :
; leg_bearing :
; leg_bearing :
574

edits