mirror of
https://github.com/magefree/mage.git
synced 2025-12-29 23:12:10 -08:00
marked Token class as abstract and removed abstracted copy method
This commit is contained in:
parent
45724e8bf9
commit
2d922cb6af
1 changed files with 16 additions and 4 deletions
|
|
@ -49,7 +49,7 @@ import mage.players.Player;
|
||||||
import mage.util.RandomUtil;
|
import mage.util.RandomUtil;
|
||||||
import mage.util.SubTypeList;
|
import mage.util.SubTypeList;
|
||||||
|
|
||||||
public class Token extends MageObjectImpl {
|
public abstract class Token extends MageObjectImpl {
|
||||||
|
|
||||||
protected String description;
|
protected String description;
|
||||||
private final ArrayList<UUID> lastAddedTokenIds = new ArrayList<>();
|
private final ArrayList<UUID> lastAddedTokenIds = new ArrayList<>();
|
||||||
|
|
@ -157,10 +157,22 @@ public class Token extends MageObjectImpl {
|
||||||
abilities.add(ability);
|
abilities.add(ability);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
//@Override
|
||||||
public Token copy() {
|
//public abstract Token copy();
|
||||||
|
/*{
|
||||||
return new Token(this);
|
return new Token(this);
|
||||||
}
|
}*/
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public abstract Token copy();
|
||||||
|
|
||||||
|
// public Token copy() {
|
||||||
|
// try{
|
||||||
|
// return this.getClass().getConstructor(this.getClass()).newInstance(this);
|
||||||
|
// } catch( Exception e) {
|
||||||
|
//
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
public boolean putOntoBattlefield(int amount, Game game, UUID sourceId, UUID controllerId) {
|
public boolean putOntoBattlefield(int amount, Game game, UUID sourceId, UUID controllerId) {
|
||||||
return this.putOntoBattlefield(amount, game, sourceId, controllerId, false, false);
|
return this.putOntoBattlefield(amount, game, sourceId, controllerId, false, false);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue