* Add some pretty printers to help debugging.
This commit is contained in:
jean.chalard
2009-09-04 13:22:15 +00:00
parent 2a7d6819bb
commit 2e7570fdea
15 changed files with 71 additions and 20 deletions
+4 -2
View File
@@ -59,7 +59,7 @@ class MTGCardInstance: public MTGCard, public Damageable {
Player * owner;
Counters * counters;
int typeAsTarget(){return TARGET_CARD;}
const string getDisplayName();
const string getDisplayName() const;
MTGCardInstance * target;
void addType(int type);
@@ -124,9 +124,11 @@ class MTGCardInstance: public MTGCard, public Damageable {
int isInPlay();
void resetAllDamage();
JSample * getSample();
ostream& toString(ostream&) const;
};
ostream& operator<<(ostream&, const MTGCardInstance&);
#endif