mirror of
https://github.com/correl/mage.git
synced 2024-12-24 03:00:14 +00:00
Add copy() method to tokens that need it.
This commit is contained in:
parent
9d52ecef83
commit
9bedbc8821
3 changed files with 27 additions and 0 deletions
|
@ -50,6 +50,15 @@ public class DemonToken extends Token {
|
|||
availableImageSetCodes.addAll(Arrays.asList("INN", "AVR", "C14", "ORI"));
|
||||
}
|
||||
|
||||
public DemonToken(final DemonToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DemonToken copy() {
|
||||
return new DemonToken(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setExpansionSetCodeForImage(String code) {
|
||||
super.setExpansionSetCodeForImage(code);
|
||||
|
|
|
@ -48,6 +48,15 @@ public class HumanToken extends Token {
|
|||
availableImageSetCodes.addAll(Arrays.asList("DKA", "AVR", "FNMP"));
|
||||
}
|
||||
|
||||
public HumanToken(final HumanToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HumanToken copy() {
|
||||
return new HumanToken(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setExpansionSetCodeForImage(String code) {
|
||||
super.setExpansionSetCodeForImage(code);
|
||||
|
|
|
@ -49,6 +49,15 @@ public class WarriorToken extends Token {
|
|||
availableImageSetCodes.addAll(Arrays.asList("KTK", "DTK"));
|
||||
}
|
||||
|
||||
public WarriorToken(final WarriorToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
@Override
|
||||
public WarriorToken copy() {
|
||||
return new WarriorToken(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setExpansionSetCodeForImage(String code) {
|
||||
super.setExpansionSetCodeForImage(code);
|
||||
|
|
Loading…
Reference in a new issue