Files
wagic/projects/mtg/include/PlayGuiObjectController.h
Xawotihs 9adb9d625d - reworked the testsuite and the rules (storyflow) to use the same game deserialization code, moved that code to the players and zone classes
- removed every references to the gameobserver singleton. This object can now be instantiated several times as it's needed for minmax. To be able to do that, I mostly added a reference to a gameobserver from any targetable object (cards, players, spells) and abilities.
2011-10-01 13:30:30 +00:00

32 lines
670 B
C++

#ifndef _PLAYGUIOBJECTCONTROLLER_H_
#define _PLAYGUIOBJECTCONTROLLER_H_
#define BIG_CARD_RENDER_TIME 0.4
#include "GuiLayers.h"
class PlayGuiObjectController: public GuiLayer
{
protected:
float last_user_move;
int getClosestItem(int direction);
int getClosestItem(int direction, float tolerance);
static int showBigCards;// 0 hide, 1 show, 2 show text
public:
virtual void Update(float dt);
virtual bool CheckUserInput(JButton key);
PlayGuiObjectController(GameObserver *observer)
: GuiLayer(observer)
{
last_user_move = 0;
}
;
virtual void Render()
{
GuiLayer::Render();
}
;
};
#endif