Class HeroClass
java.lang.Object
net.demilich.metastone.game.entities.heroes.HeroClass
All the hero classes, including special hero class specifiers, in Spellsource.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBaseClasses
(DeckFormat deckFormat) Gets all the classes (a list of strings) in the card catalogue.static Card
getClassCard
(String heroClass) Retrieves the class card for a specified hero class.static @NotNull CardList
getClassCards
(DeckFormat deckFormat) Gets a list of cards that define a class (a champion, a color and additional description or key information).static @NotNull Card
getHeroCard
(String heroClass) Retrieves the hero card for a specified hero class.static boolean
hasHeroClass
(GameContext context, Player player, Card card, String heroClass) static String
random
(DeckFormat deckFormat) Retrieves a random hero in the specifieddeckFormat
-
Field Details
-
INHERIT
- See Also:
-
SELF
- See Also:
-
OPPONENT
- See Also:
-
ANY
- See Also:
-
BROWN
- See Also:
-
GREEN
- See Also:
-
BLUE
- See Also:
-
GOLD
- See Also:
-
WHITE
- See Also:
-
BLACK
- See Also:
-
SILVER
- See Also:
-
VIOLET
- See Also:
-
RED
- See Also:
-
OLIVE
- See Also:
-
TEST
- See Also:
-
CORAL
- See Also:
-
COPPER
- See Also:
-
DARKBLUE
- See Also:
-
BLOOD
- See Also:
-
NAVY
- See Also:
-
CAMO
- See Also:
-
BLUEGREY
- See Also:
-
CRIMSON
- See Also:
-
MAGENTA
- See Also:
-
TWILIGHT
- See Also:
-
CANDY
- See Also:
-
PEACH
- See Also:
-
-
Constructor Details
-
HeroClass
public HeroClass()
-
-
Method Details
-
getHeroCard
Retrieves the hero card for a specified hero class.- Parameters:
heroClass
- The hero class- Returns:
- A hero card
-
getClassCard
Retrieves the class card for a specified hero class.- Parameters:
heroClass
- The hero class- Returns:
- A class card
-
getBaseClasses
Gets all the classes (a list of strings) in the card catalogue.- Parameters:
deckFormat
-- Returns:
-
getClassCards
Gets a list of cards that define a class (a champion, a color and additional description or key information).- Parameters:
deckFormat
-- Returns:
-
random
Retrieves a random hero in the specifieddeckFormat
- Parameters:
deckFormat
-- Returns:
-
hasHeroClass
- Parameters:
context
-player
-card
-heroClass
-- Returns:
-