-removed memory leak introduced in r.789
-added "blocked" bool in MTGCardInstance
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-09-05 09:17:30 +00:00
parent bf42825be8
commit 380014b2a6
4 changed files with 24 additions and 16 deletions
+3
View File
@@ -39,6 +39,8 @@ class MTGCardInstance: public MTGCard, public Damageable {
MTGCardInstance * getNextPartner();
void initMTGCI();
int setDefenser(MTGCardInstance * c);
int addBlocker(MTGCardInstance * c);
int removeBlocker(MTGCardInstance * c);
int setAttacker(int value);
public:
Pos* view;
@@ -62,6 +64,7 @@ class MTGCardInstance: public MTGCard, public Damageable {
const string getDisplayName() const;
MTGCardInstance * target;
void addType(int type);
bool blocked; //Blocked this turn or not?
//Combat
MTGCardInstance * defenser;