X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FAIModel%2FAICarrier.hxx;h=c359c3fcb35f4b5aba7dd373507650f45a9f6ef3;hb=90b2d25671d60ff3c5561791676f27d31676904c;hp=9a3d52f416861b57e109fabf41e5cd25d67c3d27;hpb=c2d8dcc18baf88176ad48f0b7163dcb4aee51f90;p=flightgear.git diff --git a/src/AIModel/AICarrier.hxx b/src/AIModel/AICarrier.hxx index 9a3d52f41..c359c3fcb 100644 --- a/src/AIModel/AICarrier.hxx +++ b/src/AIModel/AICarrier.hxx @@ -23,11 +23,14 @@ #include #include -#include + +#include +#include + #include -SG_USING_STD(string); -SG_USING_STD(list); +using std::string; +using std::list; #include "AIShip.hxx" @@ -37,7 +40,7 @@ SG_USING_STD(list); class FGAIManager; class FGAICarrier; -class FGAICarrierHardware : public ssgBase { +class FGAICarrierHardware : public osg::Referenced { public: enum Type { Catapult, Wire, Solid }; @@ -84,7 +87,7 @@ public: void setSign(const string& ); void setTACANChannelID(const string &); - void getVelocityWrtEarth(sgdVec3& v, sgdVec3& omega, sgdVec3& pivot); + void getVelocityWrtEarth(SGVec3d& v, SGVec3d& omega, SGVec3d& pivot); virtual void bind(); virtual void unbind(); void UpdateWind ( double dt ); @@ -97,10 +100,10 @@ public: void TurnToLaunch(); void TurnToBase(); void ReturnToBox(); - float Horizon(float h); bool OutsideBox(); - bool init(); + bool init(bool search_in_AI_path=false); + void initModel(osg::Node *node); virtual const char* getTypeString(void) const { return "carrier"; } @@ -124,11 +127,6 @@ private: void update(double dt); - void mark_nohot(ssgEntity*); - - bool mark_wires(ssgEntity*, const list&, bool = false); - bool mark_cat(ssgEntity*, const list&, bool = false); - bool mark_solid(ssgEntity*, const list&, bool = false); double wind_from_east; // fps double wind_from_north; // fps double rel_wind_speed_kts;