Merge pull request #4707 from delftswa2018/feature/SOLID-fix-in-Token-classes

SOLID violation fix in token classes
This commit is contained in:
Oleg Agafonov 2018-04-04 18:31:52 +04:00 committed by GitHub
commit f6b8d0fea6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
593 changed files with 5100 additions and 887 deletions

View file

@ -5,6 +5,7 @@ import mage.abilities.effects.ContinuousEffectImpl;
import mage.constants.*;
import mage.game.Game;
import mage.game.permanent.Permanent;
import mage.game.permanent.token.TokenImpl;
import mage.game.permanent.token.Token;
public class CopyTokenEffect extends ContinuousEffectImpl {

View file

@ -37,6 +37,7 @@ import mage.constants.Outcome;
import mage.constants.Zone;
import mage.game.Game;
import mage.game.permanent.Permanent;
import mage.game.permanent.token.TokenImpl;
import mage.game.permanent.token.Token;
import mage.target.targetpointer.FixedTarget;
import mage.util.CardUtil;

View file

@ -7,6 +7,7 @@ import mage.abilities.dynamicvalue.common.StaticValue;
import mage.abilities.effects.OneShotEffect;
import mage.constants.Outcome;
import mage.game.Game;
import mage.game.permanent.token.TokenImpl;
import mage.game.permanent.token.Token;
import mage.util.CardUtil;

View file

@ -8,6 +8,7 @@ import mage.abilities.effects.OneShotEffect;
import mage.constants.Outcome;
import mage.game.Game;
import mage.game.permanent.Permanent;
import mage.game.permanent.token.TokenImpl;
import mage.game.permanent.token.Token;
import mage.players.Player;

View file

@ -39,6 +39,7 @@ import mage.constants.SubLayer;
import mage.filter.FilterPermanent;
import mage.game.Game;
import mage.game.permanent.Permanent;
import mage.game.permanent.token.TokenImpl;
import mage.game.permanent.token.Token;
import java.util.HashSet;

View file

@ -32,6 +32,7 @@ import mage.abilities.effects.ContinuousEffectImpl;
import mage.constants.*;
import mage.game.Game;
import mage.game.permanent.Permanent;
import mage.game.permanent.token.TokenImpl;
import mage.game.permanent.token.Token;
/**

View file

@ -33,6 +33,7 @@ import mage.abilities.effects.ContinuousEffectImpl;
import mage.constants.*;
import mage.game.Game;
import mage.game.permanent.Permanent;
import mage.game.permanent.token.TokenImpl;
import mage.game.permanent.token.Token;
/**

View file

@ -34,6 +34,7 @@ import mage.abilities.effects.ContinuousEffectImpl;
import mage.constants.*;
import mage.game.Game;
import mage.game.permanent.Permanent;
import mage.game.permanent.token.TokenImpl;
import mage.game.permanent.token.Token;
/**

View file

@ -33,6 +33,7 @@ import mage.abilities.effects.ContinuousEffectImpl;
import mage.constants.*;
import mage.game.Game;
import mage.game.permanent.Permanent;
import mage.game.permanent.token.TokenImpl;
import mage.game.permanent.token.Token;
import mage.target.Target;
import mage.util.CardUtil;

View file

@ -48,6 +48,7 @@ import mage.constants.Zone;
import mage.counters.CounterType;
import mage.filter.common.FilterControlledLandPermanent;
import mage.game.Game;
import mage.game.permanent.token.TokenImpl;
import mage.game.permanent.token.Token;
import mage.target.Target;
import mage.target.common.TargetControlledPermanent;
@ -158,7 +159,7 @@ public class AwakenAbility extends SpellAbility {
}
class AwakenElementalToken extends Token {
class AwakenElementalToken extends TokenImpl {
public AwakenElementalToken() {
super("", "0/0 Elemental creature with haste");
@ -170,4 +171,12 @@ class AwakenElementalToken extends Token {
this.addAbility(HasteAbility.getInstance());
}
public AwakenElementalToken(final AwakenElementalToken token) {
super(token);
}
public AwakenElementalToken copy() {
return new AwakenElementalToken(this);
}
}

View file

@ -37,7 +37,7 @@ import mage.abilities.effects.common.CreateTokenEffect;
*
* @author spjspj
*/
public class ATATToken extends Token {
public class ATATToken extends TokenImpl {
public ATATToken() {
super("AT-AT", "5/5 white artifact AT-AT creature tokens with \"When this creature dies, create two 1/1 white Trooper creature tokens.\"", 5, 5);
@ -48,5 +48,13 @@ public class ATATToken extends Token {
addAbility(new DiesTriggeredAbility(new CreateTokenEffect(new TrooperToken(), 2)));
subtype.add(SubType.ATAT);
}
public ATATToken(final ATATToken token) {
super(token);
}
public ATATToken copy() {
return new ATATToken(this);
}
}

View file

@ -37,7 +37,7 @@ import mage.abilities.keyword.FlyingAbility;
*
* @author spjspj
*/
public class AbhorrentOverlordHarpyToken extends Token {
public class AbhorrentOverlordHarpyToken extends TokenImpl {
public AbhorrentOverlordHarpyToken() {
super("Harpy", "1/1 black Harpy creature tokens with flying");
@ -49,4 +49,12 @@ public class AbhorrentOverlordHarpyToken extends Token {
this.addAbility(FlyingAbility.getInstance());
}
public AbhorrentOverlordHarpyToken(final AbhorrentOverlordHarpyToken token) {
super(token);
}
public AbhorrentOverlordHarpyToken copy() {
return new AbhorrentOverlordHarpyToken(this);
}
}

View file

@ -38,7 +38,7 @@ import mage.abilities.keyword.FlyingAbility;
*
* @author spjspj
*/
public class AerieWorshippersBirdToken extends Token {
public class AerieWorshippersBirdToken extends TokenImpl {
public AerieWorshippersBirdToken() {
super("Bird", "2/2 blue Bird enchantment creature token with flying");
@ -52,5 +52,13 @@ public class AerieWorshippersBirdToken extends Token {
this.setOriginalExpansionSetCode("BNG");
this.setTokenType(2);
}
public AerieWorshippersBirdToken(final AerieWorshippersBirdToken token) {
super(token);
}
public AerieWorshippersBirdToken copy() {
return new AerieWorshippersBirdToken(this);
}
}

View file

@ -38,7 +38,7 @@ import mage.abilities.keyword.TrampleAbility;
*
* @author spjspj
*/
public class AkoumStonewakerElementalToken extends Token {
public class AkoumStonewakerElementalToken extends TokenImpl {
public AkoumStonewakerElementalToken() {
super("Elemental", "3/1 red Elemental creature token with trample and haste");
@ -52,5 +52,13 @@ public class AkoumStonewakerElementalToken extends Token {
this.setOriginalExpansionSetCode("BFZ");
this.setTokenType(1);
}
public AkoumStonewakerElementalToken(final AkoumStonewakerElementalToken token) {
super(token);
}
public AkoumStonewakerElementalToken copy() {
return new AkoumStonewakerElementalToken(this);
}
}

View file

@ -36,7 +36,7 @@ import mage.abilities.keyword.HasteAbility;
*
* @author spjspj
*/
public class AkroanSoldierToken extends Token {
public class AkroanSoldierToken extends TokenImpl {
public AkroanSoldierToken() {
super("Soldier", "1/1 red Soldier creature token with haste");
@ -48,4 +48,12 @@ public class AkroanSoldierToken extends Token {
toughness = new MageInt(1);
this.addAbility(HasteAbility.getInstance());
}
public AkroanSoldierToken(final AkroanSoldierToken token) {
super(token);
}
public AkroanSoldierToken copy() {
return new AkroanSoldierToken(this);
}
}

View file

@ -8,7 +8,7 @@ import mage.abilities.keyword.FlyingAbility;
import mage.constants.CardType;
import mage.constants.SubType;
public class AngelToken extends Token {
public class AngelToken extends TokenImpl {
final static private List<String> tokenImageSets = new ArrayList<>();
@ -17,7 +17,7 @@ public class AngelToken extends Token {
}
public AngelToken() {
this(null);
this((String)null);
}
public AngelToken(String setCode) {
@ -32,4 +32,12 @@ public class AngelToken extends Token {
toughness = new MageInt(4);
addAbility(FlyingAbility.getInstance());
}
public AngelToken(final AngelToken token) {
super(token);
}
public AngelToken copy() {
return new AngelToken(this);
}
}

View file

@ -36,7 +36,7 @@ import mage.abilities.keyword.FlyingAbility;
*
* @author spjspj
*/
public class AnotherSpiritToken extends Token {
public class AnotherSpiritToken extends TokenImpl {
public AnotherSpiritToken() {
super("Spirit", "3/3 white Spirit creature token with flying");
@ -47,5 +47,11 @@ public class AnotherSpiritToken extends Token {
toughness = new MageInt(3);
this.addAbility(FlyingAbility.getInstance());
}
public AnotherSpiritToken(final AnotherSpiritToken token) {
super(token);
}
public AnotherSpiritToken copy() {
return new AnotherSpiritToken(this);
}
}

View file

@ -36,7 +36,7 @@ import mage.MageInt;
*
* @author spjspj
*/
public class AnthousaWarriorToken extends Token {
public class AnthousaWarriorToken extends TokenImpl {
public AnthousaWarriorToken() {
super("", "2/2 Warrior creatures");
@ -46,5 +46,12 @@ public class AnthousaWarriorToken extends Token {
toughness = new MageInt(2);
}
public AnthousaWarriorToken(final AnthousaWarriorToken token) {
super(token);
}
public AnthousaWarriorToken copy() {
return new AnthousaWarriorToken(this);
}
}

View file

@ -35,7 +35,7 @@ import mage.MageInt;
*
* @author spjspj
*/
public class ApeToken extends Token {
public class ApeToken extends TokenImpl {
public ApeToken() {
super("Ape", "2/2 green Ape creature token");
@ -45,4 +45,12 @@ public class ApeToken extends Token {
power = new MageInt(2);
toughness = new MageInt(2);
}
public ApeToken(final ApeToken token) {
super(token);
}
public ApeToken copy() {
return new ApeToken(this);
}
}

View file

@ -36,7 +36,7 @@ import mage.MageInt;
*
* @author spjspj
*/
public class ArchitectOfTheUntamedBeastToken extends Token {
public class ArchitectOfTheUntamedBeastToken extends TokenImpl {
public ArchitectOfTheUntamedBeastToken() {
super("Beast", "6/6 colorless Beast artifact creature token");
@ -46,5 +46,13 @@ public class ArchitectOfTheUntamedBeastToken extends Token {
power = new MageInt(6);
toughness = new MageInt(6);
}
public ArchitectOfTheUntamedBeastToken(final ArchitectOfTheUntamedBeastToken token) {
super(token);
}
public ArchitectOfTheUntamedBeastToken copy() {
return new ArchitectOfTheUntamedBeastToken(this);
}
}

View file

@ -38,7 +38,7 @@ import mage.abilities.effects.common.LoseGameTargetPlayerEffect;
*
* @author spjspj
*/
public class AssassinToken extends Token {
public class AssassinToken extends TokenImpl {
public AssassinToken() {
super("Assassin", "1/1 black Assassin creature tokens with \"Whenever this creature deals combat damage to a player, that player loses the game.\"");
@ -49,5 +49,13 @@ public class AssassinToken extends Token {
toughness = new MageInt(1);
addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(new LoseGameTargetPlayerEffect(), false, true));
}
public AssassinToken(final AssassinToken token) {
super(token);
}
public AssassinToken copy() {
return new AssassinToken(this);
}
}

View file

@ -35,7 +35,7 @@ import mage.MageInt;
*
* @author spjspj
*/
public class AssemblyWorkerToken extends Token {
public class AssemblyWorkerToken extends TokenImpl {
public AssemblyWorkerToken() {
super("Assembly-Worker", "2/2 Assembly-Worker artifact creature");
@ -45,4 +45,12 @@ public class AssemblyWorkerToken extends Token {
power = new MageInt(2);
toughness = new MageInt(2);
}
public AssemblyWorkerToken(final AssemblyWorkerToken token) {
super(token);
}
public AssemblyWorkerToken copy() {
return new AssemblyWorkerToken(this);
}
}

View file

@ -46,7 +46,7 @@ import mage.players.Player;
*
* @author spjspj
*/
public class AvatarToken extends Token {
public class AvatarToken extends TokenImpl {
public AvatarToken() {
super("Avatar", "white Avatar creature token with \"This creature's power and toughness are each equal to your life total.\"");
@ -55,6 +55,14 @@ public class AvatarToken extends Token {
color.setWhite(true);
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new AvatarTokenEffect()));
}
public AvatarToken(final AvatarToken token) {
super(token);
}
public AvatarToken copy() {
return new AvatarToken(this);
}
}
class AvatarTokenEffect extends ContinuousEffectImpl {

View file

@ -36,7 +36,7 @@ import mage.abilities.keyword.HasteAbility;
*
* @author spjspj
*/
public class BalduvianToken extends Token {
public class BalduvianToken extends TokenImpl {
public BalduvianToken() {
super("Graveborn", "3/1 black and red Graveborn creature token with haste");
@ -48,4 +48,12 @@ public class BalduvianToken extends Token {
subtype.add(SubType.GRAVEBORN);
addAbility(HasteAbility.getInstance());
}
public BalduvianToken(final BalduvianToken token) {
super(token);
}
public BalduvianToken copy() {
return new BalduvianToken(this);
}
}

View file

@ -36,7 +36,7 @@ import mage.MageInt;
*
* @author spjspj
*/
public class BaruFistOfKrosaToken extends Token {
public class BaruFistOfKrosaToken extends TokenImpl {
public BaruFistOfKrosaToken() {
this(1);
@ -50,5 +50,13 @@ public class BaruFistOfKrosaToken extends Token {
power = new MageInt(xValue);
toughness = new MageInt(xValue);
}
public BaruFistOfKrosaToken(final BaruFistOfKrosaToken token) {
super(token);
}
public BaruFistOfKrosaToken copy() {
return new BaruFistOfKrosaToken(this);
}
}

View file

@ -5,7 +5,7 @@ import mage.abilities.keyword.FlyingAbility;
import mage.constants.CardType;
import mage.constants.SubType;
public class BatToken extends Token {
public class BatToken extends TokenImpl {
public BatToken() {
super("Bat", "1/1 black Bat creature token with flying");
@ -18,4 +18,11 @@ public class BatToken extends Token {
this.setOriginalExpansionSetCode("MMA");
}
public BatToken(final BatToken token) {
super(token);
}
public BatToken copy() {
return new BatToken(this);
}
}

View file

@ -36,7 +36,7 @@ import mage.constants.SubType;
*
* @author BetaSteward_at_googlemail.com
*/
public class BearToken extends Token {
public class BearToken extends TokenImpl {
public BearToken() {
super("Bear", "2/2 green Bear creature token");
@ -47,4 +47,11 @@ public class BearToken extends Token {
toughness = new MageInt(2);
}
public BearToken(final BearToken token) {
super(token);
}
public BearToken copy() {
return new BearToken(this);
}
}

View file

@ -35,7 +35,7 @@ import mage.MageInt;
*
* @author spjspj
*/
public class BearsCompanionBearToken extends Token {
public class BearsCompanionBearToken extends TokenImpl {
public BearsCompanionBearToken() {
super("Bear", "4/4 green Bear creature token");
@ -46,5 +46,11 @@ public class BearsCompanionBearToken extends Token {
power = new MageInt(4);
toughness = new MageInt(4);
}
public BearsCompanionBearToken(final BearsCompanionBearToken token) {
super(token);
}
public BearsCompanionBearToken copy() {
return new BearsCompanionBearToken(this);
}
}

View file

@ -38,7 +38,7 @@ import mage.constants.SubType;
*
* @author BetaSteward_at_googlemail.com
*/
public class BeastToken extends Token {
public class BeastToken extends TokenImpl {
final static private List<String> tokenImageSets = new ArrayList<>();

View file

@ -38,7 +38,7 @@ import mage.constants.SubType;
*
* @author LoneFox
*/
public class BeastToken2 extends Token {
public class BeastToken2 extends TokenImpl {
final static private List<String> tokenImageSets = new ArrayList<>();

View file

@ -35,7 +35,7 @@ import mage.constants.SubType;
*
* @author fireshoes
*/
public class BeastToken3 extends Token {
public class BeastToken3 extends TokenImpl {
public BeastToken3() {
this(null, 0);

View file

@ -36,7 +36,7 @@ import mage.abilities.keyword.FlyingAbility;
*
* @author spjspj
*/
public class BeckonApparitionToken extends Token {
public class BeckonApparitionToken extends TokenImpl {
public BeckonApparitionToken() {
super("Spirit", "1/1 white and black Spirit creature token with flying");
@ -49,4 +49,12 @@ public class BeckonApparitionToken extends Token {
toughness = new MageInt(1);
this.addAbility(FlyingAbility.getInstance());
}
public BeckonApparitionToken(final BeckonApparitionToken token) {
super(token);
}
public BeckonApparitionToken copy() {
return new BeckonApparitionToken(this);
}
}

View file

@ -36,7 +36,7 @@ import mage.abilities.keyword.FlyingAbility;
*
* @author spjspj
*/
public class BirdSoldierToken extends Token {
public class BirdSoldierToken extends TokenImpl {
public BirdSoldierToken() {
super("Bird Soldier", "1/1 white Bird Soldier creature with flying");
@ -49,4 +49,12 @@ public class BirdSoldierToken extends Token {
addAbility(FlyingAbility.getInstance());
}
public BirdSoldierToken(final BirdSoldierToken token) {
super(token);
}
public BirdSoldierToken copy() {
return new BirdSoldierToken(this);
}
}

View file

@ -38,7 +38,7 @@ import mage.constants.SubType;
*
* @author LoneFox
*/
public class BirdToken extends Token {
public class BirdToken extends TokenImpl {
public BirdToken() {
super("Bird", "1/1 white Bird creature token with flying");

View file

@ -35,7 +35,7 @@ import mage.MageInt;
*
* @author spjspj
*/
public class BoarToken extends Token {
public class BoarToken extends TokenImpl {
public BoarToken() {
super("Boar", "3/3 green Boar creature token");
@ -45,4 +45,12 @@ public class BoarToken extends Token {
power = new MageInt(3);
toughness = new MageInt(3);
}
public BoarToken(final BoarToken token) {
super(token);
}
public BoarToken copy() {
return new BoarToken(this);
}
}

View file

@ -35,7 +35,7 @@ import mage.MageInt;
*
* @author spjspj
*/
public class BrainiacToken extends Token {
public class BrainiacToken extends TokenImpl {
public BrainiacToken() {
super("Brainiac", "1/1 red Brainiac creature token");
@ -45,4 +45,12 @@ public class BrainiacToken extends Token {
power = new MageInt(1);
toughness = new MageInt(1);
}
public BrainiacToken(final BrainiacToken token) {
super(token);
}
public BrainiacToken copy() {
return new BrainiacToken(this);
}
}

View file

@ -35,7 +35,7 @@ import mage.constants.SubType;
*
* @author spjspj
*/
public class BreedingPitThrullToken extends Token {
public class BreedingPitThrullToken extends TokenImpl {
public BreedingPitThrullToken() {
super("Thrull", "0/1 black Thrull creature token");
@ -45,4 +45,12 @@ public class BreedingPitThrullToken extends Token {
power = new MageInt(0);
toughness = new MageInt(1);
}
public BreedingPitThrullToken(final BreedingPitThrullToken token) {
super(token);
}
public BreedingPitThrullToken copy() {
return new BreedingPitThrullToken(this);
}
}

View file

@ -35,7 +35,7 @@ import mage.MageInt;
*
* @author spjspj & L_J
*/
public class BrokenVisageSpiritToken extends Token {
public class BrokenVisageSpiritToken extends TokenImpl {
public BrokenVisageSpiritToken() {
this(0,0);
@ -49,4 +49,12 @@ public class BrokenVisageSpiritToken extends Token {
power = new MageInt(tokenPower);
toughness = new MageInt(tokenToughness);
}
public BrokenVisageSpiritToken(final BrokenVisageSpiritToken token) {
super(token);
}
public BrokenVisageSpiritToken copy() {
return new BrokenVisageSpiritToken(this);
}
}

View file

@ -41,7 +41,7 @@ import mage.constants.Zone;
*
* @author spjspj
*/
public class BroodKeeperDragonToken extends Token {
public class BroodKeeperDragonToken extends TokenImpl {
public BroodKeeperDragonToken() {
super("Dragon", "2/2 red Dragon creature token with flying. It has \"{R}: This creature gets +1/+0 until end of turn.\"");
@ -55,4 +55,12 @@ public class BroodKeeperDragonToken extends Token {
this.addAbility(FlyingAbility.getInstance());
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl("{R}")));
}
public BroodKeeperDragonToken(final BroodKeeperDragonToken token) {
super(token);
}
public BroodKeeperDragonToken copy() {
return new BroodKeeperDragonToken(this);
}
}

View file

@ -36,7 +36,7 @@ import mage.abilities.keyword.FlyingAbility;
*
* @author spjspj
*/
public class ButterflyToken extends Token {
public class ButterflyToken extends TokenImpl {
public ButterflyToken() {
super("Butterfly", "1/1 green Insect creature token with flying named Butterfly");
@ -47,4 +47,12 @@ public class ButterflyToken extends Token {
toughness = new MageInt(1);
addAbility(FlyingAbility.getInstance());
}
public ButterflyToken(final ButterflyToken token) {
super(token);
}
public ButterflyToken copy() {
return new ButterflyToken(this);
}
}

View file

@ -36,7 +36,7 @@ import mage.constants.SubType;
*
* @author spjspj
*/
public class CallTheSkyBreakerElementalToken extends Token {
public class CallTheSkyBreakerElementalToken extends TokenImpl {
public CallTheSkyBreakerElementalToken() {
super("Elemental", "5/5 blue and red Elemental creature token with flying");
@ -51,4 +51,12 @@ public class CallTheSkyBreakerElementalToken extends Token {
toughness = new MageInt(5);
this.addAbility(FlyingAbility.getInstance());
}
public CallTheSkyBreakerElementalToken(final CallTheSkyBreakerElementalToken token) {
super(token);
}
public CallTheSkyBreakerElementalToken copy() {
return new CallTheSkyBreakerElementalToken(this);
}
}

View file

@ -34,7 +34,7 @@ import mage.constants.SubType;
*
* @author spjspj
*/
public class CamaridToken extends Token {
public class CamaridToken extends TokenImpl {
public CamaridToken() {
super("Camarid", "1/1 blue Camarid creature tokens");
@ -45,4 +45,12 @@ public class CamaridToken extends Token {
this.getSubtype(null).add(SubType.CAMARID);
this.addCardType(CardType.CREATURE);
}
public CamaridToken(final CamaridToken token) {
super(token);
}
public CamaridToken copy() {
return new CamaridToken(this);
}
}

View file

@ -35,7 +35,7 @@ import mage.MageInt;
*
* @author spjspj
*/
public class CaribouToken extends Token {
public class CaribouToken extends TokenImpl {
public CaribouToken() {
super("Caribou", "0/1 white Caribou creature token");
@ -45,4 +45,12 @@ public class CaribouToken extends Token {
power = new MageInt(0);
toughness = new MageInt(1);
}
public CaribouToken(final CaribouToken token) {
super(token);
}
public CaribouToken copy() {
return new CaribouToken(this);
}
}

View file

@ -35,7 +35,7 @@ import mage.MageInt;
*
* @author spjspj
*/
public class CarnivoreToken extends Token {
public class CarnivoreToken extends TokenImpl {
public CarnivoreToken() {
super("Carnivore", "3/1 red Beast creature token");
@ -45,4 +45,12 @@ public class CarnivoreToken extends Token {
power = new MageInt(3);
toughness = new MageInt(1);
}
public CarnivoreToken(final CarnivoreToken token) {
super(token);
}
public CarnivoreToken copy() {
return new CarnivoreToken(this);
}
}

View file

@ -35,7 +35,7 @@ import mage.MageInt;
*
* @author TheElk801
*/
public class CarrionBlackInsectToken extends Token {
public class CarrionBlackInsectToken extends TokenImpl {
public CarrionBlackInsectToken() {
super("Insect", "0/1 black Insect creature token");
@ -45,4 +45,12 @@ public class CarrionBlackInsectToken extends Token {
power = new MageInt(0);
toughness = new MageInt(1);
}
public CarrionBlackInsectToken(final CarrionBlackInsectToken token) {
super(token);
}
public CarrionBlackInsectToken copy() {
return new CarrionBlackInsectToken(this);
}
}

View file

@ -31,13 +31,12 @@ import mage.MageInt;
import mage.abilities.keyword.VigilanceAbility;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.game.permanent.token.Token;
/**
*
* @author LevelX2
*/
public class CatSoldierCreatureToken extends Token {
public class CatSoldierCreatureToken extends TokenImpl {
public CatSoldierCreatureToken() {
super("Cat Soldier", "1/1 white Cat Soldier creature token with vigilance");
@ -52,4 +51,12 @@ public class CatSoldierCreatureToken extends Token {
this.addAbility(VigilanceAbility.getInstance());
this.setOriginalExpansionSetCode("BNG");
}
public CatSoldierCreatureToken(final CatSoldierCreatureToken token) {
super(token);
}
public CatSoldierCreatureToken copy() {
return new CatSoldierCreatureToken(this);
}
}

View file

@ -39,7 +39,7 @@ import mage.constants.SubType;
*
* @author LoneFox
*/
public class CatToken extends Token {
public class CatToken extends TokenImpl {
final static private List<String> tokenImageSets = new ArrayList<>();
@ -65,4 +65,13 @@ public class CatToken extends Token {
power = new MageInt(2);
toughness = new MageInt(2);
}
public CatToken(final CatToken token) {
super(token);
}
public CatToken copy() {
return new CatToken(this);
}
}

View file

@ -37,17 +37,13 @@ import mage.constants.SubType;
*
* @author fireshoes
*/
public class CatToken2 extends Token {
public class CatToken2 extends TokenImpl {
public CatToken2() {
this(null, 0);
this((String)null);
}
public CatToken2(String setCode) {
this(setCode, 0);
}
public CatToken2(String setCode, int tokenType) {
super("Cat", "1/1 white Cat creature token with lifelink");
setOriginalExpansionSetCode("AKH");
cardType.add(CardType.CREATURE);
@ -57,4 +53,12 @@ public class CatToken2 extends Token {
toughness = new MageInt(1);
addAbility(LifelinkAbility.getInstance());
}
public CatToken2(final CatToken2 token) {
super(token);
}
public CatToken2 copy() {
return new CatToken2(this);
}
}

View file

@ -35,7 +35,7 @@ import mage.constants.SubType;
*
* @author spjspj
*/
public class CatWarriorToken extends Token {
public class CatWarriorToken extends TokenImpl {
public CatWarriorToken() {
super("Cat Warrior", "2/2 green Cat Warrior creature token with forestwalk");
@ -48,4 +48,12 @@ public class CatWarriorToken extends Token {
this.addCardType(CardType.CREATURE);
this.addAbility(new ForestwalkAbility());
}
public CatWarriorToken(final CatWarriorToken token) {
super(token);
}
public CatWarriorToken copy() {
return new CatWarriorToken(this);
}
}

View file

@ -30,13 +30,12 @@ package mage.game.permanent.token;
import mage.MageInt;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.game.permanent.token.Token;
/**
*
* @author LevelX2
*/
public class CentaurEnchantmentCreatureToken extends Token {
public class CentaurEnchantmentCreatureToken extends TokenImpl {
public CentaurEnchantmentCreatureToken() {
super("Centaur", "3/3 green Centaur enchantment creature token");
@ -48,4 +47,12 @@ public class CentaurEnchantmentCreatureToken extends Token {
toughness = new MageInt(3);
this.setOriginalExpansionSetCode("BNG");
}
public CentaurEnchantmentCreatureToken(final CentaurEnchantmentCreatureToken token) {
super(token);
}
public CentaurEnchantmentCreatureToken copy() {
return new CentaurEnchantmentCreatureToken(this);
}
}

View file

@ -40,7 +40,7 @@ import mage.util.RandomUtil;
*
* @author LevelX2
*/
public class CentaurToken extends Token {
public class CentaurToken extends TokenImpl {
final static private List<String> tokenImageSets = new ArrayList<>();
@ -58,4 +58,11 @@ public class CentaurToken extends Token {
toughness = new MageInt(3);
}
public CentaurToken(final CentaurToken token) {
super(token);
}
public CentaurToken copy() {
return new CentaurToken(this);
}
}

View file

@ -36,7 +36,7 @@ import mage.abilities.keyword.IslandwalkAbility;
*
* @author spjspj
*/
public class ChasmSkulkerSquidToken extends Token {
public class ChasmSkulkerSquidToken extends TokenImpl {
public ChasmSkulkerSquidToken() {
super("Squid", "1/1 blue Squid creature token with islandwalk");
@ -50,4 +50,11 @@ public class ChasmSkulkerSquidToken extends Token {
this.addAbility(new IslandwalkAbility());
}
public ChasmSkulkerSquidToken(final ChasmSkulkerSquidToken token) {
super(token);
}
public ChasmSkulkerSquidToken copy() {
return new ChasmSkulkerSquidToken(this);
}
}

View file

@ -36,7 +36,7 @@ import mage.constants.SubType;
*
* @author Quercitron
*/
public class CitizenToken extends Token {
public class CitizenToken extends TokenImpl {
public CitizenToken() {
super("Citizen", "1/1 white Citizen creature token");
@ -47,5 +47,12 @@ public class CitizenToken extends Token {
power = new MageInt(1);
toughness = new MageInt(1);
}
public CitizenToken(final CitizenToken token) {
super(token);
}
public CitizenToken copy() {
return new CitizenToken(this);
}
}

View file

@ -37,7 +37,7 @@ import mage.abilities.keyword.FlyingAbility;
*
* @author spjspj
*/
public class CloudSpriteToken extends Token {
public class CloudSpriteToken extends TokenImpl {
public CloudSpriteToken() {
super("Cloud Sprite", "1/1 blue faerie creature token named Cloud Sprite with flying and \"Cloud Sprite can block only creatures with flying.\"");
@ -51,4 +51,12 @@ public class CloudSpriteToken extends Token {
this.addAbility(FlyingAbility.getInstance());
this.addAbility(new CanBlockOnlyFlyingAbility());
}
public CloudSpriteToken(final CloudSpriteToken token) {
super(token);
}
public CloudSpriteToken copy() {
return new CloudSpriteToken(this);
}
}

View file

@ -44,7 +44,7 @@ import java.util.List;
/**
*
*/
public class ClueArtifactToken extends Token {
public class ClueArtifactToken extends TokenImpl {
final static private List<String> tokenImageSets = new ArrayList<>();

View file

@ -36,7 +36,7 @@ import mage.abilities.keyword.DefenderAbility;
*
* @author spjspj
*/
public class ConstructToken extends Token {
public class ConstructToken extends TokenImpl {
public ConstructToken() {
this("CNS");
@ -53,4 +53,12 @@ public class ConstructToken extends Token {
addAbility(DefenderAbility.getInstance());
}
public ConstructToken(final ConstructToken token) {
super(token);
}
public ConstructToken copy() {
return new ConstructToken(this);
}
}

View file

@ -36,7 +36,7 @@ import mage.abilities.keyword.IslandwalkAbility;
*
* @author spjspj
*/
public class CoralBarrierSquidToken extends Token {
public class CoralBarrierSquidToken extends TokenImpl {
public CoralBarrierSquidToken() {
super("Squid", "1/1 blue Squid creature token with islandwalk");
@ -49,5 +49,11 @@ public class CoralBarrierSquidToken extends Token {
this.addAbility(new IslandwalkAbility());
}
public CoralBarrierSquidToken(final CoralBarrierSquidToken token) {
super(token);
}
public CoralBarrierSquidToken copy() {
return new CoralBarrierSquidToken(this);
}
}

View file

@ -35,7 +35,7 @@ import mage.MageInt;
*
* @author spjspj
*/
public class CorpseweftZombieToken extends Token {
public class CorpseweftZombieToken extends TokenImpl {
public CorpseweftZombieToken() {
this(2,2);
@ -50,4 +50,12 @@ public class CorpseweftZombieToken extends Token {
this.power = new MageInt(power);
this.toughness = new MageInt(toughness);
}
public CorpseweftZombieToken(final CorpseweftZombieToken token) {
super(token);
}
public CorpseweftZombieToken copy() {
return new CorpseweftZombieToken(this);
}
}

View file

@ -35,7 +35,7 @@ import mage.MageInt;
*
* @author spjspj
*/
public class CorruptedZendikonOozeToken extends Token {
public class CorruptedZendikonOozeToken extends TokenImpl {
public CorruptedZendikonOozeToken() {
super("Ooze", "3/3 black Ooze creature");
@ -45,5 +45,11 @@ public class CorruptedZendikonOozeToken extends Token {
this.power = new MageInt(3);
this.toughness = new MageInt(3);
}
public CorruptedZendikonOozeToken(final CorruptedZendikonOozeToken token) {
super(token);
}
public CorruptedZendikonOozeToken copy() {
return new CorruptedZendikonOozeToken(this);
}
}

View file

@ -35,7 +35,7 @@ import mage.MageInt;
*
* @author spjspj
*/
public class CreakwoodLiegeToken extends Token {
public class CreakwoodLiegeToken extends TokenImpl {
public CreakwoodLiegeToken() {
super("Worm", "1/1 black and green Worm creature token");
@ -46,4 +46,12 @@ public class CreakwoodLiegeToken extends Token {
power = new MageInt(1);
toughness = new MageInt(1);
}
public CreakwoodLiegeToken(final CreakwoodLiegeToken token) {
super(token);
}
public CreakwoodLiegeToken copy() {
return new CreakwoodLiegeToken(this);
}
}

View file

@ -35,7 +35,7 @@ import mage.MageInt;
*
* @author spjspj
*/
public class CrestedSunmareToken extends Token {
public class CrestedSunmareToken extends TokenImpl {
public CrestedSunmareToken() {
super("Horse", "5/5 white Horse creature token");
@ -45,4 +45,12 @@ public class CrestedSunmareToken extends Token {
subtype.add(SubType.HORSE);
cardType.add(CardType.CREATURE);
}
public CrestedSunmareToken(final CrestedSunmareToken token) {
super(token);
}
public CrestedSunmareToken copy() {
return new CrestedSunmareToken(this);
}
}

View file

@ -36,7 +36,7 @@ import mage.abilities.keyword.ChangelingAbility;
*
* @author spjspj
*/
public class CribSwapShapeshifterWhiteToken extends Token {
public class CribSwapShapeshifterWhiteToken extends TokenImpl {
public CribSwapShapeshifterWhiteToken() {
super("Shapeshifter", "1/1 colorless Shapeshifter creature token with changeling");
@ -47,4 +47,12 @@ public class CribSwapShapeshifterWhiteToken extends Token {
toughness = new MageInt(1);
addAbility(ChangelingAbility.getInstance());
}
public CribSwapShapeshifterWhiteToken(final CribSwapShapeshifterWhiteToken token) {
super(token);
}
public CribSwapShapeshifterWhiteToken copy() {
return new CribSwapShapeshifterWhiteToken(this);
}
}

View file

@ -35,7 +35,7 @@ import mage.MageInt;
*
* @author spjspj
*/
public class CrushOfTentaclesToken extends Token {
public class CrushOfTentaclesToken extends TokenImpl {
public CrushOfTentaclesToken() {
super("Octopus", "8/8 blue Octopus creature");
@ -46,4 +46,12 @@ public class CrushOfTentaclesToken extends Token {
this.power = new MageInt(8);
this.toughness = new MageInt(8);
}
public CrushOfTentaclesToken(final CrushOfTentaclesToken token) {
super(token);
}
public CrushOfTentaclesToken copy() {
return new CrushOfTentaclesToken(this);
}
}

View file

@ -36,7 +36,7 @@ import mage.MageInt;
*
* @author spjspj
*/
public class CurseOfTheSwineBoarToken extends Token {
public class CurseOfTheSwineBoarToken extends TokenImpl {
public CurseOfTheSwineBoarToken() {
super("Boar", "2/2 green Boar creature token");
@ -46,5 +46,13 @@ public class CurseOfTheSwineBoarToken extends Token {
power = new MageInt(2);
toughness = new MageInt(2);
}
public CurseOfTheSwineBoarToken(final CurseOfTheSwineBoarToken token) {
super(token);
}
public CurseOfTheSwineBoarToken copy() {
return new CurseOfTheSwineBoarToken(this);
}
}

View file

@ -36,7 +36,7 @@ import mage.abilities.keyword.DefenderAbility;
*
* @author spjspj
*/
public class DarettiConstructToken extends Token {
public class DarettiConstructToken extends TokenImpl {
public DarettiConstructToken() {
this("CNS");
@ -53,4 +53,12 @@ public class DarettiConstructToken extends Token {
addAbility(DefenderAbility.getInstance());
}
public DarettiConstructToken(final DarettiConstructToken token) {
super(token);
}
public DarettiConstructToken copy() {
return new DarettiConstructToken(this);
}
}

View file

@ -48,7 +48,7 @@ import mage.players.Player;
*
* @author spjspj
*/
public class DaxosSpiritToken extends Token {
public class DaxosSpiritToken extends TokenImpl {
public DaxosSpiritToken() {
super("Spirit", "white and black Spirit enchantment creature token with \"This creature's power and toughness are each equal to the number of experience counters you have.\"");
@ -63,6 +63,14 @@ public class DaxosSpiritToken extends Token {
toughness = new MageInt(0);
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new DaxosSpiritSetPTEffect()));
}
public DaxosSpiritToken(final DaxosSpiritToken token) {
super(token);
}
public DaxosSpiritToken copy() {
return new DaxosSpiritToken(this);
}
}
class DaxosSpiritSetPTEffect extends ContinuousEffectImpl {

View file

@ -36,7 +36,7 @@ import mage.abilities.keyword.ShroudAbility;
*
* @author spjspj
*/
public class DeadlyGrubToken extends Token {
public class DeadlyGrubToken extends TokenImpl {
public DeadlyGrubToken() {
super("Insect", "6/1 green Insect creature token with shroud");
@ -47,4 +47,12 @@ public class DeadlyGrubToken extends Token {
toughness = new MageInt(1);
this.addAbility(ShroudAbility.getInstance());
}
public DeadlyGrubToken(final DeadlyGrubToken token) {
super(token);
}
public DeadlyGrubToken copy() {
return new DeadlyGrubToken(this);
}
}

View file

@ -45,7 +45,7 @@ import mage.target.common.TargetCardInYourGraveyard;
*
* @author spjspj
*/
public class DeathpactAngelToken extends Token {
public class DeathpactAngelToken extends TokenImpl {
private static final FilterCreatureCard filter = new FilterCreatureCard("card named Deathpact Angel from your graveyard");
@ -72,4 +72,11 @@ public class DeathpactAngelToken extends Token {
this.addAbility(ability);
}
public DeathpactAngelToken(final DeathpactAngelToken token) {
super(token);
}
public DeathpactAngelToken copy() {
return new DeathpactAngelToken(this);
}
}

View file

@ -36,7 +36,7 @@ import mage.constants.SubType;
*
* @author Saga
*/
public class DeathtouchRatToken extends Token {
public class DeathtouchRatToken extends TokenImpl {
public DeathtouchRatToken() {
super("Rat", "1/1 black Rat creature token with deathtouch");
@ -48,4 +48,12 @@ public class DeathtouchRatToken extends Token {
this.toughness = new MageInt(1);
this.addAbility(DeathtouchAbility.getInstance());
}
public DeathtouchRatToken(final DeathtouchRatToken token) {
super(token);
}
public DeathtouchRatToken copy() {
return new DeathtouchRatToken(this);
}
}

View file

@ -36,7 +36,7 @@ import mage.abilities.keyword.DeathtouchAbility;
*
* @author spjspj
*/
public class DeathtouchSnakeToken extends Token {
public class DeathtouchSnakeToken extends TokenImpl {
public DeathtouchSnakeToken() {
super("Snake", "1/1 green Snake creature token with deathtouch");
@ -47,4 +47,12 @@ public class DeathtouchSnakeToken extends Token {
toughness = new MageInt(1);
addAbility(DeathtouchAbility.getInstance());
}
public DeathtouchSnakeToken(final DeathtouchSnakeToken token) {
super(token);
}
public DeathtouchSnakeToken copy() {
return new DeathtouchSnakeToken(this);
}
}

View file

@ -36,7 +36,7 @@ import mage.constants.SubType;
*
* @author TheElk801
*/
public class DefenderPlantToken extends Token {
public class DefenderPlantToken extends TokenImpl {
public DefenderPlantToken() {
this(null, 0);
@ -56,4 +56,12 @@ public class DefenderPlantToken extends Token {
this.addAbility(DefenderAbility.getInstance());
}
public DefenderPlantToken(final DefenderPlantToken token) {
super(token);
}
public DefenderPlantToken copy() {
return new DefenderPlantToken(this);
}
}

View file

@ -38,7 +38,7 @@ import mage.constants.SubType;
*
* @author LoneFox
*/
public class DemonToken extends Token {
public class DemonToken extends TokenImpl {
public DemonToken() {
super("Demon", "5/5 black Demon creature token with flying");

View file

@ -35,7 +35,7 @@ import mage.MageInt;
*
* @author spjspj
*/
public class DeserterToken extends Token {
public class DeserterToken extends TokenImpl {
public DeserterToken() {
super("Deserter", "0/1 white Deserter creature token");
@ -45,4 +45,12 @@ public class DeserterToken extends Token {
power = new MageInt(0);
toughness = new MageInt(1);
}
public DeserterToken(final DeserterToken token) {
super(token);
}
public DeserterToken copy() {
return new DeserterToken(this);
}
}

View file

@ -34,7 +34,7 @@ import mage.constants.SubType;
*
* @author spjspj
*/
public class DevastatingSummonsElementalToken extends Token {
public class DevastatingSummonsElementalToken extends TokenImpl {
public DevastatingSummonsElementalToken() {
super("Elemental", "X/X red Elemental creature");
@ -42,4 +42,12 @@ public class DevastatingSummonsElementalToken extends Token {
color.setRed(true);
subtype.add(SubType.ELEMENTAL);
}
public DevastatingSummonsElementalToken(final DevastatingSummonsElementalToken token) {
super(token);
}
public DevastatingSummonsElementalToken copy() {
return new DevastatingSummonsElementalToken(this);
}
}

View file

@ -42,7 +42,7 @@ import mage.target.common.TargetCreatureOrPlayer;
*
* @author fireshoes
*/
public class DevilToken extends Token {
public class DevilToken extends TokenImpl {
public DevilToken() {
super("Devil", "1/1 red Devil creature with \"When this creature dies, it deals 1 damage to target creature or player.\"");
@ -58,4 +58,12 @@ public class DevilToken extends Token {
ability.addTarget(new TargetCreatureOrPlayer());
this.addAbility(ability);
}
public DevilToken(final DevilToken token) {
super(token);
}
public DevilToken copy() {
return new DevilToken(this);
}
}

View file

@ -35,7 +35,7 @@ import mage.MageInt;
*
* @author spjspj
*/
public class DinOfTheFireherdToken extends Token {
public class DinOfTheFireherdToken extends TokenImpl {
public DinOfTheFireherdToken() {
super("Elemental", "5/5 black and red Elemental creature");
@ -46,4 +46,12 @@ public class DinOfTheFireherdToken extends Token {
power = new MageInt(5);
toughness = new MageInt(5);
}
public DinOfTheFireherdToken(final DinOfTheFireherdToken token) {
super(token);
}
public DinOfTheFireherdToken copy() {
return new DinOfTheFireherdToken(this);
}
}

View file

@ -36,7 +36,7 @@ import mage.constants.SubType;
*
* @author TheElk801
*/
public class DinosaurToken extends Token {
public class DinosaurToken extends TokenImpl {
public DinosaurToken() {
super("Dinosaur", "3/3 green Dinosaur creature token with trample");
@ -47,4 +47,12 @@ public class DinosaurToken extends Token {
toughness = new MageInt(3);
addAbility(TrampleAbility.getInstance());
}
public DinosaurToken(final DinosaurToken token) {
super(token);
}
public DinosaurToken copy() {
return new DinosaurToken(this);
}
}

View file

@ -36,7 +36,7 @@ import mage.abilities.keyword.FlyingAbility;
*
* @author spjspj
*/
public class DjinnMonkToken extends Token {
public class DjinnMonkToken extends TokenImpl {
public DjinnMonkToken() {
super("Djinn Monk", "2/2 blue Djinn Monk creature token with flying");
@ -48,4 +48,12 @@ public class DjinnMonkToken extends Token {
toughness = new MageInt(2);
addAbility(FlyingAbility.getInstance());
}
public DjinnMonkToken(final DjinnMonkToken token) {
super(token);
}
public DjinnMonkToken copy() {
return new DjinnMonkToken(this);
}
}

View file

@ -36,7 +36,7 @@ import mage.abilities.keyword.FlyingAbility;
*
* @author spjspj
*/
public class DjinnToken extends Token {
public class DjinnToken extends TokenImpl {
public DjinnToken() {
super("Djinn", "5/5 colorless Djinn artifact creature token with flying");
@ -47,4 +47,12 @@ public class DjinnToken extends Token {
toughness = new MageInt(5);
addAbility(FlyingAbility.getInstance());
}
public DjinnToken(final DjinnToken token) {
super(token);
}
public DjinnToken copy() {
return new DjinnToken(this);
}
}

View file

@ -43,7 +43,7 @@ import mage.filter.common.FilterControlledPermanent;
*
* @author spjspj
*/
public class DokaiWeaverofLifeToken extends Token {
public class DokaiWeaverofLifeToken extends TokenImpl {
final static FilterControlledPermanent filterLands = new FilterControlledLandPermanent("lands you control");
@ -57,4 +57,12 @@ public class DokaiWeaverofLifeToken extends Token {
DynamicValue controlledLands = new PermanentsOnBattlefieldCount(filterLands);
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostSourceEffect(controlledLands, controlledLands, Duration.WhileOnBattlefield)));
}
public DokaiWeaverofLifeToken(final DokaiWeaverofLifeToken token) {
super(token);
}
public DokaiWeaverofLifeToken copy() {
return new DokaiWeaverofLifeToken(this);
}
}

View file

@ -36,7 +36,7 @@ import mage.abilities.keyword.FlyingAbility;
*
* @author spjspj
*/
public class DovescapeToken extends Token {
public class DovescapeToken extends TokenImpl {
public DovescapeToken() {
super("Bird", "1/1 white and blue Bird creature token with flying");
@ -48,4 +48,11 @@ public class DovescapeToken extends Token {
toughness = new MageInt(1);
this.addAbility(FlyingAbility.getInstance());
}
public DovescapeToken(final DovescapeToken token) {
super(token);
}
public DovescapeToken copy() {
return new DovescapeToken(this);
}
}

View file

@ -38,7 +38,7 @@ import mage.constants.SubType;
*
* @author spjspj
*/
public class DragonBroodmotherDragonToken extends Token {
public class DragonBroodmotherDragonToken extends TokenImpl {
public DragonBroodmotherDragonToken() {
super("Dragon", "1/1 red and green Dragon creature token with flying and devour 2");
@ -51,4 +51,12 @@ public class DragonBroodmotherDragonToken extends Token {
addAbility(FlyingAbility.getInstance());
addAbility(new DevourAbility(DevourEffect.DevourFactor.Devour2));
}
public DragonBroodmotherDragonToken(final DragonBroodmotherDragonToken token) {
super(token);
}
public DragonBroodmotherDragonToken copy() {
return new DragonBroodmotherDragonToken(this);
}
}

View file

@ -41,7 +41,7 @@ import mage.constants.Zone;
*
* @author spjspj
*/
public class DragonEggDragonToken extends Token {
public class DragonEggDragonToken extends TokenImpl {
public DragonEggDragonToken() {
super("Dragon", "2/2 red Dragon creature token with flying that has \"{R}: This creature gets +1/+0 until end of turn");
@ -55,4 +55,12 @@ public class DragonEggDragonToken extends Token {
addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl("{R}")));
}
public DragonEggDragonToken(final DragonEggDragonToken token) {
super(token);
}
public DragonEggDragonToken copy() {
return new DragonEggDragonToken(this);
}
}

View file

@ -40,7 +40,7 @@ import mage.constants.SubType;
*
* @author BetaSteward_at_googlemail.com
*/
public class DragonToken extends Token {
public class DragonToken extends TokenImpl {
final static private List<String> tokenImageSets = new ArrayList<>();
@ -67,4 +67,12 @@ public class DragonToken extends Token {
toughness = new MageInt(4);
addAbility(FlyingAbility.getInstance());
}
public DragonToken(final DragonToken token) {
super(token);
}
public DragonToken copy() {
return new DragonToken(this);
}
}

View file

@ -39,7 +39,7 @@ import mage.constants.SubType;
*
* @author LoneFox
*/
public class DragonToken2 extends Token {
public class DragonToken2 extends TokenImpl {
final static private List<String> tokenImageSets = new ArrayList<>();
@ -48,14 +48,10 @@ public class DragonToken2 extends Token {
}
public DragonToken2() {
this(null, 0);
this((String)null);
}
public DragonToken2(String setCode) {
this(setCode, 0);
}
public DragonToken2(String setCode, int tokenType) {
super("Dragon", "5/5 red Dragon creature token with flying");
availableImageSetCodes = tokenImageSets;
setOriginalExpansionSetCode(setCode);
@ -66,4 +62,12 @@ public class DragonToken2 extends Token {
toughness = new MageInt(5);
addAbility(FlyingAbility.getInstance());
}
public DragonToken2(final DragonToken2 token) {
super(token);
}
public DragonToken2 copy() {
return new DragonToken2(this);
}
}

View file

@ -40,7 +40,7 @@ import mage.constants.SubType;
*
* @author Saga
*/
public class DragonTokenGold extends Token {
public class DragonTokenGold extends TokenImpl {
final static private List<String> tokenImageSets = new ArrayList<>();
@ -67,4 +67,12 @@ public class DragonTokenGold extends Token {
toughness = new MageInt(4);
addAbility(FlyingAbility.getInstance());
}
public DragonTokenGold(final DragonTokenGold token) {
super(token);
}
public DragonTokenGold copy() {
return new DragonTokenGold(this);
}
}

View file

@ -37,7 +37,7 @@ import mage.abilities.keyword.FlyingAbility;
*
* @author North
*/
public class DrakeToken extends Token {
public class DrakeToken extends TokenImpl {
public DrakeToken() {
super("Drake", "2/2 blue Drake creature token with flying");
@ -50,4 +50,12 @@ public class DrakeToken extends Token {
this.addAbility(FlyingAbility.getInstance());
}
public DrakeToken(final DrakeToken token) {
super(token);
}
public DrakeToken copy() {
return new DrakeToken(this);
}
}

View file

@ -37,7 +37,7 @@ import mage.constants.SubType;
*
* @author Styxo
*/
public class DroidToken extends Token {
public class DroidToken extends TokenImpl {
public DroidToken() {
super("Droid", "1/1 colorless Droid creature token");
@ -50,4 +50,12 @@ public class DroidToken extends Token {
power = new MageInt(1);
toughness = new MageInt(1);
}
public DroidToken(final DroidToken token) {
super(token);
}
public DroidToken copy() {
return new DroidToken(this);
}
}

View file

@ -35,7 +35,7 @@ import mage.MageInt;
*
* @author spjspj
*/
public class DuneBroodNephilimToken extends Token {
public class DuneBroodNephilimToken extends TokenImpl {
public DuneBroodNephilimToken() {
super("Sand", "1/1 colorless Sand creature token");
@ -44,4 +44,11 @@ public class DuneBroodNephilimToken extends Token {
power = new MageInt(1);
toughness = new MageInt(1);
}
public DuneBroodNephilimToken(final DuneBroodNephilimToken token) {
super(token);
}
public DuneBroodNephilimToken copy() {
return new DuneBroodNephilimToken(this);
}
}

View file

@ -35,7 +35,7 @@ import mage.MageInt;
*
* @author spjspj
*/
public class EdgarMarkovToken extends Token {
public class EdgarMarkovToken extends TokenImpl {
public EdgarMarkovToken() {
super("Vampire", "1/1 black Vampire creature token");
@ -45,4 +45,12 @@ public class EdgarMarkovToken extends Token {
power = new MageInt(1);
toughness = new MageInt(1);
}
public EdgarMarkovToken(final EdgarMarkovToken token) {
super(token);
}
public EdgarMarkovToken copy() {
return new EdgarMarkovToken(this);
}
}

View file

@ -38,7 +38,7 @@ import mage.constants.SubType;
*
* @author escplan9 (Derek Monturo - dmontur1 at gmail dot com)
*/
public class EldraziHorrorToken extends Token {
public class EldraziHorrorToken extends TokenImpl {
final static private List<String> tokenImageSets = new ArrayList<>();
@ -55,4 +55,12 @@ public class EldraziHorrorToken extends Token {
toughness = new MageInt(2);
availableImageSetCodes = tokenImageSets;
}
public EldraziHorrorToken(final EldraziHorrorToken token) {
super(token);
}
public EldraziHorrorToken copy() {
return new EldraziHorrorToken(this);
}
}

View file

@ -44,7 +44,7 @@ import mage.util.RandomUtil;
*
* @author fireshoes
*/
public class EldraziScionToken extends Token {
public class EldraziScionToken extends TokenImpl {
final static private List<String> tokenImageSets = new ArrayList<>();

View file

@ -44,7 +44,7 @@ import mage.util.RandomUtil;
*
* @author BetaSteward_at_googlemail.com
*/
public class EldraziSpawnToken extends Token {
public class EldraziSpawnToken extends TokenImpl {
final static private List<String> tokenImageSets = new ArrayList<>();
@ -65,4 +65,12 @@ public class EldraziSpawnToken extends Token {
// Get one of the three possible token images
this.setTokenType(RandomUtil.nextInt(3) + 1);
}
public EldraziSpawnToken(final EldraziSpawnToken token) {
super(token);
}
public EldraziSpawnToken copy() {
return new EldraziSpawnToken(this);
}
}

View file

@ -35,7 +35,7 @@ import mage.MageInt;
*
* @author spjspj
*/
public class EldraziToken extends Token {
public class EldraziToken extends TokenImpl {
public EldraziToken() {
super("Eldrazi", "10/10 colorless Eldrazi creature token");
@ -44,4 +44,12 @@ public class EldraziToken extends Token {
power = new MageInt(10);
toughness = new MageInt(10);
}
public EldraziToken(final EldraziToken token) {
super(token);
}
public EldraziToken copy() {
return new EldraziToken(this);
}
}

View file

@ -37,7 +37,7 @@ import mage.constants.SubType;
*
* @author spjspj
*/
public class ElementalAppealElementalToken extends Token {
public class ElementalAppealElementalToken extends TokenImpl {
public ElementalAppealElementalToken() {
super("Elemental", "7/1 red Elemental creature token with trample and haste");
@ -49,4 +49,12 @@ public class ElementalAppealElementalToken extends Token {
addAbility(TrampleAbility.getInstance());
addAbility(HasteAbility.getInstance());
}
public ElementalAppealElementalToken(final ElementalAppealElementalToken token) {
super(token);
}
public ElementalAppealElementalToken copy() {
return new ElementalAppealElementalToken(this);
}
}

View file

@ -36,7 +36,7 @@ import mage.abilities.keyword.HasteAbility;
*
* @author spjspj
*/
public class ElementalCatToken extends Token {
public class ElementalCatToken extends TokenImpl {
public ElementalCatToken() {
super("Elemental Cat", "1/1 red Elemental Cat creature token");
@ -48,4 +48,12 @@ public class ElementalCatToken extends Token {
power = new MageInt(1);
toughness = new MageInt(1);
}
public ElementalCatToken(final ElementalCatToken token) {
super(token);
}
public ElementalCatToken copy() {
return new ElementalCatToken(this);
}
}

View file

@ -36,7 +36,7 @@ import mage.constants.SubType;
*
* @author spjspj
*/
public class ElementalMasteryElementalToken extends Token {
public class ElementalMasteryElementalToken extends TokenImpl {
public ElementalMasteryElementalToken() {
super("Elemental", "1/1 red Elemental creature token with haste");
@ -47,4 +47,11 @@ public class ElementalMasteryElementalToken extends Token {
toughness = new MageInt(1);
addAbility(HasteAbility.getInstance());
}
public ElementalMasteryElementalToken(final ElementalMasteryElementalToken token) {
super(token);
}
public ElementalMasteryElementalToken copy() {
return new ElementalMasteryElementalToken(this);
}
}

View file

@ -38,7 +38,7 @@ import mage.constants.SubType;
*
* @author Styxo
*/
public class ElementalShamanToken extends Token {
public class ElementalShamanToken extends TokenImpl {
final static private List<String> tokenImageSets = new ArrayList<>();
@ -62,4 +62,11 @@ public class ElementalShamanToken extends Token {
toughness = new MageInt(1);
}
public ElementalShamanToken(final ElementalShamanToken token) {
super(token);
}
public ElementalShamanToken copy() {
return new ElementalShamanToken(this);
}
}

View file

@ -40,7 +40,7 @@ import mage.constants.SubType;
*
* @author magenoxx
*/
public class ElementalToken extends Token {
public class ElementalToken extends TokenImpl {
final static private List<String> tokenImageSets = new ArrayList<>();
@ -78,4 +78,12 @@ public class ElementalToken extends Token {
if (hasHaste) this.addAbility(HasteAbility.getInstance());
}
public ElementalToken(final ElementalToken token) {
super(token);
}
public ElementalToken copy() {
return new ElementalToken(this);
}
}

View file

@ -41,7 +41,7 @@ import mage.filter.common.FilterCreatureCard;
*
* @author TheElk801
*/
public class ElephantResurgenceToken extends Token {
public class ElephantResurgenceToken extends TokenImpl {
public ElephantResurgenceToken() {
super("Elephant", "green Elephant creature token. Those creatures have \"This creature's power and toughness are each equal to the number of creature cards in its controller's graveyard.\"");
@ -58,4 +58,12 @@ public class ElephantResurgenceToken extends Token {
.setText("This creature's power and toughness are each equal to the number of creature cards in its controller's graveyard.")
));
}
public ElephantResurgenceToken(final ElephantResurgenceToken token) {
super(token);
}
public ElephantResurgenceToken copy() {
return new ElephantResurgenceToken(this);
}
}

Some files were not shown because too many files have changed in this diff Show more