dcutils.cards.mtg.EnchantmentCard Maven / Gradle / Ivy
package dcutils.cards.mtg;
/**
* Represents a single enchantment card in Magic the Gathering.
*
* An example EnchantmentCard:
*
*
* And the way it can be coded:
new EnchantmentCard(
"Grasp of the Hieromancer",
new ManaCost(new ColorlessMana(1), BaseMana.WHITE),
Rarity.COMMON,
Expansion.MAGIC_ORIGINS,
true
)
.setCardText(String.format(
"Enchant creature%n" +
"Enchanted creature gets +1/+1 and has " +
"\"Whenever this creature attacks, " +
"tap target creature defending player controls.\""
))
.setFlavorText(String.format(
"\"There is power in abandon, but far more in control.\"%n" +
"-Warden Hixus, to Kytheon"
));
* @author dca
*/
public class EnchantmentCard extends Card {
public EnchantmentCard(
String cardName,
ManaCost manaCost,
Rarity rarity,
Expansion expansion,
boolean aura
) {
super(cardName, manaCost, rarity, expansion, "Enchantment" + (aura ? " - Aura" : ""));
} // END constructor
} // END class EnchantmentCard
© 2015 - 2025 Weber Informatics LLC | Privacy Policy