]> git.mxchange.org Git - flightgear.git/blob - src/AIModel/AIStatic.cxx
148aaacfa0b97859ceafe761fa69d95e95432495
[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(FGAIManager* mgr) {
38    manager = mgr;   
39    _type_str = "static";
40    _otype = otStatic;
41 }
42
43
44 FGAIStatic::~FGAIStatic() {
45 }
46
47
48 bool FGAIStatic::init() {
49    return FGAIBase::init();
50 }
51
52 void FGAIStatic::bind() {
53     FGAIBase::bind();
54 }
55
56 void FGAIStatic::unbind() {
57     FGAIBase::unbind();
58 }
59
60
61 void FGAIStatic::update(double dt) {
62    FGAIBase::update(dt);
63    Transform();
64 }
65