XPMP2
X-Plane multiplayer library 2 - using instancing
|
XPMP2::Aircraft represent an aircraft as managed by XPMP2. More...
#include "XPMPMultiplayer.h"
#include "XPLMInstance.h"
#include "XPLMCamera.h"
#include "XPLMMap.h"
#include <cstdint>
#include <cmath>
#include <stdexcept>
#include <string>
#include <vector>
#include <list>
Go to the source code of this file.
Classes | |
struct | XPMP2::CSLModelInfo_t |
Collates some information on the CSL model. More... | |
struct | XPMP2::CSLModelInfo_t::MatchCrit_t |
Any number of airline codes and/or liveries can be assigned to a model for matching purpose. More... | |
class | XPMP2::Aircraft |
Actual representation of all aircraft in XPMP2. More... | |
struct | XPMP2::Aircraft::wakeTy |
Wake dataRef support. More... | |
struct | XPMP2::Aircraft::SndChTy |
Operational values per sound channel, that is triggered by a standard sound event. More... | |
class | XPMP2::XPMP2Error |
XPMP2 Exception class, e.g. thrown if there are no CSL models or duplicate modeS_ids when creating an Aircraft. More... | |
Namespaces | |
XPMP2 | |
Functions | |
Aircraft * | XPMP2::AcFindByID (XPMPPlaneID _id) |
Find aircraft by its plane ID, can return nullptr. More... | |
bool | XPMP2::AcSetDefaultWakeData (const std::string &_wtc, const Aircraft::wakeTy &_wake) |
(Re)Define default wake turbulence values per WTC More... | |
Variables | |
constexpr float | XPMP2::RPM_to_RADs = 0.10471975511966f |
Defined by XPMP2 internally. More... | |
constexpr double | XPMP2::M_per_FT = 0.3048 |
Convert feet to meters, e.g. for altitude calculations. More... | |
constexpr int | XPMP2::M_per_NM = 1852 |
Convert nautical miles to meters. More... | |
constexpr double | XPMP2::KT_per_M_per_S = 1.94384 |
Convert m/s to knots. More... | |
constexpr float | XPMP2::G_EARTH = 9.80665f |
standard gravitational acceleration [m/s²] More... | |
XPMP2::Aircraft represent an aircraft as managed by XPMP2.
New implementations should derive directly from XPMP2::Aircraft.
This is one of two main header files for using XPMP2. (The other is XPMPMultiplayer.h
). XPMP2 is a library allowing an X-Plane plugin to have planes rendered in X-Plane's 3D world based on OBJ8 CSL models, which need to be installed separately. The plugin shall subclass XPMP2::Aircraft and override the abstract virtual function XPMP2::Aircraft::UpdatePosition() to provide updated position and attitude information. XPMP2 takes care of reading and initializaing CSL models, instanciating and updating the aircraft objects in X-Plane, display in a map layer, provisioning information via X-Plane's TCAS targets and AI/multiplayer (and more) dataRefs.
struct XPMP2::CSLModelInfo_t::MatchCrit_t |
struct XPMP2::Aircraft::SndChTy |
Operational values per sound channel, that is triggered by a standard sound event.
Class Members | ||
---|---|---|
bool | bAuto | Shall this sound event be handled automatically? (Set to false in your constructor or in Aircraft::SoundSetup() if you want to control that event type yourself) |
uint64_t | chnId | id of channel playing the sound currently |
float | lastDRVal | last observed dataRef value to see if sound is to be triggered |
float | volAdj | Volume adjustment, fed from Aircraft::SoundGetName() |