1
0
Fork 0
flightgear/src/AIModel
ehofman 6a08c79fcc David Culp:
I added some things to the AI stuff to improve the AIThermal processing.
Before, all the thermals were processed in order, and the last one overwrote
the prior one.  Now, only the data from the nearest thermal is kept.  This
way a tile can be populated with many thermals, and (as long as they have the
same diameter) the one nearest the airplane correctly takes effect.  This
will make us ready for the next step, "auto-thermaling", where FlightGear's
tile manager can cover a tile with thermals, and set the thermal strength
based on land-use type.

I moved the enumerated object_type to the base class.  When an AI object is
created it now sets the _otype variable in the base class.  This lets the AI
manager find out what kind of AI object it is dealing with, using the base
pointer.  I also added a function isa() to the base class, so the manager can
process objects differently based on their type.

The AI manager now sends AIThermal processing to a different function, where
only the data from the nearest thermal is kept.  After the manager processes
all the AI objects, then the results from the nearest thermal are applied to
wind-from-down.
2004-03-07 12:08:46 +00:00
..
.cvsignore Add David Culp's AI model manager code which is derived from David Luff's AI/ATC code. 2003-11-28 15:48:05 +00:00
AIAircraft.cxx David Culp: 2004-03-07 12:08:46 +00:00
AIAircraft.hxx David Culp: 2004-02-27 10:20:17 +00:00
AIBallistic.cxx David Culp: 2004-03-07 12:08:46 +00:00
AIBallistic.hxx David Culp: 2004-02-27 10:20:17 +00:00
AIBase.cxx David Culp: 2004-03-07 12:08:46 +00:00
AIBase.hxx David Culp: 2004-03-07 12:08:46 +00:00
AIManager.cxx David Culp: 2004-03-07 12:08:46 +00:00
AIManager.hxx David Culp: 2004-03-07 12:08:46 +00:00
AIShip.cxx David Culp: 2004-03-07 12:08:46 +00:00
AIShip.hxx David Culp: 2004-02-27 10:20:17 +00:00
AIStorm.cxx David Culp: 2004-03-07 12:08:46 +00:00
AIStorm.hxx Put the AIStorm and AIThermal classes back in 2004-03-03 20:26:06 +00:00
AIThermal.cxx David Culp: 2004-03-07 12:08:46 +00:00
AIThermal.hxx David Culp: 2004-03-07 12:08:46 +00:00
Makefile.am Put the AIStorm and AIThermal classes back in 2004-03-03 20:26:06 +00:00