X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FAIModel%2FAIAircraft.hxx;h=fd4fd2ad0813c2423006304b6ef6ccc4c823a613;hb=8be4e97f54121260feb292e1fcbe3d072d28c941;hp=85fca1040733ea902747c7a9d6715516401ef8f6;hpb=2710564c7d3c3e95361a366441d3b96a6049ee05;p=flightgear.git diff --git a/src/AIModel/AIAircraft.hxx b/src/AIModel/AIAircraft.hxx index 85fca1040..fd4fd2ad0 100644 --- a/src/AIModel/AIAircraft.hxx +++ b/src/AIModel/AIAircraft.hxx @@ -64,7 +64,7 @@ public: void getGroundElev(double dt); //TODO these 3 really need to be public? void doGroundAltitude(); - void loadNextLeg (); + bool loadNextLeg (); void setAcType(const string& ac) { acType = ac; }; void setCompany(const string& comp) { company = comp;}; @@ -76,6 +76,7 @@ public: virtual const char* getTypeString(void) const { return "aircraft"; } // included as performance data needs them, who else? + inline PerformanceData* getPerformance() { return _performance; }; inline bool onGround() const { return no_roll; }; inline double getSpeed() const { return speed; }; inline double getRoll() const { return roll; }; @@ -117,7 +118,7 @@ private: void controlHeading(FGAIFlightPlan::waypoint* curr); void controlSpeed(FGAIFlightPlan::waypoint* curr, FGAIFlightPlan::waypoint* next); - bool updatePrimaryTargetValues(); + void updatePrimaryTargetValues(); void updateSecondaryTargetValues(); void updatePosition(); void updateHeading(); @@ -126,6 +127,7 @@ private: void updatePitchAngleTarget(); void updateActualState(); void handleATCRequests(); + void checkVisibility(); double sign(double x);