1
0
Fork 0
flightgear/src/Scripting
Florent Rougon 0dbb0dff9e Three Nasal properties of waypoint objects now accessible: airport, runway, navaid
Waypoint objects used in Nasal code can now return their airport,
runway or navaid object (Nasal ghost). More precisely:
  - if waypoint 'wpt' was made from an airport object[1], then
    'wpt.airport' is this airport object;
  - if waypoint 'wpt' was made from a runway object[2], then
    'wpt.runway' is this runway object, and 'wpt.airport' is the
    airport containing that runway;
  - if waypoint 'wpt' was made from a navaid object[3], then
    'wpt.navaid' is this navaid object.

When one of the three properties 'airport', 'runway', and 'navaid' is
not applicable to a given waypoint due to the type of the underlying
FGPositioned, its value is nil.

The code for these properties was already mostly there, but
unreachable from Nasal.

[1] For instance, with createWPFrom(airportinfo("LOWI"))

[2] For instance, with createWPFrom(airportinfo("LOWI").runway("26"))

[3] For instance, with:

      var apt = airportinfo("LOWI");
      var navaid = findNavaidByFrequencyMHz(apt, 109.7);
      var navaidWpt = createWPFrom(navaid);
2017-11-16 11:22:39 +01:00
..
ClipboardCocoa.mm Explicit AppKit includes for Mac. 2015-04-11 21:59:29 +01:00
ClipboardFallback.cxx Basic clipboard access from Nasal. 2012-08-04 17:33:48 +02:00
ClipboardWindows.cxx Basic clipboard access from Nasal. 2012-08-04 17:33:48 +02:00
ClipboardX11.cxx Fix include and compiler warning 2012-11-04 23:03:06 +01:00
CMakeLists.txt Scripting: expose flight history as aircraft.history() 2014-05-10 10:56:09 +02:00
nasal-props.cxx Fix crash in Nasal _setChildren 2017-09-19 08:20:08 +01:00
NasalAircraft.cxx Scripting: expose flight history as aircraft.history() 2014-05-10 10:56:09 +02:00
NasalAircraft.hxx Scripting: expose flight history as aircraft.history() 2014-05-10 10:56:09 +02:00
NasalCanvas.cxx Canvas: expose set/clearFocusElement to Nasal. 2014-08-25 21:54:20 +02:00
NasalCanvas.hxx Scripting: get rid of gcHash and use new SimGear/Nasal functions. 2013-10-15 00:58:21 +02:00
NasalClipboard.cxx Scripting: clean up a bit and user more of cppbind. 2013-12-08 19:24:45 +01:00
NasalClipboard.hxx Scripting: clean up a bit and user more of cppbind. 2013-12-08 19:24:45 +01:00
NasalCondition.cxx Fix compiler warning (naRuntimeError does not return...) 2014-06-23 00:42:17 +02:00
NasalCondition.hxx Nasal: expose SGCondition using nasal::Ghost and improved error checking. 2014-06-22 15:37:48 +02:00
NasalHTTP.cxx fgValidatePath uses SGPath 2016-07-03 23:59:40 +01:00
NasalHTTP.hxx Expose HTTP module to Nasal. 2013-10-27 19:39:22 +01:00
NasalModelData.cxx Update includes (required by simgear changes) 2014-06-04 02:58:14 +02:00
NasalModelData.hxx Keep ref_ptr in FGNasalModelData (should fix #1234) 2013-11-01 20:52:55 +01:00
NasalPositioned.cxx Three Nasal properties of waypoint objects now accessible: airport, runway, navaid 2017-11-16 11:22:39 +01:00
NasalPositioned.hxx Reset: Nasal can be shutdown. 2013-11-12 22:47:41 +00:00
NasalPositioned_cppbind.cxx Add airport dynamics manager 2015-12-05 00:25:29 +00:00
NasalSGPath.cxx fgValidatePath uses SGPath 2016-07-03 23:59:40 +01:00
NasalSGPath.hxx Expose SGPath to Nasal 2013-12-18 10:30:19 +01:00
NasalString.cxx Nasal: update for simgear changes. 2014-07-21 00:26:54 +02:00
NasalString.hxx Scripting: get rid of gcHash and use new SimGear/Nasal functions. 2013-10-15 00:58:21 +02:00
NasalSys.cxx Call fgInitAllowedPaths() earlier: after Options::processOptions() 2017-08-27 16:07:51 +02:00
NasalSys.hxx Model relative property tree root binding. 2017-07-05 11:37:17 +02:00
NasalSys_private.hxx Synchronized FG with the removal of 'using std::*' in simgear's easyxml 2013-11-14 22:07:50 +00:00