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
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.
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.
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.
22 #ifndef FGAITANKER_HXX
23 #define FGAITANKER_HXX
25 #include "AIAircraft.hxx"
28 * An AI tanker for air-air refueling.
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.
34 * @author Thomas F�ster <t.foerster@biologie.hu-berlin.de>
37 class FGAITanker : public FGAIAircraft {
39 FGAITanker(FGAISchedule* ref = 0);
42 virtual void readFromScenario(SGPropertyNode* scFileNode);
45 virtual const char* getTypeString(void) const { return "tanker"; }
47 void setTACANChannelID(const string& id);
50 string TACAN_channel_id; // The TACAN channel of this tanker
51 bool contact; // set if this tanker is within fuelling range
53 virtual void Run(double dt);
54 virtual void update (double dt);