LudoColor

@Serializable
enum LudoColor : Enum<LudoColor>

Seat colours, in clockwise turn order, placed like the photo: blue TL, red TR, green BR, yellow BL.

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
val argb: Long
Link copied to clipboard
Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val number: Int

Seat number in reading order, as players see it: 1 top-left, 2 top-right, 3 bottom-left, 4 bottom-right.

Link copied to clipboard
Link copied to clipboard
val start: Int

First square after leaving base, as an index on the 52-square loop.

Link copied to clipboard

Functions

Link copied to clipboard
fun valueOf(value: String): LudoColor

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.