2021-12-18 15:08:43 +01:00
|
|
|
import Foundation
|
|
|
|
|
2021-12-20 20:18:19 +01:00
|
|
|
typealias PlayerStateId = String
|
|
|
|
|
2021-12-18 15:08:43 +01:00
|
|
|
enum PlayerState: String {
|
|
|
|
|
2021-12-20 20:18:19 +01:00
|
|
|
case canDouble = "canDouble"
|
|
|
|
case didDouble = "doubled"
|
2021-12-18 15:08:43 +01:00
|
|
|
|
2021-12-20 20:18:19 +01:00
|
|
|
case isDisconnected = "offline"
|
2021-12-18 15:08:43 +01:00
|
|
|
|
2021-12-20 20:18:19 +01:00
|
|
|
case mustBid = "bidder"
|
|
|
|
case didFold = "fold"
|
|
|
|
case didBid = "bid"
|
2021-12-18 15:08:43 +01:00
|
|
|
|
2021-12-20 20:18:19 +01:00
|
|
|
case isGameSelector = "selects"
|
|
|
|
case isWeddingOfferer = "wedding"
|
|
|
|
case isCalled = "called"
|
2021-12-18 15:08:43 +01:00
|
|
|
|
2021-12-20 20:18:19 +01:00
|
|
|
case didRaise = "raised"
|
|
|
|
case leadsGame = "leads"
|
2021-12-18 15:08:43 +01:00
|
|
|
|
2021-12-20 20:18:19 +01:00
|
|
|
case isWinner = "winner"
|
|
|
|
case isLooser = "looser"
|
2021-12-18 15:08:43 +01:00
|
|
|
}
|