Class Race
java.lang.Object
net.demilich.metastone.game.entities.minions.Race
The race / tribe of a card.
Cards can belong to a specific tribe by specifying a string in the CardDesc.race
field.
This previously used to be an enumeration but now is a string. Races must be all-capitals.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
hasRace
(GameContext gameContext, Entity entity, String rhs) Returnstrue
if the given race string is considered as having the racerhs
, accounting for whether or not the specification is"ALL"
,"NONE"
.
-
Field Details
-
NONE
- See Also:
-
ALL
- See Also:
-
FAE
- See Also:
-
SPIRIT
- See Also:
-
MURLOC
- See Also:
-
TOTEM
- See Also:
-
DEMON
- See Also:
-
-
Constructor Details
-
Race
public Race()
-
-
Method Details
-
hasRace
Returnstrue
if the given race string is considered as having the racerhs
, accounting for whether or not the specification is"ALL"
,"NONE"
.If
lhs
contains an ampersand-separated list of races, thelhs
counts as having both races, and can match as long asrhs
is any one of the races inlhs
.- Parameters:
gameContext
- A context that will be scanned for auras that potentially change the result of this evaluation.entity
-rhs
-- Returns:
true
iflhs
has the race specified inrhs
, including ALL.
-