CardStatus

enum CardStatus(val text: String, val color: Color) : Enum<CardStatus>

Enumeration of possible status states for game cards in the lobby carousel. Each status has a display label and associated color for visual indication.

Constructors

Link copied to clipboard
private constructor(text: String, color: Color)

Entries

Link copied to clipboard

Game is empty with no players.

Link copied to clipboard

Game is waiting for additional players to join.

Link copied to clipboard

Game is full with all players present.

Link copied to clipboard

Game file is corrupted or invalid.

Link copied to clipboard

Game is currently being played.

Properties

Link copied to clipboard
val color: Color

The color associated with the status.

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

The user-facing status label.

Functions

Link copied to clipboard

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.