Open main menu

Difference between revisions of "HOWTO-Engines"

8 bytes removed ,  09:36, 6 January 2011
m
Remove newlines from debug messages which are now using debug().
(Replaced all printf() calls (which we no longer support directly) with debug() calls)
m (Remove newlines from debug messages which are now using debug().)
Line 187: Line 187:
g_eventRec.registerRandomSource(_rnd, "quux");
g_eventRec.registerRandomSource(_rnd, "quux");
   
   
debug("QuuxEngine::QuuxEngine\n");
debug("QuuxEngine::QuuxEngine");
}
}
   
   
QuuxEngine::~QuuxEngine() {
QuuxEngine::~QuuxEngine() {
// Dispose your resources here
// Dispose your resources here
debug("QuuxEngine::~QuuxEngine\n");
debug("QuuxEngine::~QuuxEngine");
   
   
// Remove all of our debug levels here
// Remove all of our debug levels here
Line 221: Line 221:
   
   
// Additional setup.
// Additional setup.
debug("QuuxEngine::init\n");
debug("QuuxEngine::init");
   
   
// Your main even loop should be (invoked from) here.
// Your main even loop should be (invoked from) here.
debug("QuuxEngine::go: Hello, World!\n");
debug("QuuxEngine::go: Hello, World!");
   
   
// This test will show up if -d1 and --debugflags=example are specified on the commandline
// This test will show up if -d1 and --debugflags=example are specified on the commandline
193

edits