forked from External/mage
[WOE] Implement Embereth Veteran
This commit is contained in:
parent
eeb0f9b7d8
commit
bd1b657e24
6 changed files with 211 additions and 0 deletions
34
Mage/src/main/java/mage/constants/RoleType.java
Normal file
34
Mage/src/main/java/mage/constants/RoleType.java
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
package mage.constants;
|
||||
|
||||
import mage.game.permanent.token.Token;
|
||||
import mage.game.permanent.token.YoungHeroRoleToken;
|
||||
|
||||
import java.util.function.Supplier;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public enum RoleType {
|
||||
YOUNG_HERO("Young Hero", YoungHeroRoleToken::new);
|
||||
|
||||
private final String name;
|
||||
private final Supplier<Token> supplier;
|
||||
|
||||
RoleType(String name, Supplier<Token> supplier) {
|
||||
this.name = name;
|
||||
this.supplier = supplier;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public Token createToken() {
|
||||
return supplier.get();
|
||||
}
|
||||
}
|
||||
|
|
@ -40,6 +40,7 @@ public enum SubType {
|
|||
CARTOUCHE("Cartouche", SubTypeSet.EnchantmentType),
|
||||
CLASS("Class", SubTypeSet.EnchantmentType),
|
||||
CURSE("Curse", SubTypeSet.EnchantmentType),
|
||||
ROLE("Role", SubTypeSet.EnchantmentType),
|
||||
RUNE("Rune", SubTypeSet.EnchantmentType),
|
||||
SAGA("Saga", SubTypeSet.EnchantmentType),
|
||||
SHARD("Shard", SubTypeSet.EnchantmentType),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue