Cleanup of some Trigger code

This commit is contained in:
wagic.the.homebrew
2011-07-28 13:51:42 +00:00
parent 2e5222bf5d
commit 9631171ad1
3 changed files with 95 additions and 211 deletions

View File

@@ -247,6 +247,23 @@ public:
};
//Triggers are not "real" abilities. They don't resolve, they just "trigger" and are associated to other abilities that will be addedToGame when the Trigger triggers
class Trigger: public TriggeredAbility {
private:
bool mOnce;
bool mActiveTrigger;
public:
Trigger(int id, MTGCardInstance * source, bool once, TargetChooser * _tc = NULL);
int resolve()
{
return 0; //This is a trigger, this function should not be called
}
int triggerOnEvent(WEvent * event);
virtual int triggerOnEventImpl(WEvent * event) = 0;
};
class ActivatedAbility : public MTGAbility
{
public: