Added new features and triggers to game about tokens and counters, fixed and added new primitives.

This commit is contained in:
valfieri
2020-07-10 19:53:46 +02:00
parent fc40971dc7
commit 52e3177ef2
11 changed files with 1042 additions and 732 deletions
+8 -1
View File
@@ -63,7 +63,8 @@ struct WEventCounters : public WEvent {
int toughness;
bool added;
bool removed;
WEventCounters(Counters *counter,string name,int power, int toughness,bool added = false, bool removed = false);
MTGCardInstance * source;
WEventCounters(Counters *counter,string name,int power, int toughness,bool added = false, bool removed = false, MTGCardInstance * source = NULL);
using WEvent::getTarget;
virtual Targetable * getTarget();
};
@@ -357,6 +358,12 @@ struct WEventCardMutated : public WEventCardUpdate {
virtual Targetable * getTarget(int target);
};
//token creation event
struct WEventTokenCreated : public WEventCardUpdate {
WEventTokenCreated(MTGCardInstance * card);
virtual Targetable * getTarget(int target);
};
std::ostream& operator<<(std::ostream&, const WEvent&);
#endif