Thomas Geymayer
8f1df6c358
Helpers to clone SGModelData
...
This is needed for latest SimGear to fix scene model
unload not being called
2013-04-01 13:40:51 +02:00
James Turner
4d144dfbf2
Allow scenarios to have load/unload scripts.
...
This makes it possible for the balloons scenario (for example) to
work correctly with dynamic loading and unloading.
2013-03-28 16:50:55 +00:00
James Turner
a7e4f2a971
std:: namespace fixes, AIBase cleanup.
...
Make data members in AIBase protected, and move FGAIModelData to be
a private helper in the .cxx file.
2013-03-28 16:49:52 +00:00
James Turner
c2546a431d
Make units of a function explicit.
2013-03-27 23:31:22 +00:00
James Turner
96a40fe70c
Commands to control scenarios / AI-objects.
...
New commands allow runtime scenario loading and unloading, and AI object creation and removal at runtime.
2013-03-16 16:53:12 +00:00
James Turner
4a84ea0bc4
AIManager scenario tweaking.
2013-03-16 16:53:12 +00:00
James Turner
d70e26d87b
Don't duplicate userpos in in AIObjects.
2013-03-16 16:53:12 +00:00
Thomas Geymayer
4b573ebd13
Start porting NasalPositioned to cppbind.
...
For now it is available in the positioned Nasal
module. FGAirport is fully ported, but especially
procedures/navaids and free functions are still
missing.
2013-03-04 19:24:47 +01:00
Thomas Geymayer
45e3b7e2d1
Clean up/prepare for porting NasalPositioned to cppbind
2013-03-04 16:31:37 +01:00
James Turner
1eb8ae1fbf
Give the FGAirport class a sane filename.
...
simple.[cxx|hxx] -> airport.[cxx|hxx]
2013-02-21 11:32:02 +00:00
James Turner
7b663cd7f7
Split huge NasalSys header apart.
2013-02-09 15:33:05 +00:00
Christian Schmitt
2013f7149d
Some headers missing... ;)
2013-02-07 19:00:54 +01:00
ThorstenB
a28fe51ccf
Fix FGAIFlightPlan waypoint issues
...
Iterator must be reset after clearing waypoint list.
Deleting "*waypoint.end()" doesn't delete the last waypoint (end()-1
does - it is never actually used though).
2012-11-27 21:02:32 +01:00
ThorstenB
b8a3d6902e
Stop AI aircraft's sound when removing
...
Sound manager keeps a reference to _fx, so reducing its ref-count isn't
enough - it must be removed explicitly.
2012-11-27 00:02:28 +01:00
ThorstenB
7ed8b625c9
Fix a couple of 64-bit warnings identified by GCC.
...
PositionedID is of "int64_t", which depends on platform: apparently it is
"long long int" for Mac (requiring %lld format), but it is "long int" for
64bit Linux (requiring %ld). To avoid a "compiler warning fix commit
war" ;-) use a type cast to the longest common type (long long int).
2012-11-26 00:23:10 +01:00
James Turner
63c95642c8
Work on AIAircraft gear animation.
...
Inspired by Harald's patch, attempt to get AI models show realistic gear animations. Unfortunately AI models seem to be ignoring the gear properties, so keeping the code disabled until I can trace down why.
2012-11-25 21:37:15 +00:00
James Turner
979ca55197
Fix a couple of 64-bit warnings identified by Clang.
2012-11-25 21:35:17 +00:00
ThorstenB
1c6643d7ac
traffic: more pass by reference + member init
2012-11-25 16:41:10 +01:00
ThorstenB
f0778a110b
MSVC compile issues.
2012-11-24 13:33:36 +01:00
ThorstenB
ff49cd7acf
AIFlihtPlan: Proper member initialization
...
(i.e. "isValid" needs to be initialized unconditionally)
2012-11-24 13:30:00 +01:00
ThorstenB
439ad4a7c8
Traffic performance: cache track length
...
Track length is calculate every iteration/for every aircraft. Since some
tracks have hundreds of waypoints, calculation is slow. Cache the
track length between the waypoints ahead, so it rarely needs to be
recalculated.
2012-11-24 12:06:20 +01:00
ThorstenB
bb494e52e5
Performance improvement: pass (const) strings by reference
...
to avoid copying actual string data around.
2012-11-24 11:59:13 +01:00
ThorstenB
1827825fcb
Clean up namespace issues
...
avoiding "uses..." in header files.
2012-11-23 21:16:08 +01:00
ThorstenB
4a53002784
Fix compiler warning with sprintf format
...
since PositionedID is "long int", not "long long int".
2012-11-23 21:16:07 +01:00
James Turner
bca6e9e890
Break upwards dependency on Traffic in the AI code
...
AIManager had unfortunate code to pass some state to the traffic-manager; this is no longer required since traffic schedules hold onto their AI-Aircraft directly as needed.
2012-11-21 14:49:34 +00:00
James Turner
77ca03da4d
AIManager cleanups, no functionality change.
2012-11-21 14:03:17 +00:00
James Turner
afcdbd3158
Overhaul the ground-net / parking code.
...
Use the nav-data-cache to cache groundnet information, including
parking positions and the taxi-node graph.
2012-11-08 09:07:05 +00:00
James Turner
c79e2465df
Traffic improvements.
...
Make landings and takeoffs look more correct; tweak climb-out and touchdown phases in particular, so the turn to destination heading occurs earlier on climb out, and touchdown occurs close the GS transmitter / some distance down the runway from the beginning.
2012-10-30 15:43:54 +00:00
James Turner
7c8ad455a3
PerformanceDB improvements.
...
Support cascading (inheriting) performance data, so common values don't need to be repeated.
2012-10-29 10:01:52 +00:00
Anders Gidenstam
a44acfa875
merge-requests/1566: Adjust indentation.
2012-10-12 23:48:09 +02:00
Vivian Meazza
bbea07e8b1
Bugfix: correct calculation of range and realtive bearing when parent is not the main model.
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2012-10-12 23:45:56 +02:00
James Turner
607e7d7bf3
Use an SGGeod inside FGAIFlightPlan::Waypoint.
...
This allows incremental refactoring to move away from discrete lat/lon use in favour of SGGeod.
2012-10-08 15:52:06 +01:00
James Turner
7d547d1287
Make traffic take-off roll look a little better.
...
Expand the performance DB logic to support aliases, and select based on aircraft type as well as class. This allows to introduce some variation into AI traffic performance. Change the initial climb-out waypoints to use pitch-hold until passing 3000', which looks much more convincing
2012-10-05 18:12:46 +01:00
James Turner
bcea720db3
Make the sound-manager optional in a few places.
2012-10-01 10:10:34 +01:00
James Turner
649d579124
Helpers to access view position.
...
Avoid direct use of FGViewer in various places, by providing property-based accessors to the current view position.
2012-09-25 10:06:56 +01:00
James Turner
b1ff365a8f
Make FGTaxiNode and FGParking inherit FGPositioned.
...
In preparation for caching the groundnet in the NavCache, make taxi-nodes and parkings inherit from FGPositioned. As part of this, make them heap (as opposed to value) classes, disable their copy-constructors, remove many mutating operations, and give them real constructors.
2012-09-25 00:31:17 +01:00
James Turner
fb266722ba
Parking: another segfault edge-case.
...
Again, when there's no parking/ground-net, tolerate this.
2012-09-24 00:36:47 +01:00
James Turner
66a6438de1
Avoid a segfault-on-null
...
This code is called both when there's no ground-net, but also when there's no parking data at all.
2012-09-23 23:07:00 +01:00
James Turner
b1854459b3
Clean up dynamics/parking handing code.
...
Refactor some parking / airport-dynamics APIs, in preparation for caching the ground cache data in the nav-cache.
2012-09-23 21:42:40 +01:00
Mathias Froehlich
26664aaff0
Push SGMaterial use into these classes that need it.
2012-08-29 06:29:29 +02:00
Mathias Froehlich
e3ad3d3a07
bvh: Adapt to upstream bvh changes in simgear.
2012-08-24 21:24:12 +02:00
James Turner
588eba658a
Make some include dependencies explicit.
2012-08-22 00:07:53 +01:00
ThorstenB
a3e76909ee
Christoph Korn/PlayDeb.net: fix typos
2012-08-17 23:51:30 +02:00
ThorstenB
df4ccc3b88
Debug message about loaded AI models.
2012-07-15 10:15:53 +02:00
James Turner
b0384d035f
Remove remaining includes of simgear/waypoint
2012-05-11 23:49:12 +01:00
Frederic Bouvier
75fc136931
Remove redundant inclusion of math/SGMath.hxx
2012-05-05 11:20:04 +02:00
ThorstenB
0f462d4a6e
Fix rpmlint/Linux packager complaints
...
about outdated/invalid FSF address in some license headers.
2012-05-05 01:42:41 +02:00
ThorstenB
b9260f543b
Ganael Laplanche: fix include dependencies for FreeBSD support
2012-05-05 01:08:20 +02:00
ThorstenB
e59fabaf82
Clean-up some SGMath dependencies.
2012-05-05 00:56:29 +02:00
ThorstenB
3986e1fe3a
Add separate switch to enable/disable AI scenario support.
...
Switch is enabled automatically when scenarios are given on command-line.
2012-04-30 19:04:49 +02:00