forked from External/mage
* 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:
parent
df98cc3e62
commit
a1da5ef437
304 changed files with 7266 additions and 5093 deletions
47
Mage/src/main/java/mage/abilities/icon/CardIconImpl.java
Normal file
47
Mage/src/main/java/mage/abilities/icon/CardIconImpl.java
Normal 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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue