]> git.mxchange.org Git - flightgear.git/commit
Added FGEnvironmentMgr to provide information on the environment in
authordavid <david>
Fri, 22 Feb 2002 22:51:34 +0000 (22:51 +0000)
committerdavid <david>
Fri, 22 Feb 2002 22:51:34 +0000 (22:51 +0000)
commiteaf9fa762180182c4af7a877f4e6865726dd8e5f
treee869f11755a29960bd75d010a57e282422c5af79
parent0a61c0da99d9954ec519ece3b1fb30d9131e48e1
Added FGEnvironmentMgr to provide information on the environment in
different locations, and hitched it into FGGlobals.  FGEnvironmentMgr
has taken over as the subsystem, while FGEnvironment is simple the
information that it returns.  I've removed current_environment
completely -- everything now uses properties or goes through
FGGlobals.  FGGlobals itself has a couple of useful methods:

  const FGEnvironment * get_environment ();
  const FGEnvironment * get_environment (double lat, double lon, double alt);

The first one returns the environment data for the plane's current
position, while the second returns the environment data for any
arbitrary location.  Currently, they both return the same information,
but that will change soon.
src/Environment/Makefile.am
src/Environment/environment.cxx
src/Environment/environment.hxx
src/Environment/environment_mgr.cxx [new file with mode: 0644]
src/Environment/environment_mgr.hxx [new file with mode: 0644]
src/FDM/UIUCModel/uiuc_wrapper.cpp
src/Main/fg_init.cxx
src/Main/globals.hxx
src/Main/main.cxx
src/Scenery/tilemgr.cxx