- Events are now sent to GameObserver rather than ActionLayer
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-06-13 03:49:52 +00:00
parent 9be451e134
commit dd56962910
8 changed files with 22 additions and 6 deletions

View File

@@ -9,11 +9,12 @@
#define DIR_RIGHT 4
#include <JGui.h>
#include "../include/WEvent.h"
class GameObserver;
class Player;
class GuiLayer{
protected:
GameObserver * game;
@@ -43,6 +44,8 @@ class GuiLayer{
if (mCount) return 0;
return 1;
};
virtual int receiveEvent(WEvent * e){return 0;};
};
class GuiLayers{
@@ -57,6 +60,7 @@ class GuiLayers{
void Remove();
int unstoppableRenderInProgress();
~GuiLayers();
int receiveEvent(WEvent * e);
};