36 #if XPPLANES_VER_MAJOR == 0
std::map< XPMPPlaneID, listFlightDataTy > mapListFlightDataTy
Map indexed by plane id holding lists of flight data elements.
Definition: FlightData.h:149
constexpr int HIDEOS_BY_REG
Hide ownship data based on comparing reg with acf_tailnum?
Definition: Global.h:26
constexpr int HIDEOS_BY_ID
Hide ownship data based on comparing id with acf_modeS_id?
Definition: Global.h:24
GlobVars glob
The one and only global variable structure.
Definition: Global.cpp:24
std::map< XPMPPlaneID, Plane > mapPlanesTy
Type of the map that stores and owns the plane objects.
Definition: Plane.h:81
logLevelTy
Logging level.
Definition: Utilities.h:129
@ logDEBUG
Debug, highest level of detail.
Definition: Utilities.h:130
@ logINFO
regular info messages
Definition: Utilities.h:131
All global config settings and variables are kept in one structure for convenient access and central ...
Definition: Global.h:29
XPLMMenuID hMenu
plugin's menu handle
Definition: Global.h:99
bool ConfigFileSave()
Write to a config file.
Definition: Global.cpp:172
int bufferPeriod
Buffering period in seconds.
Definition: Global.h:51
std::string listenMCGroup
The multicast group that we use, which is the same X-Plane is using itself for its BEACON.
Definition: Global.h:73
int iHideOwnship
Hide ownship data? (bitfield, see HIDEOS_BY_ID and HIDEOS_BY_REG)
Definition: Global.h:55
int remoteBufSize
Buffer size, ie. max message length we send over multicast.
Definition: Global.h:81
StatusTy
Plugin status (type definition)
Definition: Global.h:102
@ STATUS_ACTIVE
receiving data, displaying planes
Definition: Global.h:105
@ STATUS_INACTIVE
plugin inactive or starting up
Definition: Global.h:103
@ STATUS_WAITING
waiting for first network messages
Definition: Global.h:104
bool bLabelCutOffAtVisibility
Cut off labels at XP's reported visibility mit?
Definition: Global.h:61
int maxLabelDist
Maximum distance for drawing labels? [m], defaults to 3nm.
Definition: Global.h:59
int remoteTTL
Time-to-live, or mumber of hops for a multicast message.
Definition: Global.h:79
bool bDrawLabels
Shall we draw aircraft labels?
Definition: Global.h:57
mapPlanesTy mapPlanes
Global map of all created planes.
Definition: Global.h:86
bool bObjReplDataRefs
Replace dataRefs in .obj files on load?
Definition: Global.h:46
int listenBcstPort
The port for receiving UDP broadcast messages.
Definition: Global.h:77
GlobVars(logLevelTy _logLvl=logINFO, bool _logMdlMatch=false)
Constructor.
Definition: Global.h:112
bool bAITcasControl
Do we want to control X-Plane's AI/Multiplayer planes for TCAS?
Definition: Global.h:64
int listenMCPort
The port we use is different from the port the X-Plane BEACON uses, so we don't get into conflict.
Definition: Global.h:75
float now
Current X-Xplane's time.
Definition: Global.h:97
void ThisThreadIsXP()
Set current thread as main xp Thread.
Definition: Global.h:126
bool bObjReplTextures
Replace textures in .obj files on load if needed?
Definition: Global.h:48
bool bMapEnabled
Do we feed X-Plane's maps with our aircraft positions?
Definition: Global.h:67
bool ShallHideOsById() const
Hide ownship data based on id?
Definition: Global.h:116
std::thread::id xpThread
id of X-Plane's thread (when it is OK to use XP API calls)
Definition: Global.h:95
bool bLogMdlMatch
Debug model matching?
Definition: Global.h:42
bool IsXPThread() const
Is this thread XP's main thread?
Definition: Global.h:129
bool ShallHideOsByReg() const
Hide ownship data based on registration?
Definition: Global.h:118
bool ConfigFileLoad()
Read from a config file.
Definition: Global.cpp:111
mapListFlightDataTy mapListFD
Global map of available (potentially future) flight data.
Definition: Global.h:88
bool bMapLabels
Do we show labels with the aircraft icons?
Definition: Global.h:69
std::mutex mtxListFD
Mutex protecting access to the above mapListFD.
Definition: Global.h:90
bool bClampAll
Clamp all planes to the ground? Default is false as clamping is kinda expensive due to Y-Testing; the...
Definition: Global.h:44
int gracePeriod
Remove a plane after how many seconds without fresh data?
Definition: Global.h:53
logLevelTy logLvl
Logging level.
Definition: Global.h:35
volatile StatusTy eStatus
Plugin status.
Definition: Global.h:108
XPLMPluginID pluginId
This plugin's id.
Definition: Global.h:93