Added Engine::init() method; added return value to Engine::go()

svn-id: r15865
This commit is contained in:
Max Horn 2004-11-23 00:03:25 +00:00
parent 8ac347fd95
commit aad9f122c0
18 changed files with 122 additions and 86 deletions

View file

@ -41,9 +41,20 @@ protected:
public:
Engine(OSystem *syst);
virtual ~Engine();
/**
* Init the engine.
* @return 0 for success, else an error code.
*/
virtual int init() = 0;
/** Start the main engine loop. */
virtual void go() = 0;
/**
* Start the main engine loop.
* The return value is not yet used, but could indicate whether the user
* wants to return to the launch or to fully quit ScummVM.
* @return a result code
*/
virtual int go() = 0;
/** Get the path to the save game directory. */
virtual const char *getSavePath() const;