forked from External/mage
refactor: removed outdated or un-used code (part of #11873)
This commit is contained in:
parent
2aea44da2c
commit
734e2fae0f
5 changed files with 8 additions and 127 deletions
|
|
@ -1,97 +0,0 @@
|
|||
package mage.view;
|
||||
|
||||
import mage.cards.Card;
|
||||
import mage.game.command.CommandObject;
|
||||
import mage.game.permanent.token.Token;
|
||||
import mage.util.Copyable;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* TODO: delete, no needs?!
|
||||
*
|
||||
* GUI: card drawing info
|
||||
* Can be different from real card name, set code, etc - see morph, copy, etc)
|
||||
*
|
||||
* @author JayDi85
|
||||
*/
|
||||
public class CardImageView implements Serializable, Copyable<CardImageView> {
|
||||
|
||||
private boolean isTokenRepository; // card or token database
|
||||
private String cardName; // card or token
|
||||
private String setCode; // card or token
|
||||
private String cardNumber; // card only, token has "0"
|
||||
private Integer imageNumber; // token only
|
||||
private boolean isUseVariousArt; // card only
|
||||
|
||||
public CardImageView() {
|
||||
}
|
||||
|
||||
public CardImageView(final CardImageView cardImageView) {
|
||||
this.isTokenRepository = cardImageView.isTokenRepository;
|
||||
this.cardName = cardImageView.cardName;
|
||||
this.setCode = cardImageView.setCode;
|
||||
this.cardNumber = cardImageView.cardNumber;
|
||||
this.imageNumber = cardImageView.imageNumber;
|
||||
this.isUseVariousArt = cardImageView.isUseVariousArt;
|
||||
}
|
||||
|
||||
public CardImageView fromCard(Card card) {
|
||||
this.isTokenRepository = false;
|
||||
this.cardName = card.getName();
|
||||
this.setCode = card.getExpansionSetCode();
|
||||
this.cardNumber = card.getCardNumber();
|
||||
this.imageNumber = card.getImageNumber();
|
||||
this.isUseVariousArt = card.getUsesVariousArt();
|
||||
return this;
|
||||
}
|
||||
|
||||
public CardImageView fromToken(Token token) {
|
||||
this.isTokenRepository = true;
|
||||
this.cardName = token.getName();
|
||||
this.setCode = token.getExpansionSetCode();
|
||||
this.cardNumber = token.getCardNumber();
|
||||
this.imageNumber = token.getImageNumber();
|
||||
this.isUseVariousArt = false;
|
||||
return this;
|
||||
}
|
||||
|
||||
public CardImageView fromCommandObject(CommandObject commandObject) {
|
||||
this.isTokenRepository = true;
|
||||
this.cardName = commandObject.getName();
|
||||
this.setCode = commandObject.getExpansionSetCode();
|
||||
this.cardNumber = commandObject.getCardNumber();
|
||||
this.imageNumber = commandObject.getImageNumber();
|
||||
this.isUseVariousArt = false;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public CardImageView copy() {
|
||||
return new CardImageView(this);
|
||||
}
|
||||
|
||||
public boolean isTokenRepository() {
|
||||
return isTokenRepository;
|
||||
}
|
||||
|
||||
public String getCardName() {
|
||||
return cardName;
|
||||
}
|
||||
|
||||
public String getSetCode() {
|
||||
return setCode;
|
||||
}
|
||||
|
||||
public String getCardNumber() {
|
||||
return cardNumber;
|
||||
}
|
||||
|
||||
public Integer getImageNumber() {
|
||||
return imageNumber;
|
||||
}
|
||||
|
||||
public boolean isUseVariousArt() {
|
||||
return isUseVariousArt;
|
||||
}
|
||||
}
|
||||
|
|
@ -95,18 +95,6 @@ public class PermanentView extends CardView {
|
|||
}
|
||||
this.nameController = nameController;
|
||||
|
||||
// add additional info for face down permanents
|
||||
if (permanent.isFaceDown(game)) {
|
||||
//if (permanent.isManifested()) {
|
||||
// this.rules.add("A manifested creature card can be turned face up any time for it's mana cost."
|
||||
// + " A face-down card can also be turned face up for its morph cost.");
|
||||
//} else if (permanent.isMorphed()) {
|
||||
// this.rules.add("If the controller has priority, they may turn this permanent face up."
|
||||
// + " This is a special action; it doesn't use the stack. To do this they pay the morph costs,"
|
||||
// + " then turns this permanent face up.");
|
||||
//}
|
||||
}
|
||||
|
||||
// determines if shown in it's own column
|
||||
boolean attachedToPermanent = false;
|
||||
boolean attachedControllerDiffers = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue