* GUI: new reworked GUI and card render engine, card icons and dozens of other fixes (see full list in related PR);

This commit is contained in:
Oleg Agafonov 2021-01-30 16:38:55 +04:00
parent df98cc3e62
commit a1da5ef437
304 changed files with 7266 additions and 5093 deletions

View file

@ -0,0 +1,47 @@
package mage.abilities.icon;
/**
* @author JayDi85
*/
public class CardIconImpl implements CardIcon {
private final CardIconType cardIconType;
private final String text;
private final String hint;
public CardIconImpl(CardIconType cardIconType, String hint) {
this(cardIconType, hint, "");
}
public CardIconImpl(CardIconType cardIconType, String hint, String text) {
this.text = text;
this.hint = hint;
this.cardIconType = cardIconType;
}
public CardIconImpl(final CardIconImpl icon) {
this.cardIconType = icon.cardIconType;
this.text = icon.text;
this.hint = icon.hint;
}
@Override
public CardIconType getIconType() {
return cardIconType;
}
@Override
public String getText() {
return text;
}
@Override
public String getHint() {
return hint;
}
@Override
public CardIcon copy() {
return new CardIconImpl(this);
}
}