Area class final

A play area, representing the cards associated with and in play by a player.

Annotations
  • @immutable

Constructors

Area({required DeployedBase base, required UnitCard leader, List<PlayableCard> resources = const [], int? availableResources, List<PlayableCard> hand = const [], List<PlayableCard> deck = const [], List<PlayableCard> discard = const [], List<DeployedCard<TargetCard>> inPlay = const []})
Creates an area with the given properties.
factory

Properties

arena List<DeployedCard<TargetCard>>
Cards in play.
final
availableResources int
The number of resources available to the player.
final
base DeployedBase
The player's base.
final
deck List<PlayableCard>
Cards in the player's deck.
final
discard List<PlayableCard>
Cards in the player's discard pile.
final
hand List<PlayableCard>
Cards in the player's hand.
final
hashCode int
The hash code for this object.
no setteroverride
leader UnitCard
The player's leader, regardless of whether it is deployed.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalResources List<PlayableCard>
Cards converted to resources.
final

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.
toString() String
A string representation of this object.
inherited

Operators

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