- fix issue 94 (enchant enchantments)
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-10-01 13:33:40 +00:00
parent 706f17113b
commit 59eb79fc47
7 changed files with 80 additions and 18 deletions
+1
View File
@@ -38,6 +38,7 @@ class GuiPlay : public GuiLayer
float maxHeight;
public:
VertStack(float height = VERTHEIGHT);
void Render(CardView*, iterator begin, iterator end);
void Enstack(CardView*);
inline float nextX();
};
+10 -2
View File
@@ -63,10 +63,18 @@ class MTGCardInstance: public MTGCard, public Damageable {
int typeAsTarget(){return TARGET_CARD;}
const string getDisplayName() const;
MTGCardInstance * target;
void addType(int type);
bool blocked; //Blocked this turn or not?
//types
void addType(char * type_text);
virtual void addType(int id);
void setType(const char * type_text);
void setSubtype( string value);
int removeType(string value, int removeAll = 0);
int removeType(int value, int removeAll = 0);
//Combat
bool blocked; //Blocked this turn or not?
MTGCardInstance * defenser;
list<MTGCardInstance *>blockers;
int attacker;
+8
View File
@@ -54,6 +54,14 @@ struct WEventCardUpdate : public WEvent {
WEventCardUpdate(MTGCardInstance * card);
};
//Event when a card gains/looses types
struct WEventCardChangeType : public WEventCardUpdate {
int type;
bool before;
bool after;
WEventCardChangeType(MTGCardInstance * card, int type, bool before, bool after);
};
//Event when a card is tapped/untapped
struct WEventCardTap : public WEventCardUpdate {
bool before;