No code change just reformatting of header files.
finishing up my reformatting of the source from November/December following the guidelines that were posted. some extra things I added: * Any empty virtual declarations were kept to one line. * Enums were split up into separate lines to promote uniformity across all headers. ( each header file had a different style for enums)
This commit is contained in:
@@ -12,33 +12,48 @@
|
||||
class GameObserver;
|
||||
class Player;
|
||||
|
||||
class GuiLayer{
|
||||
protected:
|
||||
JButton 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(JButton key){ return false; };
|
||||
int getIndexOf(JGuiObject * object);
|
||||
JGuiObject * getByIndex (int index);
|
||||
virtual void Render();
|
||||
int empty(){
|
||||
if (mCount) return 0;
|
||||
return 1;
|
||||
};
|
||||
class GuiLayer
|
||||
{
|
||||
protected:
|
||||
JButton 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(JButton 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;
|
||||
}
|
||||
|
||||
virtual int receiveEventPlus(WEvent * e){return 0;};
|
||||
virtual int receiveEventMinus(WEvent * e){return 0;};
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user