J :
* Add some pretty printers to help debugging.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#ifndef _WEVENT_H_
|
||||
#define _WEVENT_H_
|
||||
|
||||
#include <iostream>
|
||||
#include "PhaseRing.h"
|
||||
|
||||
class MTGCardInstance;
|
||||
@@ -21,6 +22,7 @@ public:
|
||||
int type; //Deprecated, use dynamic casting instead
|
||||
WEvent(int type = NOT_SPECIFIED);
|
||||
virtual ~WEvent() {};
|
||||
virtual std::ostream& toString(std::ostream& out) const;
|
||||
};
|
||||
|
||||
struct WEventZoneChange : public WEvent {
|
||||
@@ -29,6 +31,7 @@ struct WEventZoneChange : public WEvent {
|
||||
MTGGameZone * to;
|
||||
WEventZoneChange(MTGCardInstance * card, MTGGameZone * from, MTGGameZone *to);
|
||||
virtual ~WEventZoneChange() {};
|
||||
virtual std::ostream& toString(std::ostream& out) const;
|
||||
};
|
||||
|
||||
|
||||
@@ -116,4 +119,6 @@ struct WEventEmptyManaPool : public WEvent {
|
||||
WEventEmptyManaPool(ManaPool * source);
|
||||
};
|
||||
|
||||
std::ostream& operator<<(std::ostream&, const WEvent&);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user