]> git.mxchange.org Git - flightgear.git/blob - src/AIModel/AIStatic.cxx
Mathias Froehlich:
[flightgear.git] / src / AIModel / AIStatic.cxx
1 // FGAIStatic - FGAIBase-derived class creates an AI static object
2 //
3 // Written by David Culp, started Jun 2005.
4 //
5 // Copyright (C) 2005  David P. Culp - davidculp2@comcast.net
6 //
7 // This program is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU General Public License as
9 // published by the Free Software Foundation; either version 2 of the
10 // License, or (at your option) any later version.
11 //
12 // This program is distributed in the hope that it will be useful, but
13 // WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 // General Public License for more details.
16 //
17 // You should have received a copy of the GNU General Public License
18 // along with this program; if not, write to the Free Software
19 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20
21 #ifdef HAVE_CONFIG_H
22 #  include <config.h>
23 #endif
24
25 #include <simgear/math/point3d.hxx>
26 #include <Main/fg_props.hxx>
27 #include <Main/globals.hxx>
28 #include <Scenery/scenery.hxx>
29 #include <string>
30 #include <math.h>
31
32 SG_USING_STD(string);
33
34 #include "AIStatic.hxx"
35
36
37 FGAIStatic::FGAIStatic() : FGAIBase(otStatic) {
38 }
39
40
41 FGAIStatic::~FGAIStatic() {
42 }
43
44 bool FGAIStatic::init() {
45    return FGAIBase::init();
46 }
47
48 void FGAIStatic::bind() {
49     FGAIBase::bind();
50 }
51
52 void FGAIStatic::unbind() {
53     FGAIBase::unbind();
54 }
55
56
57 void FGAIStatic::update(double dt) {
58    FGAIBase::update(dt);
59    Transform();
60 }
61