|
|
|
@@ -1081,7 +1081,7 @@ public:
|
|
|
|
|
ManaCost * cost = NULL);
|
|
|
|
|
|
|
|
|
|
int resolve();
|
|
|
|
|
const char* getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
AACounter * clone() const;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@@ -1100,7 +1100,7 @@ public:
|
|
|
|
|
bool all,ManaCost * cost = NULL);
|
|
|
|
|
|
|
|
|
|
int resolve();
|
|
|
|
|
const char* getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
AARemoveAllCounter * clone() const;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@@ -1110,7 +1110,7 @@ class AAResetDamage: public ActivatedAbility
|
|
|
|
|
public:
|
|
|
|
|
AAResetDamage(GameObserver* observer, int id, MTGCardInstance * source, MTGCardInstance * target, ManaCost * cost = NULL);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char* getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
AAResetDamage * clone() const;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@@ -1120,7 +1120,7 @@ public:
|
|
|
|
|
string named;
|
|
|
|
|
AAFakeAbility(GameObserver* observer, int id, MTGCardInstance * source, MTGCardInstance * target,string _newName, ManaCost * cost = NULL);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char* getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
AAFakeAbility * clone() const;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@@ -1131,7 +1131,7 @@ public:
|
|
|
|
|
|
|
|
|
|
AAFizzler(GameObserver* observer, int _id, MTGCardInstance * card, Spell * _target, ManaCost * _cost = NULL);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
AAFizzler* clone() const;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@@ -1160,7 +1160,7 @@ public:
|
|
|
|
|
string Cond;
|
|
|
|
|
IfThenAbility(GameObserver* observer, int _id,MTGAbility * delayedAbility = NULL,MTGAbility * delayedElseAbility = NULL, MTGCardInstance * _source=NULL, Targetable * target = NULL, int type = 1,string Cond = "");
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
IfThenAbility * clone() const;
|
|
|
|
|
~IfThenAbility();
|
|
|
|
|
};
|
|
|
|
@@ -1179,7 +1179,7 @@ public:
|
|
|
|
|
|
|
|
|
|
void Update(float dt);
|
|
|
|
|
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
int testDestroy();
|
|
|
|
|
|
|
|
|
|
int isReactingToTargetClick(Targetable * card);
|
|
|
|
@@ -1209,7 +1209,7 @@ public:
|
|
|
|
|
bool CheckUserInput(JButton key);
|
|
|
|
|
void Update(float dt);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
int testDestroy();
|
|
|
|
|
int isReactingToTargetClick(Targetable * card);
|
|
|
|
|
int reactToTargetClick(Targetable * object);
|
|
|
|
@@ -1225,7 +1225,7 @@ class AAProliferate: public ActivatedAbility
|
|
|
|
|
public:
|
|
|
|
|
AAProliferate(GameObserver* observer, int id, MTGCardInstance * source, Targetable * target,ManaCost * cost = NULL);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char* getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
AAProliferate * clone() const;
|
|
|
|
|
~AAProliferate();
|
|
|
|
|
};
|
|
|
|
@@ -1243,7 +1243,7 @@ public:
|
|
|
|
|
int resolve();
|
|
|
|
|
int addToGame();
|
|
|
|
|
int destroy();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
MultiAbility * clone() const;
|
|
|
|
|
~MultiAbility();
|
|
|
|
|
};
|
|
|
|
@@ -1259,7 +1259,7 @@ public:
|
|
|
|
|
GenericActivatedAbility(GameObserver* observer, string newName,string castRestriction,int _id, MTGCardInstance * card, MTGAbility * a, ManaCost * _cost, string limit = "",MTGAbility * sideEffects = NULL,string usesBeforeSideEffects = "",
|
|
|
|
|
int restrictions = 0, MTGGameZone * dest = NULL);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
int isReactingToClick(MTGCardInstance * card, ManaCost * mana = NULL);
|
|
|
|
|
void Update(float dt);
|
|
|
|
|
int testDestroy();
|
|
|
|
@@ -1274,7 +1274,7 @@ class AALibraryBottom: public ActivatedAbility
|
|
|
|
|
public:
|
|
|
|
|
AALibraryBottom(GameObserver* observer, int _id, MTGCardInstance * _source, MTGCardInstance * _target = NULL, ManaCost * _cost = NULL);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
AALibraryBottom * clone() const;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@@ -1284,7 +1284,7 @@ class AACopier: public ActivatedAbility
|
|
|
|
|
public:
|
|
|
|
|
AACopier(GameObserver* observer, int _id, MTGCardInstance * _source, MTGCardInstance * _target = NULL, ManaCost * _cost = NULL);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
AACopier * clone() const;
|
|
|
|
|
};
|
|
|
|
|
//imprint
|
|
|
|
@@ -1293,7 +1293,7 @@ class AAPhaseOut: public ActivatedAbility
|
|
|
|
|
public:
|
|
|
|
|
AAPhaseOut(GameObserver* observer, int _id, MTGCardInstance * _source, MTGCardInstance * _target = NULL, ManaCost * _cost = NULL);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
AAPhaseOut * clone() const;
|
|
|
|
|
};
|
|
|
|
|
//cloning...this makes a token thats a copy of the target.
|
|
|
|
@@ -1310,7 +1310,7 @@ public:
|
|
|
|
|
AACloner(GameObserver* observer, int _id, MTGCardInstance * _source, MTGCardInstance * _target = NULL, ManaCost * _cost = NULL, int who = 0,
|
|
|
|
|
string abilitiesStringList = "",string typeslist = "");
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
virtual ostream& toString(ostream& out) const;
|
|
|
|
|
AACloner * clone() const;
|
|
|
|
|
~AACloner();
|
|
|
|
@@ -1326,7 +1326,7 @@ public:
|
|
|
|
|
AAMover(GameObserver* observer, int _id, MTGCardInstance * _source, MTGCardInstance * _target, string dest,string _name, ManaCost * _cost = NULL);
|
|
|
|
|
MTGGameZone * destinationZone(Targetable * target = NULL);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
const char * getMenuText(TargetChooser * fromTc);
|
|
|
|
|
AAMover * clone() const;
|
|
|
|
|
~AAMover();
|
|
|
|
@@ -1342,7 +1342,7 @@ public:
|
|
|
|
|
AARandomMover(GameObserver* observer, int _id, MTGCardInstance * _source, MTGCardInstance * _target, string tcs, string from, string to);
|
|
|
|
|
MTGGameZone * destinationZone(Targetable * target = NULL,string zone = "");
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
AARandomMover * clone() const;
|
|
|
|
|
~AARandomMover();
|
|
|
|
|
};
|
|
|
|
@@ -1356,7 +1356,7 @@ public:
|
|
|
|
|
string menu;
|
|
|
|
|
AABuryCard(GameObserver* observer, int _id, MTGCardInstance * _source, MTGCardInstance * _target);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
AABuryCard * clone() const;
|
|
|
|
|
~AABuryCard();
|
|
|
|
|
};
|
|
|
|
@@ -1367,7 +1367,7 @@ public:
|
|
|
|
|
MTGAbility * andAbility;
|
|
|
|
|
AADestroyCard(GameObserver* observer, int _id, MTGCardInstance * _source, MTGCardInstance * _target);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
AADestroyCard * clone() const;
|
|
|
|
|
~AADestroyCard();
|
|
|
|
|
};
|
|
|
|
@@ -1378,7 +1378,7 @@ public:
|
|
|
|
|
MTGAbility * andAbility;
|
|
|
|
|
AASacrificeCard(GameObserver* observer, int _id, MTGCardInstance * _source, MTGCardInstance * _target);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
AASacrificeCard * clone() const;
|
|
|
|
|
~AASacrificeCard();
|
|
|
|
|
};
|
|
|
|
@@ -1389,7 +1389,7 @@ public:
|
|
|
|
|
MTGAbility * andAbility;
|
|
|
|
|
AADiscardCard(GameObserver* observer, int _id, MTGCardInstance * _source, MTGCardInstance * _target);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
AADiscardCard * clone() const;
|
|
|
|
|
~AADiscardCard();
|
|
|
|
|
};
|
|
|
|
@@ -1409,7 +1409,7 @@ public:
|
|
|
|
|
string tcString;
|
|
|
|
|
|
|
|
|
|
GenericTargetAbility(GameObserver* observer, string newName, string castRestriction, int _id, MTGCardInstance * _source, TargetChooser * _tc, MTGAbility * a, ManaCost * _cost = NULL, string limit = "",MTGAbility * sideEffects = NULL,string usesBeforeSideEffects = "", int restrictions = 0, MTGGameZone * dest = NULL,string tcString ="");
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
~GenericTargetAbility();
|
|
|
|
|
GenericTargetAbility * clone() const;
|
|
|
|
|
int resolve();
|
|
|
|
@@ -1447,7 +1447,7 @@ public:
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const char * getMenuText()
|
|
|
|
|
const string getMenuText()
|
|
|
|
|
{
|
|
|
|
|
return "Ninjutsu";
|
|
|
|
|
}
|
|
|
|
@@ -1479,7 +1479,7 @@ public:
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const char * getMenuText()
|
|
|
|
|
const string getMenuText()
|
|
|
|
|
{
|
|
|
|
|
return "Remove From Combat";
|
|
|
|
|
}
|
|
|
|
@@ -1501,7 +1501,7 @@ public:
|
|
|
|
|
AADrawer(GameObserver* observer, int _id, MTGCardInstance * card, Targetable * _target, ManaCost * _cost,string nbcardsStr, int who =
|
|
|
|
|
TargetChooser::UNSET,bool noReplace = false);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
AADrawer * clone() const;
|
|
|
|
|
int getNumCards();
|
|
|
|
|
};
|
|
|
|
@@ -1521,7 +1521,7 @@ public:
|
|
|
|
|
ACastRestriction(GameObserver* observer, int _id, MTGCardInstance * card, Targetable * _target, TargetChooser * _restrictionsScope, WParsedInt * _value, bool _modifyExisting, int _zoneId, int who = TargetChooser::UNSET);
|
|
|
|
|
int addToGame();
|
|
|
|
|
int destroy();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
ACastRestriction * clone() const;
|
|
|
|
|
~ACastRestriction();
|
|
|
|
|
|
|
|
|
@@ -1536,7 +1536,7 @@ public:
|
|
|
|
|
|
|
|
|
|
AInstantCastRestrictionUEOT(GameObserver* observer, int _id, MTGCardInstance * card, Targetable * _target, TargetChooser * _restrictionsScope, WParsedInt * _value, bool _modifyExisting, int _zoneId, int who = TargetChooser::UNSET);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
AInstantCastRestrictionUEOT * clone() const;
|
|
|
|
|
~AInstantCastRestrictionUEOT();
|
|
|
|
|
};
|
|
|
|
@@ -1549,7 +1549,7 @@ public:
|
|
|
|
|
AALifer(GameObserver* observer, int _id, MTGCardInstance * card, Targetable * _target,string life_s, ManaCost * _cost = NULL,
|
|
|
|
|
int who = TargetChooser::UNSET);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
AALifer * clone() const;
|
|
|
|
|
int getLife();
|
|
|
|
|
|
|
|
|
@@ -1562,7 +1562,7 @@ public:
|
|
|
|
|
AAWinGame(GameObserver* observer, int _id, MTGCardInstance * card, Targetable * _target, ManaCost * _cost = NULL, int who =
|
|
|
|
|
TargetChooser::UNSET);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
AAWinGame * clone() const;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@@ -1603,7 +1603,7 @@ public:
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const char * getMenuText()
|
|
|
|
|
const string getMenuText()
|
|
|
|
|
{
|
|
|
|
|
return Constants::MTGBasicAbilities[ability];
|
|
|
|
|
}
|
|
|
|
@@ -1645,7 +1645,7 @@ public:
|
|
|
|
|
return InstantAbility::addToGame();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const char * getMenuText()
|
|
|
|
|
const string getMenuText()
|
|
|
|
|
{
|
|
|
|
|
return Constants::MTGBasicAbilities[ability];
|
|
|
|
|
}
|
|
|
|
@@ -1706,7 +1706,7 @@ public:
|
|
|
|
|
return ActivatedAbility::addToGame();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const char * getMenuText()
|
|
|
|
|
const string getMenuText()
|
|
|
|
|
{
|
|
|
|
|
return ability->getMenuText();
|
|
|
|
|
}
|
|
|
|
@@ -1862,7 +1862,7 @@ public:
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const char * getMenuText()
|
|
|
|
|
const string getMenuText()
|
|
|
|
|
{
|
|
|
|
|
sprintf(menuText,"Protection from %s",tcstr.c_str());
|
|
|
|
|
return menuText;
|
|
|
|
@@ -2054,7 +2054,7 @@ public:
|
|
|
|
|
((MTGCardInstance *) target)->addToToughness(-wppt->toughness.getValue());
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
const char * getMenuText()
|
|
|
|
|
const string getMenuText()
|
|
|
|
|
{
|
|
|
|
|
if(PT.size())
|
|
|
|
|
{
|
|
|
|
@@ -2147,7 +2147,7 @@ public:
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const char * getMenuText()
|
|
|
|
|
const string getMenuText()
|
|
|
|
|
{
|
|
|
|
|
return ability->getMenuText();
|
|
|
|
|
}
|
|
|
|
@@ -2189,7 +2189,7 @@ public:
|
|
|
|
|
return toAdd->addToGame();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const char * getMenuText()
|
|
|
|
|
const string getMenuText()
|
|
|
|
|
{
|
|
|
|
|
return ability->getMenuText();
|
|
|
|
|
}
|
|
|
|
@@ -2287,7 +2287,7 @@ public:
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const char * getMenuText()
|
|
|
|
|
const string getMenuText()
|
|
|
|
|
{
|
|
|
|
|
return "Regenerate";
|
|
|
|
|
}
|
|
|
|
@@ -2494,7 +2494,7 @@ public:
|
|
|
|
|
SAFE_DELETE(ability);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const char * getMenuText()
|
|
|
|
|
const string getMenuText()
|
|
|
|
|
{
|
|
|
|
|
if(ability)
|
|
|
|
|
{
|
|
|
|
@@ -2620,7 +2620,7 @@ public:
|
|
|
|
|
SAFE_DELETE(ability);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const char * getMenuText()
|
|
|
|
|
const string getMenuText()
|
|
|
|
|
{
|
|
|
|
|
//Special case for move
|
|
|
|
|
if (AAMover * move = dynamic_cast<AAMover *>(ability))
|
|
|
|
@@ -2806,7 +2806,7 @@ public:
|
|
|
|
|
int equip(MTGCardInstance * equipped);
|
|
|
|
|
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
|
|
|
|
|
int testDestroy();
|
|
|
|
|
int destroy();
|
|
|
|
@@ -3034,7 +3034,7 @@ public:
|
|
|
|
|
card->setAttacker(1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const char * getMenuText()
|
|
|
|
|
const string getMenuText()
|
|
|
|
|
{
|
|
|
|
|
sprintf(menuText, "Create %s", name.c_str());
|
|
|
|
|
return menuText;
|
|
|
|
@@ -3135,7 +3135,7 @@ public:
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const char * getMenuText()
|
|
|
|
|
const string getMenuText()
|
|
|
|
|
{
|
|
|
|
|
if(name.size())
|
|
|
|
|
return name.c_str();
|
|
|
|
@@ -3308,7 +3308,7 @@ public:
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const char * getMenuText()
|
|
|
|
|
const string getMenuText()
|
|
|
|
|
{
|
|
|
|
|
return ability->getMenuText();
|
|
|
|
|
}
|
|
|
|
@@ -3520,7 +3520,7 @@ public:
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const char * getMenuText()
|
|
|
|
|
const string getMenuText()
|
|
|
|
|
{
|
|
|
|
|
return ability->getMenuText();
|
|
|
|
|
}
|
|
|
|
@@ -3543,7 +3543,7 @@ public:
|
|
|
|
|
AASetHand(GameObserver* observer, int _id, MTGCardInstance * _source, Targetable * _target, int hand, ManaCost * _cost = NULL,
|
|
|
|
|
int who = TargetChooser::UNSET);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
AASetHand * clone() const;
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
@@ -3557,7 +3557,7 @@ public:
|
|
|
|
|
AALifeSet(GameObserver* observer, int _id, MTGCardInstance * _source, Targetable * _target, WParsedInt * life, ManaCost * _cost = NULL,
|
|
|
|
|
int who = TargetChooser::UNSET);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
AALifeSet * clone() const;
|
|
|
|
|
~AALifeSet();
|
|
|
|
|
|
|
|
|
@@ -3574,7 +3574,7 @@ public:
|
|
|
|
|
AADamager(GameObserver* observer, int _id, MTGCardInstance * _source, Targetable * _target, string d, ManaCost * _cost = NULL,
|
|
|
|
|
int who = TargetChooser::UNSET);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
int getDamage();
|
|
|
|
|
AADamager * clone() const;
|
|
|
|
|
|
|
|
|
@@ -3588,7 +3588,7 @@ public:
|
|
|
|
|
|
|
|
|
|
AADamagePrevent(GameObserver* observer, int _id, MTGCardInstance * _source, Targetable * _target, int preventing, ManaCost * _cost = NULL, int who = TargetChooser::UNSET);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
AADamagePrevent * clone() const;
|
|
|
|
|
~AADamagePrevent();
|
|
|
|
|
};
|
|
|
|
@@ -3602,7 +3602,7 @@ public:
|
|
|
|
|
AAAlterPoison(GameObserver* observer, int _id, MTGCardInstance * _source, Targetable * _target, int poison, ManaCost * _cost = NULL,
|
|
|
|
|
int who = TargetChooser::UNSET);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
AAAlterPoison * clone() const;
|
|
|
|
|
~AAAlterPoison();
|
|
|
|
|
};
|
|
|
|
@@ -3630,7 +3630,7 @@ class AATapper: public ActivatedAbility
|
|
|
|
|
public:
|
|
|
|
|
AATapper(GameObserver* observer, int id, MTGCardInstance * card, MTGCardInstance * _target, ManaCost * _cost = NULL);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
AATapper * clone() const;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@@ -3640,7 +3640,7 @@ class AAUntapper: public ActivatedAbility
|
|
|
|
|
public:
|
|
|
|
|
AAUntapper(GameObserver* observer, int id, MTGCardInstance * card, MTGCardInstance * _target, ManaCost * _cost = NULL);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
AAUntapper * clone() const;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@@ -3661,7 +3661,7 @@ class AAFrozen: public ActivatedAbility
|
|
|
|
|
public:
|
|
|
|
|
AAFrozen(GameObserver* observer, int id, MTGCardInstance * card, MTGCardInstance * _target, ManaCost * _cost = NULL);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
AAFrozen * clone() const;
|
|
|
|
|
};
|
|
|
|
|
/* ghetto new target*/
|
|
|
|
@@ -3671,7 +3671,7 @@ public:
|
|
|
|
|
bool retarget;
|
|
|
|
|
AANewTarget(GameObserver* observer, int id, MTGCardInstance * card, MTGCardInstance * _target,bool retarget = false, ManaCost * _cost = NULL);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
AANewTarget * clone() const;
|
|
|
|
|
};
|
|
|
|
|
/* morph*/
|
|
|
|
@@ -3682,7 +3682,7 @@ public:
|
|
|
|
|
AAMorph(GameObserver* observer, int id, MTGCardInstance * card, MTGCardInstance * _target, ManaCost * _cost = NULL);
|
|
|
|
|
int resolve();
|
|
|
|
|
int testDestroy();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
AAMorph * clone() const;
|
|
|
|
|
};
|
|
|
|
|
/* flip*/
|
|
|
|
@@ -3694,7 +3694,7 @@ public:
|
|
|
|
|
AAFlip(GameObserver* observer, int id, MTGCardInstance * card, MTGCardInstance * _target,string flipStats);
|
|
|
|
|
int resolve();
|
|
|
|
|
int testDestroy();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
AAFlip * clone() const;
|
|
|
|
|
};
|
|
|
|
|
/* dynamic ability build*/
|
|
|
|
@@ -3759,7 +3759,7 @@ string menu;
|
|
|
|
|
int resolve();
|
|
|
|
|
int activateMainAbility(MTGAbility * toActivate,MTGCardInstance * source , Damageable * target);
|
|
|
|
|
int activateStored();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
AADynamic * clone() const;
|
|
|
|
|
~AADynamic();
|
|
|
|
|
};
|
|
|
|
@@ -3812,7 +3812,7 @@ public:
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const char * getMenuText()
|
|
|
|
|
const string getMenuText()
|
|
|
|
|
{
|
|
|
|
|
return "Swap power and toughness";
|
|
|
|
|
}
|
|
|
|
@@ -3828,7 +3828,7 @@ public:
|
|
|
|
|
AAExchangeLife(GameObserver* observer, int _id, MTGCardInstance * _source, Targetable * _target, ManaCost * _cost = NULL,
|
|
|
|
|
int who = TargetChooser::UNSET);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
AAExchangeLife * clone() const;
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
@@ -4064,7 +4064,7 @@ public:
|
|
|
|
|
int reapplyCountersBonus(MTGCardInstance * rtarget= NULL,bool powerapplied=false,bool toughnessapplied=false);
|
|
|
|
|
int testDestroy();
|
|
|
|
|
int destroy();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
ATransformer * clone() const;
|
|
|
|
|
~ATransformer();
|
|
|
|
|
};
|
|
|
|
@@ -4087,7 +4087,7 @@ public:
|
|
|
|
|
|
|
|
|
|
ATransformerInstant(GameObserver* observer, int id, MTGCardInstance * source, MTGCardInstance * target, string types = "", string abilities = "",string newpower = "",bool newpowerfound = false,string newtoughness = "",bool newtoughnessfound = false,vector<string>newAbilitiesList = vector<string>(),bool newAbilityFound = false,bool aForever = false, bool UYNT = false,string menutext = "");
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
ATransformerInstant * clone() const;
|
|
|
|
|
~ATransformerInstant();
|
|
|
|
|
};
|
|
|
|
@@ -4103,7 +4103,7 @@ public:
|
|
|
|
|
WParsedPT * newWppt;
|
|
|
|
|
PTInstant(GameObserver* observer, int id, MTGCardInstance * source, MTGCardInstance * target, WParsedPT * wppt,string s = "",bool nonstatic = false);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
PTInstant * clone() const;
|
|
|
|
|
~PTInstant();
|
|
|
|
|
};
|
|
|
|
@@ -4162,7 +4162,7 @@ public:
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const char * getMenuText()
|
|
|
|
|
const string getMenuText()
|
|
|
|
|
{
|
|
|
|
|
return "Exalted";
|
|
|
|
|
}
|
|
|
|
@@ -4180,7 +4180,7 @@ public:
|
|
|
|
|
ASwapPT * ability;
|
|
|
|
|
ASwapPTUEOT(GameObserver* observer, int id, MTGCardInstance * source, MTGCardInstance * target);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
ASwapPTUEOT * clone() const;
|
|
|
|
|
~ASwapPTUEOT();
|
|
|
|
|
};
|
|
|
|
@@ -4257,7 +4257,7 @@ public:
|
|
|
|
|
APreventDamageTypesUEOT(GameObserver* observer, int id, MTGCardInstance * source, string to, string from, int type = 0);
|
|
|
|
|
int resolve();
|
|
|
|
|
int destroy();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
APreventDamageTypesUEOT * clone() const;
|
|
|
|
|
~APreventDamageTypesUEOT();
|
|
|
|
|
};
|
|
|
|
@@ -4274,7 +4274,7 @@ public:
|
|
|
|
|
AVanishing(GameObserver* observer, int _id, MTGCardInstance * card, ManaCost * _cost, int restrictions = 0,int amount = 0,string counterName = "");
|
|
|
|
|
void Update(float dt);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
AVanishing * clone() const;
|
|
|
|
|
~AVanishing();
|
|
|
|
|
};
|
|
|
|
@@ -4296,7 +4296,7 @@ public:
|
|
|
|
|
void Update(float dt);
|
|
|
|
|
int isReactingToClick(MTGCardInstance * card, ManaCost * mana = NULL);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
virtual ostream& toString(ostream& out) const;
|
|
|
|
|
AUpkeep * clone() const;
|
|
|
|
|
~AUpkeep();
|
|
|
|
@@ -4322,7 +4322,7 @@ public:
|
|
|
|
|
MTG_PHASE_UPKEEP,bool forcedestroy = false,bool next = true,bool myturn = true,bool opponentturn = true,bool once = false);
|
|
|
|
|
void Update(float dt);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
APhaseAction * clone() const;
|
|
|
|
|
~APhaseAction();
|
|
|
|
|
};
|
|
|
|
@@ -4336,7 +4336,7 @@ public:
|
|
|
|
|
APhaseActionGeneric(GameObserver* observer, int _id, MTGCardInstance * card, MTGCardInstance * target, string sAbility, int restrictions = 0, int _phase =
|
|
|
|
|
MTG_PHASE_UPKEEP,bool forcedestroy = false,bool next = true,bool myturn = false,bool opponentturn = false,bool once = false);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
APhaseActionGeneric * clone() const;
|
|
|
|
|
~APhaseActionGeneric();
|
|
|
|
|
|
|
|
|
@@ -4356,7 +4356,7 @@ public:
|
|
|
|
|
void Update(float dt);
|
|
|
|
|
void resolveBlink();
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
ABlink * clone() const;
|
|
|
|
|
~ABlink();
|
|
|
|
|
private:
|
|
|
|
@@ -4374,7 +4374,7 @@ public:
|
|
|
|
|
MTGAbility * stored;
|
|
|
|
|
ABlinkGeneric(GameObserver* observer, int _id, MTGCardInstance * card, MTGCardInstance * _target,bool blinkueot=false,bool blinkForSource = false,bool blinkhand = false,MTGAbility * stored = NULL);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
ABlinkGeneric * clone() const;
|
|
|
|
|
~ABlinkGeneric();
|
|
|
|
|
|
|
|
|
@@ -5280,7 +5280,7 @@ public:
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const char * getMenuText()
|
|
|
|
|
const string getMenuText()
|
|
|
|
|
{
|
|
|
|
|
return "phase alter";
|
|
|
|
|
}
|
|
|
|
@@ -5299,7 +5299,7 @@ public:
|
|
|
|
|
AADepleter(GameObserver* observer, int _id, MTGCardInstance * card, Targetable * _target,string nbcardsStr, ManaCost * _cost = NULL,
|
|
|
|
|
int who = TargetChooser::UNSET);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
AADepleter * clone() const;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@@ -5312,7 +5312,7 @@ public:
|
|
|
|
|
AAModTurn(GameObserver* observer, int _id, MTGCardInstance * card, Targetable * _target,string nbTurnStr, ManaCost * _cost = NULL,
|
|
|
|
|
int who = TargetChooser::UNSET);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
AAModTurn * clone() const;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@@ -5323,7 +5323,7 @@ public:
|
|
|
|
|
AAShuffle(GameObserver* observer, int _id, MTGCardInstance * card, Targetable * _target, ManaCost * _cost = NULL, int who =
|
|
|
|
|
TargetChooser::UNSET);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
AAShuffle * clone() const;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@@ -5336,7 +5336,7 @@ public:
|
|
|
|
|
|
|
|
|
|
AARemoveMana(GameObserver* observer, int _id, MTGCardInstance * card, Targetable * _target, string ManaDesc, int who = TargetChooser::UNSET);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
AARemoveMana * clone() const;
|
|
|
|
|
~AARemoveMana();
|
|
|
|
|
|
|
|
|
@@ -5351,7 +5351,7 @@ public:
|
|
|
|
|
AARandomDiscarder(GameObserver* observer, int _id, MTGCardInstance * card, Targetable * _target,string nbcardsStr, ManaCost * _cost = NULL,
|
|
|
|
|
int who = TargetChooser::UNSET);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
AARandomDiscarder * clone() const;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@@ -5523,7 +5523,7 @@ public:
|
|
|
|
|
|
|
|
|
|
int testDestroy(){return 0;};
|
|
|
|
|
void Update(float dt);
|
|
|
|
|
const char * getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
int isReactingToTargetClick(Targetable * card);
|
|
|
|
|
int reactToTargetClick(Targetable * object);
|
|
|
|
|
MTGCardInstance * makeCard();
|
|
|
|
@@ -5640,7 +5640,7 @@ public:
|
|
|
|
|
MTGAbility * abilityAltered;
|
|
|
|
|
AASetColorChosen(GameObserver* observer, int id, MTGCardInstance * source, MTGCardInstance * target, int _color = 0 ,string toAdd = "");
|
|
|
|
|
int resolve();
|
|
|
|
|
const char* getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
AASetColorChosen * clone() const;
|
|
|
|
|
~AASetColorChosen();
|
|
|
|
|
};
|
|
|
|
@@ -5653,7 +5653,7 @@ public:
|
|
|
|
|
MTGAbility * abilityAltered;
|
|
|
|
|
AASetTypeChosen(GameObserver* observer, int id, MTGCardInstance * source, MTGCardInstance * target, int _type = 0,string menu = "error" ,string toAdd = "");
|
|
|
|
|
int resolve();
|
|
|
|
|
const char* getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
AASetTypeChosen * clone() const;
|
|
|
|
|
~AASetTypeChosen();
|
|
|
|
|
};
|
|
|
|
@@ -5667,7 +5667,7 @@ public:
|
|
|
|
|
bool ANonWall;
|
|
|
|
|
GenericChooseTypeColor(GameObserver* observer, int id, MTGCardInstance * source, Targetable * target, string toAdd = "",bool chooseColor = false,bool nonwall = false, ManaCost * cost = NULL);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char* getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
GenericChooseTypeColor * clone() const;
|
|
|
|
|
~GenericChooseTypeColor();
|
|
|
|
|
|
|
|
|
@@ -5684,7 +5684,7 @@ public:
|
|
|
|
|
MTGAbility * abilityAltered;
|
|
|
|
|
AASetCoin(GameObserver* observer, int id, MTGCardInstance * source, MTGCardInstance * target, int side = -1,string toAdd = "");
|
|
|
|
|
int resolve();
|
|
|
|
|
const char* getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
AASetCoin * clone() const;
|
|
|
|
|
~AASetCoin();
|
|
|
|
|
};
|
|
|
|
@@ -5695,7 +5695,7 @@ public:
|
|
|
|
|
AASetCoin * setCoin;
|
|
|
|
|
GenericFlipACoin(GameObserver* observer, int id, MTGCardInstance * source, Targetable * target, string toAdd = "", ManaCost * cost = NULL);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char* getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
GenericFlipACoin * clone() const;
|
|
|
|
|
~GenericFlipACoin();
|
|
|
|
|
|
|
|
|
@@ -5714,7 +5714,7 @@ public:
|
|
|
|
|
|
|
|
|
|
GenericPaidAbility(GameObserver* observer, int id, MTGCardInstance * source, Targetable * target,string _newName,string _castRestriction,string _mayCost, string toAdd, ManaCost * cost = NULL);
|
|
|
|
|
int resolve();
|
|
|
|
|
const char* getMenuText();
|
|
|
|
|
const string getMenuText();
|
|
|
|
|
GenericPaidAbility * clone() const;
|
|
|
|
|
~GenericPaidAbility();
|
|
|
|
|
|
|
|
|
|