Debian Codegraph @

src/AIModel/AITanker.hxx

raw symbols SCIP
1 /*
2 * SPDX-FileName: AITanker.hxx
3 * SPDX-FileComment: Tanker specific code isolated from AI Aircraft code, based on David Culp's AIModel code
4 * SPDX-FileCopyrightText: by Thomas Foerster, started June 2007
5 * SPDX-FileContributor: Original code written by David Culp, started October 2003 - [email protected]
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
8
9 #pragma once
10
11 #include <string_view>
12
13 #include "AIAircraft.hxx"
14
15
16 /**
17 * An AI tanker for air-air refueling.
18 *
19 * This class is just a refactoring of the AA refueling related code in FGAIAircraft. The idea
20 * is to have a clean generic AIAircraft class without any special functionality. In your
21 * scenario specification use 'tanker' as the scenario type to use this class.
22 *
23 * @author Thomas F�ster <[email protected]>
24 */
25
26 class FGAITanker : public FGAIAircraft
27 {
28 public:
29 explicit FGAITanker(FGAISchedule* ref = 0);
30 virtual ~FGAITanker() = default;
31
32 std::string_view getTypeString() const override { return "tanker"; }
33 void readFromScenario(SGPropertyNode* scFileNode) override;
34 void bind() override;
35
36 void setTACANChannelID(const std::string& id);
37
38 private:
39 std::string TACAN_channel_id; // The TACAN channel of this tanker
40 bool contact = false; // set if this tanker is within fuelling range
41
42 virtual void Run(double dt);
43 void update(double dt) override;
44 };