FlightGear next
AITanker.hxx
Go to the documentation of this file.
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 - davidculp2@comcast.net
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
25
27{
28public:
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
38private:
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};
FGAIAircraft(FGAISchedule *ref=0)
void bind() override
Definition AITanker.cxx:26
void setTACANChannelID(const std::string &id)
Definition AITanker.cxx:38
virtual ~FGAITanker()=default
void readFromScenario(SGPropertyNode *scFileNode) override
Definition AITanker.cxx:16
FGAITanker(FGAISchedule *ref=0)
Definition AITanker.cxx:12
std::string_view getTypeString() const override
Definition AITanker.hxx:32