- 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
+1 -1
View File
@@ -12,7 +12,7 @@ class DamageResolverLayer;
class DuelLayers: public GuiLayers{
public:
public :
ActionLayer * actionLayer();
MTGGuiHand * handLayer();
MTGGuiPlay * playLayer();
+1 -1
View File
@@ -85,7 +85,7 @@ class GameObserver{
void Render();
void ButtonPressed(int, PlayGuiObject*);
int receiveEvent(WEvent * event);
};
#endif
+5 -1
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);
};