Files
wagic/projects/mtg/include/GuiLayers.h
wagic.the.homebrew@gmail.com da9a82cff4 Erwan
- removed some unused code. Please review!
- Added protection from() auto keyword. It is still possible to use protection from [color] in abilities, but when it is not possible, please use protection from([target]) in auto=
2009-11-21 07:26:26 +00:00

45 lines
886 B
C++

#ifndef _GUI_LAYERS_H_
#define _GUI_LAYERS_H_
#define DIR_DOWN 1
#define DIR_UP 2
#define DIR_LEFT 3
#define DIR_RIGHT 4
#include <JGui.h>
#include "../include/WEvent.h"
class GameObserver;
class Player;
class GuiLayer{
protected:
u32 mActionButton;
public:
int mCount;
int mCurr;
vector<JGuiObject *> mObjects;
void Add(JGuiObject * object);
int Remove(JGuiObject * object);
int modal;
bool hasFocus;
virtual void resetObjects();
int getMaxId();
GuiLayer();
virtual ~GuiLayer();
virtual void Update(float dt);
virtual bool CheckUserInput(u32 key){ return false; };
int getIndexOf(JGuiObject * object);
JGuiObject * getByIndex (int index);
virtual void Render();
int empty(){
if (mCount) return 0;
return 1;
};
virtual int receiveEventPlus(WEvent * e){return 0;};
virtual int receiveEventMinus(WEvent * e){return 0;};
};
#endif