void AddCircle(Airspaces &airspace_database) { AbstractAirspace *as = new AirspaceCircle(Center, Radius); as->set_properties(Name, Type, Base, Top); airspace_database.insert(as); }
void AddPolygon(Airspaces &airspace_database) { AbstractAirspace *as = new AirspacePolygon(points); as->set_properties(Name, Type, Base, Top); airspace_database.insert(as); }
void airspace_random_properties(AbstractAirspace& as) { AirspaceClass_t Type = (AirspaceClass_t)(rand()%15); AIRSPACE_ALT base; AIRSPACE_ALT top; base.Altitude = fixed(rand()%2000); top.Altitude = base.Altitude+fixed(rand()%3000); as.set_properties(_T("hello"), Type, base, top); }
void AddPolygon(Airspaces &airspace_database) { AbstractAirspace *as = new AirspacePolygon(points); as->set_properties(Name, Type, Base, Top); as->set_radio(Radio); as->set_days(days_of_operation); airspace_database.insert(as); }