Files
wagic/projects/mtg/include/CardDisplay.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

34 lines
891 B
C++

#ifndef _CARD_DISPLAY_H_
#define _CARD_DISPLAY_H_
#include "PlayGuiObjectController.h"
class TargetChooser;
class MTGGameZone;
class MTGCardInstance;
class CardDisplay: public PlayGuiObjectController
{
int mId;
public:
int x, y, start_item, nb_displayed_items;
MTGGameZone * zone;
TargetChooser * tc;
JGuiListener * listener;
CardDisplay(GameObserver* game);
CardDisplay(int id, GameObserver* game, int x, int y, JGuiListener * listener = NULL, TargetChooser * tc = NULL,
int nb_displayed_items = 7);
void AddCard(MTGCardInstance * _card);
void rotateLeft();
void rotateRight();
bool CheckUserInput(JButton key);
virtual void Update(float dt);
void Render();
void init(MTGGameZone * zone);
virtual ostream& toString(ostream& out) const;
};
std::ostream& operator<<(std::ostream& out, const CardDisplay& m);
#endif