mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
[refactor] removed generic parameter from Player
This commit is contained in:
parent
99854be1fb
commit
1867a150c1
12 changed files with 15 additions and 23 deletions
|
|
@ -91,9 +91,8 @@ import mage.cards.repository.ExpansionRepository;
|
|||
* suitable for two player games and some multiplayer games
|
||||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
* @param <T>
|
||||
*/
|
||||
public class ComputerPlayer<T extends ComputerPlayer<T>> extends PlayerImpl<T> implements Player {
|
||||
public class ComputerPlayer extends PlayerImpl implements Player {
|
||||
|
||||
private transient final static Logger log = Logger.getLogger(ComputerPlayer.class);
|
||||
private transient Map<Mana, Card> unplayable = new TreeMap<>();
|
||||
|
|
@ -1962,8 +1961,8 @@ public class ComputerPlayer<T extends ComputerPlayer<T>> extends PlayerImpl<T> i
|
|||
|
||||
|
||||
@Override
|
||||
public T copy() {
|
||||
return (T)new ComputerPlayer(this);
|
||||
public ComputerPlayer copy() {
|
||||
return new ComputerPlayer(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue