]> git.mxchange.org Git - flightgear.git/blob - src/AIModel/AIWingman.hxx
Merge branch 'durk/traffic'
[flightgear.git] / src / AIModel / AIWingman.hxx
1 // FGAIWingman - FGAIBllistic-derived class creates an AI Wingman
2 //
3 // Written by Vivian Meazza, started February 2008.
4 // - vivian.meazza at lineone.net
5 //
6 // This program is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU General Public License as
8 // published by the Free Software Foundation; either version 2 of the
9 // License, or (at your option) any later version.
10 //
11 // This program is distributed in the hope that it will be useful, but
12 // WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 // General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software
18 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
19
20 #ifndef _FG_AIWINGMAN_HXX
21 #define _FG_AIWINGMAN_HXX
22
23 #include "AIBallistic.hxx"
24
25 #include "AIManager.hxx"
26 #include "AIBase.hxx"
27
28 class FGAIWingman : public FGAIBallistic {
29 public:
30     FGAIWingman();
31     virtual ~FGAIWingman();
32
33     virtual void readFromScenario(SGPropertyNode* scFileNode);
34     virtual void bind();
35     virtual void unbind();
36     virtual const char* getTypeString(void) const { return "wingman"; }
37
38     bool init(bool search_in_AI_path=false);
39
40 private:
41
42     virtual void reinit() { init(); }
43     virtual void update (double dt);
44
45 };
46
47 #endif  // FG_AIWINGMAN_HXX