Erwan
- fix issue 94 (enchant enchantments)
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user