added the instance of EventManager returned by OSystem::getEventManager as a member of the Engine base class. This allows to simply the code a bit and should more efficient too (ie. less virtual function chain calls, obj->getA()->getB()). Also updated several engines to make use of it.

svn-id: r26357
This commit is contained in:
Gregory Montoir 2007-04-01 17:36:13 +00:00
parent 852971cfe6
commit 5aca9dce8c
17 changed files with 23 additions and 36 deletions

View file

@ -48,6 +48,7 @@ Engine::Engine(OSystem *syst)
: _system(syst),
_mixer(_system->getMixer()),
_timer(_system->getTimerManager()),
_eventMan(_system->getEventManager()),
_saveFileMan(_system->getSavefileManager()),
_targetName(ConfMan.getActiveDomainName()),
_gameDataPath(ConfMan.get("path")) {