]> git.mxchange.org Git - flightgear.git/blob - src/AIModel/AITanker.hxx
Merge commit 'refs/merge-requests/1552' of git@gitorious.org:fg/flightgear into next
[flightgear.git] / src / AIModel / AITanker.hxx
1 // AITanker.hxx  Based on David Culp's AIModel code
2 // - Tanker specific code isolated from AI Aircraft code
3 // by Thomas Foerster, started June 2007
4 //
5 // 
6 // Original code written by David Culp, started October 2003.
7 // - davidculp2@comcast.net/
8 // This program is free software; you can redistribute it and/or
9 // modify it under the terms of the GNU General Public License as
10 // published by the Free Software Foundation; either version 2 of the
11 // License, or (at your option) any later version.
12 //
13 // This program is distributed in the hope that it will be useful, but
14 // WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16 // General Public License for more details.
17 //
18 // You should have received a copy of the GNU General Public License
19 // along with this program; if not, write to the Free Software
20 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
21
22 #ifndef FGAITANKER_HXX
23 #define FGAITANKER_HXX
24
25 #include "AIAircraft.hxx"
26
27 /**
28  * An AI tanker for air-air refueling.
29  *
30  * This class is just a refactoring of the AA refueling related code in FGAIAircraft. The idea
31  * is to have a clean generic AIAircraft class without any special functionality. In your
32  * scenario specification use 'tanker' as the scenario type to use this class.
33  * 
34  * @author Thomas F�ster <t.foerster@biologie.hu-berlin.de>
35 */
36
37 class FGAITanker : public FGAIAircraft {
38 public:
39     FGAITanker(FGAISchedule* ref = 0);
40     ~FGAITanker();
41
42     virtual void readFromScenario(SGPropertyNode* scFileNode);
43     virtual void bind();
44     virtual void unbind();
45
46     virtual const char* getTypeString(void) const { return "tanker"; }
47
48     void setTACANChannelID(const string& id);
49     
50 private:
51     string TACAN_channel_id;     // The TACAN channel of this tanker
52     bool contact;                // set if this tanker is within fuelling range
53
54     virtual void Run(double dt);
55     virtual void update (double dt);
56 };
57
58 #endif