Exemple #1
0
bool Navaid::At(Plane &plane)
{
    int x, y;
    plane.GetPosition(x, y);
    if (( x == position.x || y == position.y) && plane.ClearedToLand())
    {
        plane.SetClearedToLand(false);
        plane.SetHeading(heading);
        plane.SetAltitude(0);
        return true;
    }
    return false;
}