TokenCard class final

A token card.

These cards are not part of the main deck, but are instead used to represent ephemeral upgrades, such as "Experience" or "Shield". Tokens do not have aspects, are treated separate from other cards with the same orderInSet and always have a cost of 0.

Inheritance
Available Extensions

Constructors

TokenCard({required CardSet cardSet, required int orderInSet, required String name, required Set<Trait> traits, int bonusPower = 0, int bonusHp = 0})
Creates a token card with the given properties.

Properties

aspects Set<Aspect>
Aspects that the card belongs to.
finalinherited
bonusHp int
Amount of health added to a unit.
finalinherited
bonusPower int
Amount of power added to a unit.
finalinherited
cardSet CardSet
The set the card belongs to.
finalinherited
cost int
The cost of the card.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
name String
The name of the card.
finalinherited
orderInSet int
Within the set, the card's number from 1 to CardSet.totalCards.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
traits Set<Trait>
Traits that the card has.
finalinherited
unique bool
Whether the card is unique.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDebugString() String
Returns a string representation of this object, suitable for debugging.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited