1 // Copyright (C) 2009 - 2012 Mathias Froehlich
3 // This program is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU General Public License as
5 // published by the Free Software Foundation; either version 2 of the
6 // License, or (at your option) any later version.
8 // This program is distributed in the hope that it will be useful, but
9 // WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // General Public License for more details.
13 // You should have received a copy of the GNU General Public License
14 // along with this program; if not, write to the Free Software
15 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 #ifndef AIEnvironment_hxx
18 #define AIEnvironment_hxx
20 #include <simgear/bvh/BVHNode.hxx>
21 #include <simgear/math/SGGeometry.hxx>
22 #include "AISubsystem.hxx"
29 class AIEnvironment : public AISubsystem {
31 virtual ~AIEnvironment();
33 virtual void update(AIObject& object, const SGTimeStamp& dt);
35 // Get these at some point from a weather module and an apropriate
37 double getDensity() const
39 double getTemperature() const
40 { return 15 + 273.15; }
41 /// The wind speed in cartesian coorindates in the earth centered frame
42 SGVec3d getWindVelocity() const
43 { return SGVec3d::zeros(); }