- fix issue 89 and issue 90 - In the future, we will probably want cardSelector to handle CardDisplay somehow (although carddisplay is used in the Shop as well...)
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-09-29 12:31:26 +00:00
parent a3717b7269
commit 5443e6ff89
4 changed files with 34 additions and 13 deletions

View File

@@ -12,6 +12,13 @@ using std::vector;
class PlayGuiObject;
class DuelLayers;
enum {
BIG_MODE_SHOW = 0,
BIG_MODE_TEXT = 1,
BIG_MODE_HIDE = 2,
NB_BIG_MODES = 3
};
template <typename T>
struct LimitorFunctor
{
@@ -38,7 +45,6 @@ class ObjectSelector : public GuiLayer
protected:
vector<T*> cards;
T* active;
int bigMode;
DuelLayers* duel;
LimitorFunctor<T>* limitor;
Pos bigpos;
@@ -48,6 +54,7 @@ class ObjectSelector : public GuiLayer
T* fetchMemory(SelectorMemory&);
public:
int bigMode;
ObjectSelector(DuelLayers*);
void Add(T*);
void Remove(T*);