1
0
Fork 0
Commit graph

6 commits

Author SHA1 Message Date
ehofman
2afaa933e3 David Culp:
First, preferences.xml will define the scenario filename.

For now, the other way of defining ai objects still works, so the sailboat
stays in preferences.xml.  Later, I'll move the sailboat into the demo
scenario.  If no scenario filename is given, then no scenario will be
processed.

I changed the demo scenario to create two 737's, one takes off on runway 01L,
and the other takes off on runway 01R.  This will make a good demo for the ai
system.  One problem, if you takeoff on 28L/R right away, you might run into
the taking-off 737's, or be scared.
2004-05-17 08:46:34 +00:00
ehofman
e70eef10ac Remove two more capital tags. 2004-05-15 13:01:26 +00:00
ehofman
54a870d14b Use lower case letters instead. 2004-05-15 12:46:42 +00:00
ehofman
ef5748a00e David Culp:
Here's the newest AI stuff.

The AIManager at init() creates a new scenario.  Right now the
default_scenario is hard coded in, but eventually the AIManager should get
the scenario filename from preferences.xml.

The scenario defines which AI objects will be created.  Right now it only
creates AIAircraft, but this is easily extended.  The scenario also defines
which flightplan will be assigned to the airplane.  Scenario config files go
in data/Data/AI.

The Airplane gets a pointer to a FlightPlan object.  Each airplane should get
its own flightplan object, even if two airplanes have the same flight plan.
This is because  the flightplan maintains the iterator pointing to the
current waypoint, and two airplanes might be at different locations (for
instance if they were created at different times).  The flight plan files go
in data/Data/AI/FlightPlans.

When the airplane gets to the waypoint named "END" it vanishes.  The
AIAircraft destructor deletes its flight plan (if it has one).

The last waypoint is a place holder only.  I called mine
<WPT><NAME>"EOF"</NAME></WPT>.
2004-05-15 09:07:56 +00:00
david
da2598f871 New large.sky from Frederic Bouvier, remove most directories under
Data (no longer needed -- tested by John Wojnaroski).
2002-09-16 23:28:06 +00:00
david
09d1d5c0bf Texture files for 3D clouds. Hopefully, we'll be able to remove some
of these as we fine-tune the code.
2002-09-16 02:13:37 +00:00