Open main menu

Difference between revisions of "HOWTO-Engines"

254 bytes added ,  22:10, 24 May 2006
Add console usage
(→‎Subclassing Engine: adds note about EVENT_SCREEN_CHANGED)
(Add console usage)
Line 59: Line 59:
virtual int init(GameDetector &detector);
virtual int init(GameDetector &detector);
virtual int go();
virtual int go();
private:
Console *_console;
};
// Example console
class Console : public Common::Debugger<Console> {
public:
Console(SagaEngine *vm);
virtual ~Console(void);
};
};


Line 162: Line 172:
_system->endGFXTransaction();
_system->endGFXTransaction();
// Create debugger console. It requires GFX to be initialized
_console = new Console();
// Additional setup.
// Additional setup.
printf("QuuxEngine::init\n");
printf("QuuxEngine::init\n");