FlightGear next
|
#include <AIWingman.hxx>
Inherits FGAIBallistic.
Public Member Functions | |
FGAIWingman () | |
virtual | ~FGAIWingman ()=default |
std::string_view | getTypeString (void) const override |
void | readFromScenario (SGPropertyNode *scFileNode) override |
bool | init (ModelSearchOrder searchOrder) override |
void | bind () override |
void | reinit () override |
void | update (double dt) override |
![]() | |
FGAIBallistic (object_type ot=object_type::otBallistic) | |
virtual | ~FGAIBallistic ()=default |
void | Run (double dt) |
void | setAzimuth (double az) |
void | setElevation (double el) |
void | setAzimuthRandomError (double error) |
void | setElevationRandomError (double error) |
void | setRoll (double rl) |
void | setStabilisation (bool val) |
void | setDragArea (double a) |
void | setLife (double seconds) |
void | setBuoyancy (double fpss) |
void | setWind_from_east (double fps) |
void | setWind_from_north (double fps) |
void | setWind (bool val) |
void | setCd (double cd) |
void | setCdRandomness (double randomness) |
void | setMass (double m) |
void | setWeight (double w) |
void | setNoRoll (bool nr) |
void | setRandom (bool r) |
void | setLifeRandomness (double randomness) |
void | setCollision (bool c) |
void | setExpiry (bool e) |
void | setImpact (bool i) |
void | setImpactReportNode (const std::string &) |
void | setContentsNode (const SGPropertyNode_ptr) |
void | setFuseRange (double f) |
void | setSMPath (const std::string &) |
void | setSubID (int i) |
void | setSubmodel (const std::string &) |
void | setExternalForce (bool f) |
void | setForcePath (const std::string &) |
void | setContentsPath (const std::string &) |
void | setForceStabilisation (bool val) |
void | setGroundOffset (double g) |
void | setLoadOffset (double l) |
void | setSlaved (bool s) |
void | setSlavedLoad (bool s) |
void | setPch (double e, double dt, double c) |
int | setHdg (double az, double dt, double c) |
void | setBnk (double r, double dt, double c) |
void | setHt (double h, double dt, double c) |
void | setSpd (double s, double dt, double c) |
void | setParentNodes (const SGPropertyNode_ptr) |
void | setParentPos () |
void | setOffsetPos (SGGeod pos, double heading, double pitch, double roll) |
void | setOffsetVelocity (double dt, SGGeod pos) |
void | setTime (double sec) |
double | _getTime () const |
double | getRelBrgHitchToUser () const |
double | getElevHitchToUser () const |
double | getLoadOffset () const |
double | getContents () |
double | getDistanceToHitch () const |
double | getElevToHitch () const |
double | getBearingToHitch () const |
SGVec3d | getCartHitchPos () const |
bool | getHtAGL (double start) |
bool | getSlaved () const |
bool | getSlavedLoad () const |
void | setTgtXOffset (double x) |
void | setTgtYOffset (double y) |
void | setTgtZOffset (double z) |
void | setTgtOffsets (double dt, double c) |
double | getTgtXOffset () const |
double | getTgtYOffset () const |
double | getTgtZOffset () const |
![]() | |
FGAIBase (object_type ot, bool enableHot) | |
virtual | ~FGAIBase () |
virtual void | initModel () |
virtual void | unbind () |
virtual double | getDefaultModelRadius () |
void | updateLOD () |
update LOD properties of the model | |
void | updateInterior () |
void | setManager (FGAIManager *mgr, SGPropertyNode *p) |
void | setPath (const char *model) |
void | setPathLowres (std::string model) |
void | setFallbackModelIndex (const int i) |
void | setSMPath (const std::string &p) |
void | setCallSign (const std::string &) |
void | setSpeed (double speed_KTAS) |
void | setMaxSpeed (double kts) |
void | setAltitude (double altitude_ft) |
void | setAltitudeAGL (double altitude_agl_ft) |
void | setHeading (double heading) |
void | setLatitude (double latitude) |
void | setLongitude (double longitude) |
void | setBank (double bank) |
void | setPitch (double newpitch) |
void | setRadius (double radius) |
void | setXoffset (double x_offset) |
void | setYoffset (double y_offset) |
void | setZoffset (double z_offset) |
void | setPitchoffset (double x_offset) |
void | setRolloffset (double y_offset) |
void | setYawoffset (double z_offset) |
void | setServiceable (bool serviceable) |
bool | getDie () |
void | setDie (bool die) |
bool | isValid () const |
void | setCollisionData (bool i, double lat, double lon, double elev) |
void | setImpactData (bool d) |
void | setImpactLat (double lat) |
void | setImpactLon (double lon) |
void | setImpactElev (double e) |
void | setName (const std::string &n) |
bool | setParentNode () |
void | setParentName (const std::string &p) |
void | setCollisionLength (int range) |
void | setCollisionHeight (int height) |
void | calcRangeBearing (double lat, double lon, double lat2, double lon2, double &range, double &bearing) const |
double | calcRelBearingDeg (double bearing, double heading) |
double | calcTrueBearingDeg (double bearing, double heading) |
double | calcRecipBearingDeg (double bearing) |
int | getID () const |
int | _getSubID () const |
void | setFlightPlan (std::unique_ptr< FGAIFlightPlan > f) |
SGGeod | getGeodPos () const |
void | setGeodPos (const SGGeod &pos) |
SGVec3d | getCartPosAt (const SGVec3d &off) const |
SGVec3d | getCartPos () const |
bool | getGroundElevationM (const SGGeod &pos, double &elev, const simgear::BVHMaterial **material) const |
SGPropertyNode * | getPositionFromNode (SGPropertyNode *scFileNode, const std::string &key, SGVec3d &position) |
double | getTrueHeadingDeg () const |
double | _getCartPosX () const |
double | _getCartPosY () const |
double | _getCartPosZ () const |
osg::LOD * | getSceneBranch () const |
virtual int | getCollisionHeight () const |
virtual int | getCollisionLength () const |
bool | modelLoaded () const |
void | setScenarioPath (const std::string &scenarioPath) |
object_type | getType () |
bool | isa (object_type otype) |
void | _setVS_fps (double _vs) |
void | _setAltitude (double _alt) |
void | _setLongitude (double longitude) |
void | _setLatitude (double latitude) |
void | _setSubID (int s) |
double | _getAltitudeAGL (SGGeod inpos, double start) |
double | _getVS_fps () const |
double | _getAltitude () const |
double | _getLongitude () const |
double | _getLatitude () const |
double | _getElevationFt () const |
double | _getRdot () const |
double | _getH_offset () const |
double | _getV_offset () const |
double | _getX_shift () const |
double | _getY_shift () const |
double | _getRotation () const |
double | _getSpeed () const |
double | _getRoll () const |
double | _getPitch () const |
double | _getHeading () const |
double | _get_speed_east_fps () const |
double | _get_speed_north_fps () const |
double | _get_SubPath () const |
double | _getImpactLat () const |
double | _getImpactLon () const |
double | _getImpactElevFt () const |
double | _getImpactHdg () const |
double | _getImpactPitch () const |
double | _getImpactRoll () const |
double | _getImpactSpeed () const |
double | _getXOffset () const |
double | _getYOffset () const |
double | _getZOffset () const |
bool | _getServiceable () const |
bool | _getFirstTime () const |
bool | _getImpact () |
bool | _getImpactData () |
bool | _getCollisionData () |
bool | _getExpiryData () |
SGPropertyNode * | _getProps () const |
const char * | _getPath () const |
const char * | _getSMPath () const |
const char * | _getCallsign () const |
const char * | _getTriggerNode () const |
const char * | _getName () const |
const char * | _getSubmodel () const |
int | _getFallbackModelIndex () const |
double | _getRange () const |
double | _getBearing () const |
const std::string & | getCallSign () const |
ModelSearchOrder | getSearchOrder () const |
Additional Inherited Members | |
![]() | |
enum class | object_type { otNull = 0 , otAircraft , otShip , otCarrier , otBallistic , otRocket , otStorm , otThermal , otStatic , otWingman , otGroundVehicle , otEscort , otMultiplayer , MAX_OBJECTS } |
enum class | ModelSearchOrder { DATA_ONLY , PREFER_AI , PREFER_DATA } |
![]() | |
static bool | _isNight () |
![]() | |
FGAIBallistic * | ballistic = nullptr |
SGPropertyNode_ptr | _force_node |
SGPropertyNode_ptr | _force_azimuth_node |
SGPropertyNode_ptr | _force_elevation_node |
SGPropertyNode_ptr | _pnode |
SGPropertyNode_ptr | _p_pos_node |
SGPropertyNode_ptr | _p_lat_node |
SGPropertyNode_ptr | _p_lon_node |
SGPropertyNode_ptr | _p_alt_node |
SGPropertyNode_ptr | _p_agl_node |
SGPropertyNode_ptr | _p_ori_node |
SGPropertyNode_ptr | _p_pch_node |
SGPropertyNode_ptr | _p_rll_node |
SGPropertyNode_ptr | _p_hdg_node |
SGPropertyNode_ptr | _p_vel_node |
SGPropertyNode_ptr | _p_spd_node |
double | _height |
double | _speed |
double | _ht_agl_ft |
double | _azimuth |
double | _elevation |
double | _rotation |
double | _speed_north_fps = 0.0 |
double | _speed_east_fps = 0.0 |
double | _wind_from_east = 0.0 |
double | _wind_from_north = 0.0 |
double | hs |
double | _tgt_x_offset = 0.0 |
double | _tgt_y_offset = 0.0 |
double | _tgt_z_offset = 0.0 |
double | _elapsed_time |
SGGeod | _parentpos |
SGGeod | _oldpos |
SGGeod | _offsetpos |
SGGeod | _oldoffsetpos |
![]() | |
static const double | slugs_to_kgs = 14.5939029372 |
static const double | slugs_to_lbs = 32.1740485564 |
![]() | |
static const double | e = 2.71828183 |
static const double | lbs_to_slugs = 0.031080950172 |
![]() | |
template<typename T> | |
void | tie (const char *aRelPath, const SGRawValue< T > &aRawValue) |
Tied-properties helper, record nodes which are tied for easy un-tie-ing. | |
void | Transform () |
double | UpdateRadar (FGAIManager *manager) |
void | removeModel () |
Cleanly remove the model and let the scenery database pager do the clean-up work. | |
void | removeSoundFx () |
![]() | |
static int | _newAIModelID () |
![]() | |
double | _elevation_m = 0.0 |
double | _x_offset |
double | _y_offset |
double | _z_offset |
double | _pitch_offset |
double | _roll_offset |
double | _yaw_offset |
double | _max_speed = 300.0 |
int | collisionHeight = 0 |
int | collisionLength = 0 |
std::string | _path |
std::string | _callsign |
std::string | _submodel |
std::string | _name |
std::string | _parent |
std::string | _scenarioPath |
simgear::TiedPropertyList | _tiedProperties |
SGPropertyNode_ptr | _selected_ac |
SGPropertyNode_ptr | props |
SGPropertyNode_ptr | trigger_node |
SGPropertyNode_ptr | replay_time |
SGPropertyNode_ptr | model_removed |
FGAIManager * | manager = nullptr |
SGGeod | pos |
double | hdg |
double | roll |
double | pitch |
double | speed |
double | speed_fps = 0.0 |
double | altitude_ft |
double | vs_fps |
double | speed_north_deg_sec |
double | speed_east_deg_sec |
double | turn_radius_ft |
double | altitude_agl_ft = 0.0 |
double | ft_per_deg_lon |
double | ft_per_deg_lat |
double | tgt_heading |
double | tgt_altitude_ft |
double | tgt_speed |
double | tgt_roll |
double | tgt_pitch |
double | tgt_yaw |
double | tgt_vs |
bool | in_range |
double | bearing |
double | elevation |
double | range |
double | rdot |
double | horiz_offset |
double | vert_offset |
double | x_shift |
double | y_shift |
double | rotation |
double | ht_diff |
std::string | model_path |
std::string | model_path_lowres |
int | _fallback_model_index = 0 |
SGModelPlacement | aip |
bool | delete_me |
bool | invisible = false |
bool | no_roll |
bool | serviceable |
bool | _installed = false |
int | _subID = 0 |
double | life |
std::unique_ptr< FGAIFlightPlan > | fp |
bool | _impact_reported |
bool | _collision_reported |
bool | _expiry_reported |
double | _impact_lat |
double | _impact_lon |
double | _impact_elev |
double | _impact_hdg |
double | _impact_pitch |
double | _impact_roll |
double | _impact_speed |
ModelSearchOrder | _searchOrder = ModelSearchOrder::DATA_ONLY |
Definition at line 19 of file AIWingman.hxx.
FGAIWingman::FGAIWingman | ( | ) |
Definition at line 30 of file AIWingman.cxx.
|
virtualdefault |
|
overridevirtual |
Reimplemented from FGAIBallistic.
Definition at line 77 of file AIWingman.cxx.
|
inlineoverridevirtual |
Reimplemented from FGAIBallistic.
Definition at line 25 of file AIWingman.hxx.
|
overridevirtual |
Reimplemented from FGAIBallistic.
Definition at line 159 of file AIWingman.cxx.
|
overridevirtual |
Reimplemented from FGAIBallistic.
Definition at line 47 of file AIWingman.cxx.
|
overridevirtual |
Reimplemented from FGAIBallistic.
Definition at line 167 of file AIWingman.cxx.
|
overridevirtual |
Reimplemented from FGAIBallistic.
Definition at line 191 of file AIWingman.cxx.