LAB: Separate the interface from the event manager

This commit is contained in:
Filippos Karapetis 2016-01-15 20:56:15 +02:00
parent 71b665b617
commit afa75b7047
10 changed files with 322 additions and 256 deletions

View file

@ -60,6 +60,7 @@ struct ViewData;
class Anim;
class DisplayMan;
class EventManager;
class Interface;
class Image;
class Music;
class Resource;
@ -187,6 +188,7 @@ public:
CrumbData _breadCrumbs[MAX_CRUMBS];
DisplayMan *_graphics;
EventManager *_event;
Interface *_interface;
ButtonList _invButtonList;
ButtonList _moveButtonList;
Image *_invImages[10];
@ -232,6 +234,8 @@ public:
bool canLoadGameStateCurrently();
bool canSaveGameStateCurrently();
bool isMainDisplay() const { return _mainDisplay; }
private:
/**
* Checks whether all the conditions in a condition list are met.
@ -434,8 +438,6 @@ private:
*/
void mainGameLoop();
void showLab2Teaser();
void mayShowCrumbIndicator();
void mayShowCrumbIndicatorOff();
/**
* Permanently flips the imagery of a button.