* Built-in command: do nothing.
*/
static bool
-do_null (const SGPropertyNode * arg, SGCommandState ** state)
+do_null (const SGPropertyNode * arg)
{
return true;
}
* TODO: show a confirm dialog.
*/
static bool
-do_exit (const SGPropertyNode * arg, SGCommandState ** state)
+do_exit (const SGPropertyNode * arg)
{
SG_LOG(SG_INPUT, SG_ALERT, "Program exit requested.");
ConfirmExitDialog();
* directory). Defaults to "fgfs.sav".
*/
static bool
-do_load (const SGPropertyNode * arg, SGCommandState ** state)
+do_load (const SGPropertyNode * arg)
{
const string &file = arg->getStringValue("file", "fgfs.sav");
ifstream input(file.c_str());
* current directory). Defaults to "fgfs.sav".
*/
static bool
-do_save (const SGPropertyNode * arg, SGCommandState ** state)
+do_save (const SGPropertyNode * arg)
{
const string &file = arg->getStringValue("file", "fgfs.sav");
bool write_all = arg->getBoolValue("write-all", false);
* and if that's unspecified, to "Panels/Default/default.xml".
*/
static bool
-do_panel_load (const SGPropertyNode * arg, SGCommandState ** state)
+do_panel_load (const SGPropertyNode * arg)
{
string panel_path =
arg->getStringValue("path",
* y-pos: the y position of the mouse click.
*/
static bool
-do_panel_mouse_click (const SGPropertyNode * arg, SGCommandState ** state)
+do_panel_mouse_click (const SGPropertyNode * arg)
{
if (current_panel != 0)
return current_panel
* to FG_ROOT). Defaults to "preferences.xml".
*/
static bool
-do_preferences_load (const SGPropertyNode * arg, SGCommandState ** state)
+do_preferences_load (const SGPropertyNode * arg)
{
const string &path = arg->getStringValue("path", "preferences.xml");
SGPath props_path(globals->get_fg_root());
* Built-in command: cycle view.
*/
static bool
-do_view_cycle (const SGPropertyNode * arg, SGCommandState ** state)
+do_view_cycle (const SGPropertyNode * arg)
{
globals->get_current_view()->setHeadingOffset_deg(0.0);
globals->get_viewmgr()->next_view();
* Built-in command: capture screen.
*/
static bool
-do_screen_capture (const SGPropertyNode * arg, SGCommandState ** state)
+do_screen_capture (const SGPropertyNode * arg)
{
fgDumpSnapShot();
return true;
* Reload the tile cache.
*/
static bool
-do_tile_cache_reload (const SGPropertyNode * arg, SGCommandState ** state)
+do_tile_cache_reload (const SGPropertyNode * arg)
{
static const SGPropertyNode *master_freeze
= fgGetNode("/sim/freeze/master");
* Update the lighting manually.
*/
static bool
-do_lighting_update (const SGPropertyNode * arg, SGCommandState ** state)
+do_lighting_update (const SGPropertyNode * arg)
{
fgUpdateSkyAndLightingParams();
return true;
* property: The name of the property to toggle.
*/
static bool
-do_property_toggle (const SGPropertyNode * arg, SGCommandState ** state)
+do_property_toggle (const SGPropertyNode * arg)
{
SGPropertyNode * prop = get_prop(arg);
return prop->setBoolValue(!prop->getBoolValue());
* value: the value to assign.
*/
static bool
-do_property_assign (const SGPropertyNode * arg, SGCommandState ** state)
+do_property_assign (const SGPropertyNode * arg)
{
SGPropertyNode * prop = get_prop(arg);
const SGPropertyNode * value = arg->getNode("value");
* false).
*/
static bool
-do_property_adjust (const SGPropertyNode * arg, SGCommandState ** state)
+do_property_adjust (const SGPropertyNode * arg)
{
SGPropertyNode * prop = get_prop(arg);
const SGPropertyNode * step = arg->getChild("step");
* factor: the amount by which to multiply.
*/
static bool
-do_property_multiply (const SGPropertyNode * arg, SGCommandState ** state)
+do_property_multiply (const SGPropertyNode * arg)
{
SGPropertyNode * prop = get_prop(arg);
const SGPropertyNode * factor = arg->getChild("factor");
* property[1]: the name of the second property.
*/
static bool
-do_property_swap (const SGPropertyNode * arg, SGCommandState ** state)
+do_property_swap (const SGPropertyNode * arg)
{
SGPropertyNode * prop1 = get_prop(arg);
SGPropertyNode * prop2 = get_prop2(arg);
* factor: the factor to multiply by (use negative to reverse).
*/
static bool
-do_property_scale (const SGPropertyNode * arg, SGCommandState ** state)
+do_property_scale (const SGPropertyNode * arg)
{
SGPropertyNode * prop = get_prop(arg);
double setting = arg->getDoubleValue("setting");