mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00: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.SubTypeList;
|
||||
|
||||
public class Token extends MageObjectImpl {
|
||||
public abstract class Token extends MageObjectImpl {
|
||||
|
||||
protected String description;
|
||||
private final ArrayList<UUID> lastAddedTokenIds = new ArrayList<>();
|
||||
|
@ -157,10 +157,22 @@ public class Token extends MageObjectImpl {
|
|||
abilities.add(ability);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Token copy() {
|
||||
//@Override
|
||||
//public abstract Token copy();
|
||||
/*{
|
||||
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) {
|
||||
return this.putOntoBattlefield(amount, game, sourceId, controllerId, false, false);
|
||||
|
|
Loading…
Reference in a new issue