StandardMainLoop Class Reference

#include <mainLoop.h>

List of all members.


Detailed Description

Support class to simplify the process of writing a main loop for Torque apps.


Static Public Member Functions

static void init ()
 Initialize core libraries and call registered init functions.
static bool handleCommandLine (S32 argc, const char **argv)
 Pass command line arguments to registered functions and main.cs.
static bool doMainLoop ()
 A standard mainloop implementation.
static void shutdown ()
 Shut down the core libraries and call registered shutdown fucntions.
static void setRestart (bool restart)
static bool requiresRestart ()

Static Private Member Functions

static void preShutdown ()
 Handle "pre shutdown" tasks like notifying scripts BEFORE we delete stuff from under them.


Member Function Documentation

static void StandardMainLoop::init (  )  [static]

Initialize core libraries and call registered init functions.

static bool StandardMainLoop::handleCommandLine ( S32  argc,
const char **  argv 
) [static]

Pass command line arguments to registered functions and main.cs.

static bool StandardMainLoop::doMainLoop (  )  [static]

A standard mainloop implementation.

static void StandardMainLoop::shutdown (  )  [static]

Shut down the core libraries and call registered shutdown fucntions.

static void StandardMainLoop::setRestart ( bool  restart  )  [static]

static bool StandardMainLoop::requiresRestart (  )  [static]

static void StandardMainLoop::preShutdown (  )  [static, private]

Handle "pre shutdown" tasks like notifying scripts BEFORE we delete stuff from under them.