]> git.mxchange.org Git - flightgear.git/commit
Mathias Froehlich:
authorehofman <ehofman>
Sat, 11 Feb 2006 13:16:56 +0000 (13:16 +0000)
committerehofman <ehofman>
Sat, 11 Feb 2006 13:16:56 +0000 (13:16 +0000)
commit4bfd1722df24f5be89459b25010e5d7352720a7b
treeaad31b58dc12bbf5dee0818ca46b025116e1ab5d
parent13c923fcc502dbcab2e5d5527012a4ded7580875
Mathias Froehlich:

This patch removes some useless indirection when creating AIModels. It
obsolets AIScenario*.

AIEntities are just an intermediate copy of an other intermediate copy of an
xml file on the way from the ai scenario configuration file to the AIModels.
As such the AImodels can now be created directly from the property tree read
from the scenario file.

This reduces the amount of work needed to add an other AIModel and reduces the
amount of copy operations done during initialization.

It also moves internal knowledge of special AI models into these special AI
models class instead of spreading that into the whole AIModel subdirectory
which in turn enables to use carrier internal data structures for carrier
internal data ...

Also some unused variables are removed from the AIModel classes.
I believe that there are still more of them, but that is what I stumbled
accross ...

Tested, like the other splitouts these days in a seperate tree and using the
autopilot for some time, and in this case with a carrier start ...
30 files changed:
src/AIModel/AIAircraft.cxx
src/AIModel/AIAircraft.hxx
src/AIModel/AIBallistic.cxx
src/AIModel/AIBallistic.hxx
src/AIModel/AIBase.cxx
src/AIModel/AIBase.hxx
src/AIModel/AICarrier.cxx
src/AIModel/AICarrier.hxx
src/AIModel/AIFlightPlan.cxx
src/AIModel/AIFlightPlan.hxx
src/AIModel/AIManager.cxx
src/AIModel/AIManager.hxx
src/AIModel/AIMultiplayer.cxx
src/AIModel/AIMultiplayer.hxx
src/AIModel/AIScenario.cxx
src/AIModel/AIScenario.hxx
src/AIModel/AIShip.cxx
src/AIModel/AIShip.hxx
src/AIModel/AIStatic.cxx
src/AIModel/AIStatic.hxx
src/AIModel/AIStorm.cxx
src/AIModel/AIStorm.hxx
src/AIModel/AIThermal.cxx
src/AIModel/AIThermal.hxx
src/AIModel/Makefile.am
src/AIModel/submodel.cxx
src/Main/Makefile.am
src/MultiPlayer/mpplayer.cxx
src/MultiPlayer/mpplayer.hxx
src/Traffic/Schedule.cxx