Add copy() method to tokens that need it.

This commit is contained in:
LoneFox 2015-09-24 09:47:59 +03:00
parent 9d52ecef83
commit 9bedbc8821
3 changed files with 27 additions and 0 deletions

View file

@ -50,6 +50,15 @@ public class DemonToken extends Token {
availableImageSetCodes.addAll(Arrays.asList("INN", "AVR", "C14", "ORI")); availableImageSetCodes.addAll(Arrays.asList("INN", "AVR", "C14", "ORI"));
} }
public DemonToken(final DemonToken token) {
super(token);
}
@Override
public DemonToken copy() {
return new DemonToken(this);
}
@Override @Override
public void setExpansionSetCodeForImage(String code) { public void setExpansionSetCodeForImage(String code) {
super.setExpansionSetCodeForImage(code); super.setExpansionSetCodeForImage(code);

View file

@ -48,6 +48,15 @@ public class HumanToken extends Token {
availableImageSetCodes.addAll(Arrays.asList("DKA", "AVR", "FNMP")); availableImageSetCodes.addAll(Arrays.asList("DKA", "AVR", "FNMP"));
} }
public HumanToken(final HumanToken token) {
super(token);
}
@Override
public HumanToken copy() {
return new HumanToken(this);
}
@Override @Override
public void setExpansionSetCodeForImage(String code) { public void setExpansionSetCodeForImage(String code) {
super.setExpansionSetCodeForImage(code); super.setExpansionSetCodeForImage(code);

View file

@ -49,6 +49,15 @@ public class WarriorToken extends Token {
availableImageSetCodes.addAll(Arrays.asList("KTK", "DTK")); availableImageSetCodes.addAll(Arrays.asList("KTK", "DTK"));
} }
public WarriorToken(final WarriorToken token) {
super(token);
}
@Override
public WarriorToken copy() {
return new WarriorToken(this);
}
@Override @Override
public void setExpansionSetCodeForImage(String code) { public void setExpansionSetCodeForImage(String code) {
super.setExpansionSetCodeForImage(code); super.setExpansionSetCodeForImage(code);