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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBaseClasses(DeckFormat deckFormat) Gets all the classes (a list of strings) in the card catalogue.static CardgetClassCard(String heroClass) Retrieves the class card for a specified hero class.static @NotNull CardListgetClassCards(DeckFormat deckFormat) Gets a list of cards that define a class (a champion, a color and additional description or key information).static @NotNull CardgetHeroCard(String heroClass) Retrieves the hero card for a specified hero class.static booleanhasHeroClass(GameContext context, Player player, Card card, String heroClass) static Stringrandom(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:
-