tie(node->getNode(relative_path, true), raw_value);
}
+ PropertiesHandler() {};
+
void init ();
void unbind ();
};
+public:
+ PropertiesHandler properties_handler;
+
+private:
/////////////////////////////////////////////////////////////////////////////
// MK_VIII::PowerHandler ////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// MK_VIII::IOHandler ///////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+public:
class IOHandler
{
public:
void bind (SGPropertyNode *node);
+ MK_VIII *mk;
+
private:
///////////////////////////////////////////////////////////////////////////
// MK_VIII::IOHandler (continued) /////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
- MK_VIII *mk;
-
TerrainClearanceFilter terrain_clearance_filter;
Lamp _lamp;
const char *name,
int *output);
+ public:
+
bool get_discrete_input (bool *ptr) const;
void set_discrete_input (bool *ptr, bool value);
inline void bind (SGPropertyNode *node) { speaker.bind(node); }
- private:
+ public:
///////////////////////////////////////////////////////////////////////////
// MK_VIII::VoicePlayer::Speaker //////////////////////////////////////////
&MK_VIII::VoicePlayer::Speaker::set_property));
}
+ public:
template <class T>
inline void set_property (T *ptr, T value) { *ptr = value; update_configuration(); }
template <class T>
inline T get_property (T *ptr) const { return *ptr; }
- public:
double volume;
inline Speaker (VoicePlayer *_player)
void update_configuration ();
};
+ private:
///////////////////////////////////////////////////////////////////////////
// MK_VIII::VoicePlayer (continued) ///////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
inline void make_voice (Voice **voice, T1 e1, T2 e2, T3 e3, T4 e4) { make_voice(voice, e1, e2, e3); append(*voice, e4); }
};
+private:
/////////////////////////////////////////////////////////////////////////////
// MK_VIII::SelfTestHandler /////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
string name;
int num;
- PropertiesHandler properties_handler;
PowerHandler power_handler;
SystemHandler system_handler;
ConfigurationModule configuration_module;