XPMP2
X-Plane multiplayer library 2 - using instancing
XPCAircraft.h
Go to the documentation of this file.
1 
28 #ifndef _XPCAircraft_h_
29 #define _XPCAircraft_h_
30 
31 #include "XPMPAircraft.h"
32 
36 class [[deprecated("Subclass XPMP2::Aircraft instead")]]
38 
39 public:
44 
45 public:
46 
54  XPCAircraft(const char* _icaoType,
55  const char* _icaoAirline,
56  const char* _livery,
57  XPMPPlaneID _modeS_id = 0, // new parameters are defaulted, so that old code should compile
58  const char* _modelId = nullptr);
59 
68  { return xpmpData_Unavailable; }
69 
71  virtual void UpdatePosition (float _elapsedSinceLastCall, int _flCounter);
72 
73 };
74 
75 #endif
XPMP2::Aircraft represent an aircraft as managed by XPMP2.
XPMPPlaneCallbackResult
Definfes the different responses to asking for information.
Definition: XPMPMultiplayer.h:240
@ xpmpData_Unavailable
Definition: XPMPMultiplayer.h:241
unsigned XPMPPlaneID
Unique ID for an aircraft created by a plugin.
Definition: XPMPMultiplayer.h:252
Textual information of planes to be passed on via shared dataRefs to other plugins.
Definition: XPMPMultiplayer.h:208
This data structure contains the basic position info for an aircraft.
Definition: XPMPMultiplayer.h:88
defines information about an aircraft visible to radar.
Definition: XPMPMultiplayer.h:198
External physical configuration of the plane.
Definition: XPMPMultiplayer.h:156
Legacy wrapper class as provided by original libxplanemp.
Definition: XPCAircraft.h:37
virtual void UpdatePosition(float _elapsedSinceLastCall, int _flCounter)
Just calls all 4 previous Get... functions and copies the provided values into drawInfo and v
Definition: Aircraft.cpp:970
XPMPPlanePosition_t acPos
Last position data. GetPlanePosition() passes a pointer to this member variable.
Definition: XPCAircraft.h:41
virtual XPMPPlaneCallbackResult GetPlaneSurfaces(XPMPPlaneSurfaces_t *outSurfaces)=0
Legacy: Called before rendering to query plane's current configuration, overwrite to provide your imp...
XPMPPlaneSurfaces_t acSurfaces
Last surface data. GetPlaneSurfaces() passes a pointer to this member variable.
Definition: XPCAircraft.h:43
virtual XPMPPlaneCallbackResult GetPlanePosition(XPMPPlanePosition_t *outPosition)=0
Legacy: Called before rendering to query plane's current position, overwrite to provide your implemen...
virtual XPMPPlaneCallbackResult GetInfoTexts(XPMPInfoTexts_t *)
Legacy: Called before rendering to query plane's textual information, overwrite to provide your imple...
Definition: XPCAircraft.h:67
virtual XPMPPlaneCallbackResult GetPlaneRadar(XPMPPlaneRadar_t *outRadar)=0
Legacy: Called before rendering to query plane's current radar visibility, overwrite to provide your ...
XPCAircraft(const char *_icaoType, const char *_icaoAirline, const char *_livery, XPMPPlaneID _modeS_id=0, const char *_modelId=nullptr)
Legacy constructor creates a plane and puts it under control of XPlaneMP.
Definition: Aircraft.cpp:960
Actual representation of all aircraft in XPMP2.
Definition: XPMPAircraft.h:178
Definition: XPMPAircraft.h:70