Difference between revisions of "HOWTO-Engines"

Jump to navigation Jump to search
3 bytes added ,  13:58, 22 January 2008
→‎Example: engines/quux/quux.h: update / compilation fixes
(→‎Steps: instead of editing engines/module.mk one has to edit engines/engine.mk these days)
(→‎Example: engines/quux/quux.h: update / compilation fixes)
Line 98: Line 98:
#define QUUX_H
#define QUUX_H


#include "base/engine.h"
#include "engines/engine.h"
#include "gui/debugger.h"
#include "gui/debugger.h"


namespace Quux {
namespace Quux {
class Console;


// our engine debug levels
// our engine debug levels
Line 116: Line 118:
~QuuxEngine();
~QuuxEngine();


virtual int init(GameDetector &detector);
virtual int init();
virtual int go();
virtual int go();


Line 126: Line 128:
};
};


// Example console
// Example console class
class Console : public GUI::Debugger {
class Console : public GUI::Debugger {
public:
public:
1,079

edits

Navigation menu