All Classes Functions Typedefs
Public Member Functions | Protected Member Functions | List of all members
MyPluginMultipleVessels Class Reference
Inheritance diagram for MyPluginMultipleVessels:
EnjoLib::MFDGoodies::PluginMultipleVessels

Public Member Functions

 MyPluginMultipleVessels (HINSTANCE hDLL)
bool IsFuelLimited ()
EnjoLib::MFDGoodies::SoundGetSound ()
void clbkFocusChanged (OBJHANDLE new_focus, OBJHANDLE old_focus)
MyMFDButtonsPageGetButtons ()
- Public Member Functions inherited from EnjoLib::MFDGoodies::PluginMultipleVessels
 PluginMultipleVessels (HINSTANCE hDLL)
 Default ctor.
virtual ~PluginMultipleVessels ()
 Dtor.
MFDDataAssociateMFDData (VESSEL *vessel)
 Associates a given vessel with MFDData.
void UpdatePreStep (const SimulationTimeData &timeData)
 Updates the plugin.
void UpdatePostStep (const SimulationTimeData &timeData)
void clbkSimulationStart (RenderMode mode)
void clbkSimulationEnd ()
void Init ()
 Initialises the plugin.
void Cleanup ()
void DeleteVessel (OBJHANDLE hVessel)
 Deletes vessel.
void clbkPreStep (double simt, double simdt, double mjd)
 Time step notification before state update.
void clbkPostStep (double simt, double simdt, double mjd)
 Time step notification after state update.
void clbkDeleteVessel (OBJHANDLE hVessel)
 Vessel destruction notification.

Protected Member Functions

void UpdateClientPreStep (EnjoLib::MFDGoodies::MFDData *data, const EnjoLib::MFDGoodies::SimulationTimeData &timeData)
 Updates client (derived) PluginMultipleVessels before simulation state update.
void UpdateClientPostStep (EnjoLib::MFDGoodies::MFDData *data, const EnjoLib::MFDGoodies::SimulationTimeData &timeData)
 Updates client (derived) PluginMultipleVessels after simulation state update.
void InitClient ()
 Initialises client (derived) PluginMultipleVessels.
void CleanupClient ()
EnjoLib::MFDGoodies::MFDDataConstructNewMFDData (VESSEL *vessel)
 Creates and returns a new MFDData * compatible pointer.

Member Function Documentation

MFDData * MyPluginMultipleVessels::ConstructNewMFDData ( VESSEL *  vessel)
protectedvirtual

Creates and returns a new MFDData * compatible pointer.

This method should construct and return a new MFDData * compatible pointer,

ie. a pointer to an object that is derived from MFDData and used in your PluginMultipleVessels and MFD implementation Called from AssociateMFDData()

Implements EnjoLib::MFDGoodies::PluginMultipleVessels.

void MyPluginMultipleVessels::InitClient ( )
protectedvirtual

Initialises client (derived) PluginMultipleVessels.

Initialises client (derived) PluginMultipleVessels. This method should gain access to Orbiter's configuration files and store the obtained data in member variables, so that they can be passed to MFD, if they are needed. This method is called only once in simulation.

Implements EnjoLib::MFDGoodies::PluginMultipleVessels.

void MyPluginMultipleVessels::UpdateClientPostStep ( EnjoLib::MFDGoodies::MFDData data,
const EnjoLib::MFDGoodies::SimulationTimeData timeData 
)
protectedvirtual

Updates client (derived) PluginMultipleVessels after simulation state update.

See Also
UpdateClientPreStep()

Implements EnjoLib::MFDGoodies::PluginMultipleVessels.

void MyPluginMultipleVessels::UpdateClientPreStep ( EnjoLib::MFDGoodies::MFDData data,
const EnjoLib::MFDGoodies::SimulationTimeData timeData 
)
protectedvirtual

Updates client (derived) PluginMultipleVessels before simulation state update.

Updates client (derived) PluginMultipleVessels for each valid MFDData object. The method should perform every necessary operations on MFDData object for a proper module operation when the MFD itself is turned off.

Parameters
data- one of the created MFDData object
timeData- simulation timess

Implements EnjoLib::MFDGoodies::PluginMultipleVessels.


The documentation for this class was generated from the following files: