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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanhasRace(GameContext gameContext, Entity entity, String rhs) Returnstrueif 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
Returnstrueif the given race string is considered as having the racerhs, accounting for whether or not the specification is"ALL","NONE".If
lhscontains an ampersand-separated list of races, thelhscounts as having both races, and can match as long asrhsis 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:
trueiflhshas the race specified inrhs, including ALL.
-