LudoPieceState enum
Lifecycle state of a single LudoPiece, per the package specification.
Values
- home → const LudoPieceState
-
Sitting in the player's home base; has not entered the board yet.
- active → const LudoPieceState
-
On the shared path, on a cell that is not a designated safe cell. Can be captured by an opponent landing on the same cell.
- safe → const LudoPieceState
-
On a designated safe cell (a start cell, a star cell, or anywhere in the piece's own colored home stretch). Cannot be captured.
- finished → const LudoPieceState
-
Has completed its journey and reached the final home cell.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
LudoPieceState> - A constant List of the values in this enum, in order of their declaration.