]> git.mxchange.org Git - flightgear.git/blob - src/ATC/CommStation.hxx
Fix a typo breaking some takeoff-state logic.
[flightgear.git] / src / ATC / CommStation.hxx
1 #ifndef FG_ATC_COMM_STATION_HXX
2 #define FG_ATC_COMM_STATION_HXX
3
4 #include <Airports/airports_fwd.hxx>
5 #include <Navaids/positioned.hxx>
6
7 namespace flightgear
8 {
9
10 class CommStation : public FGPositioned
11 {
12 public:
13     CommStation(PositionedID aGuid, const std::string& name, FGPositioned::Type t, const SGGeod& pos, int range, int freq);
14
15     void setAirport(PositionedID apt);
16     FGAirportRef airport() const;
17     
18     int rangeNm() const
19         { return mRangeNM; }
20         
21     int freqKHz() const
22         { return mFreqKhz; }
23         
24     double freqMHz() const;
25     
26     static CommStationRef findByFreq(int freqKhz, const SGGeod& pos, FGPositioned::Filter* filt = NULL);
27 private:
28     int mRangeNM;
29     int mFreqKhz;
30     PositionedID mAirport;
31 };
32
33 } // of namespace flightgear
34
35 #endif // of FG_ATC_COMM_STATION_HXX
36