[refactor] removed generic parameter from MageObjectImpl

This commit is contained in:
North 2014-06-02 21:00:56 +03:00
parent 77d05d665d
commit 8679e2b3d7
3 changed files with 4 additions and 7 deletions

View file

@ -41,7 +41,7 @@ import mage.abilities.keyword.ChangelingAbility;
import mage.constants.CardType;
import mage.game.Game;
public abstract class MageObjectImpl<T extends MageObjectImpl<T>> implements MageObject {
public abstract class MageObjectImpl implements MageObject {
protected UUID objectId;
@ -57,9 +57,6 @@ public abstract class MageObjectImpl<T extends MageObjectImpl<T>> implements Mag
protected MageInt toughness;
protected boolean copy;
@Override
public abstract T copy();
public MageObjectImpl() {
this(UUID.randomUUID());
}
@ -73,7 +70,7 @@ public abstract class MageObjectImpl<T extends MageObjectImpl<T>> implements Mag
abilities = new AbilitiesImpl<>();
}
public MageObjectImpl(final MageObjectImpl<T> object) {
public MageObjectImpl(final MageObjectImpl object) {
objectId = object.objectId;
name = object.name;
manaCost = object.manaCost.copy();

View file

@ -59,7 +59,7 @@ import mage.game.command.Commander;
*
* @param <T>
*/
public abstract class CardImpl<T extends CardImpl<T>> extends MageObjectImpl<T> implements Card {
public abstract class CardImpl<T extends CardImpl<T>> extends MageObjectImpl implements Card {
private static final long serialVersionUID = 1L;
private static final Logger logger = Logger.getLogger(CardImpl.class);

View file

@ -46,7 +46,7 @@ import mage.players.Player;
import mage.util.CardUtil;
public class Token extends MageObjectImpl<Token> {
public class Token extends MageObjectImpl {
protected String description;
private UUID lastAddedTokenId;