Main Page
Classes
Files
File List
All
Classes
Functions
Typedefs
multipleVesselsMFD
example
MyPluginMultipleVessels.hpp
1
// ==============================================================
2
// ORBITER AUX LIBRARY: Multiple Vessels Support
3
// http://sf.net/projects/enjomitchsorbit
4
// Part of the ORBITER SDK
5
//
6
// Copyright (C) 2008 Mohd "Computerex" Ali - original concept
7
// Copyright (C) 2011 Szymon "Enjo" Ender - object oriented design,
8
// simplifications, fixes
9
// All rights reserved
10
//
11
// Multiple Vessels Support is free software: you can redistribute it
12
// and/or modify it under the terms of the GNU Lesser General Public
13
// License as published by the Free Software Foundation, either version
14
// 3 of the License, or (at your option) any later version.
15
//
16
// Multiple Vessels Support is distributed in the hope that it will
17
// be useful, but WITHOUT ANY WARRANTY; without even the implied
18
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19
// See the GNU Lesser General Public License for more details.
20
//
21
// You should have received a copy of the GNU Lesser General Public
22
// License along with Multiple Vessels Support. If not, see
23
// <http://www.gnu.org/licenses/>.
24
// ==============================================================
25
26
#ifndef PLUGINMyMFDMultipleVessels_HPP_INCLUDED
27
#define PLUGINMyMFDMultipleVessels_HPP_INCLUDED
28
29
#include "../PluginMultipleVessels.hpp"
30
#include "Autopilot/AutopilotManager.hpp"
31
#include "../../MFDSound++/Sound.hpp"
32
#include "Sound/SoundMapMyMFD.hpp"
33
#include "MyMFDButtonsPage.hpp"
34
35
class
MyPluginMultipleVessels
:
public
EnjoLib::MFDGoodies::PluginMultipleVessels
36
{
37
public
:
38
MyPluginMultipleVessels
( HINSTANCE hDLL );
39
~
MyPluginMultipleVessels
();
40
bool
IsFuelLimited();
41
EnjoLib::MFDGoodies::Sound
& GetSound();
42
void
clbkFocusChanged (OBJHANDLE new_focus, OBJHANDLE old_focus);
43
MyMFDButtonsPage
& GetButtons();
44
45
46
protected
:
47
void
UpdateClientPreStep
(
EnjoLib::MFDGoodies::MFDData
* data,
const
EnjoLib::MFDGoodies::SimulationTimeData
& timeData );
48
void
UpdateClientPostStep
(
EnjoLib::MFDGoodies::MFDData
* data,
const
EnjoLib::MFDGoodies::SimulationTimeData
& timeData );
49
void
InitClient
();
50
void
CleanupClient();
51
EnjoLib::MFDGoodies::MFDData
*
ConstructNewMFDData
( VESSEL * vessel );
52
53
private
:
54
bool
CfgCheckIsFuelLimited();
55
bool
CfgCheckUseSound();
56
57
bool
m_isFuelLimited;
58
AutopilotManager
m_apMan;
59
EnjoLib::MFDGoodies::Sound
m_sound;
60
SoundMapMyMFD
m_soundMap;
61
MyMFDButtonsPage
m_buttons;
62
};
63
64
#endif // PLUGINMyMFDMultipleVessels_HPP_INCLUDED
Generated on Sat Feb 23 2013 09:37:47 by
1.8.1.2