本文整理汇总了C++中Airport::GrndPos方法的典型用法代码示例。如果您正苦于以下问题:C++ Airport::GrndPos方法的具体用法?C++ Airport::GrndPos怎么用?C++ Airport::GrndPos使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Airport
的用法示例。
在下文中一共展示了Airport::GrndPos方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
RadarScreen::RadarScreen(Landmarks *Lands_i) :
ATCScreen
(
RADAR_LEFT,
RADAR_TOP,
RADAR_LEFT + (MAX_FIELD_X * POSITION_WIDTH),
RADAR_TOP + (MAX_FIELD_Y * POSITION_HEIGHT) - 1,
ATC_TEXT_MODE,
RADAR_TEXT_COLOUR,
RADAR_BACK_COLOUR
),
AtLandmarks_c (True, 2),
Gates_c (True, 2),
FlightPaths_c (True, 2),
AirportLights_c (True, 2)
{
int BeaconIx, AirportIx, GateIx, FltPthIx;
AtLandmark *CrntAtLand;
Airport *CrntAirport;
Gate *CrntGate;
FlightPath *CrntFltPth;
for (BeaconIx = 0; BeaconIx < Lands_i->NoOfBeacons(); BeaconIx++) {
CrntAtLand = Lands_i->AllBeacons()[BeaconIx];
AtLandmarks_c.Add (CrntAtLand, CrntAtLand->GrndPos());
}
for (AirportIx = 0; AirportIx < Lands_i->NoOfAirports(); AirportIx++){
CrntAirport = Lands_i->AllAirports()[AirportIx];
AtLandmarks_c.Add (CrntAirport, CrntAirport->GrndPos());
AirportLights_c.Add (CrntAirport->GrndPos().NextMove
(CrntAirport->Dir()));
}
for (GateIx = 0; GateIx < Lands_i->NoOfGates(); GateIx++) {
CrntGate = Lands_i->AllGates()[GateIx];
Gates_c.Add (CrntGate);
}
for (FltPthIx = 0; FltPthIx < Lands_i->NoOfFlightPaths(); FltPthIx++){
CrntFltPth = Lands_i->AllFlightPaths()[FltPthIx];
FlightPaths_c.Add (CrntFltPth);
}
}