| 1 | // Copyright (C) 2009 - 2012 Mathias Froehlich |
| 2 | // |
| 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. |
| 7 | // |
| 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. |
| 12 | // |
| 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. |
| 16 | |
| 17 | #ifndef AIEnvironment_hxx |
| 18 | #define AIEnvironment_hxx |
| 19 | |
| 20 | #include <simgear/bvh/BVHNode.hxx> |
| 21 | #include <simgear/math/SGGeometry.hxx> |
| 22 | #include "AISubsystem.hxx" |
| 23 | |
| 24 | namespace fgai { |
| 25 | |
| 26 | class AIPhysics; |
| 27 | class AIBVHPager; |
| 28 | |
| 29 | class AIEnvironment : public AISubsystem { |
| 30 | public: |
| 31 | virtual ~AIEnvironment(); |
| 32 | |
| 33 | virtual void update(AIObject& object, const SGTimeStamp& dt); |
| 34 | |
| 35 | // Get these at some point from a weather module and an apropriate |
| 36 | // hla attribute |
| 37 | double getDensity() const |
| 38 | { return 1.29; } |
| 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(); } |
| 44 | }; |
| 45 | |
| 46 | } // namespace fgai |
| 47 | |
| 48 | #endif |