WAGE: Move pollEvent's definition to wage.cpp

This commit is contained in:
Avijeet 2022-08-05 22:41:50 +05:30 committed by Eugene Sandulenko
parent eac2717abb
commit f9fd3b699c
2 changed files with 9 additions and 2 deletions

View File

@ -100,6 +100,10 @@ WageEngine::~WageEngine() {
delete _rnd;
}
bool WageEngine::pollEvent(Common::Event &event) {
return _eventMan->pollEvent(event);
}
Common::Error WageEngine::run() {
debug("WageEngine::init");

View File

@ -54,12 +54,15 @@
#include "common/rect.h"
#include "common/macresman.h"
#include "common/random.h"
#include "common/events.h"
#include "wage/debugger.h"
struct ADGameDescription;
namespace Common {
class Event;
}
namespace Graphics {
class MacDialog;
}
@ -137,7 +140,7 @@ public:
void regen();
const char *getTargetName() { return _targetName.c_str(); }
bool pollEvent(Common::Event &event) { return _eventMan->pollEvent(event); }
bool pollEvent(Common::Event &event);
private:
bool loadWorld(Common::MacResManager *resMan);