mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
[refactor] removed generic parameter from MageObjectImpl
This commit is contained in:
parent
77d05d665d
commit
8679e2b3d7
3 changed files with 4 additions and 7 deletions
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue