2021-12-09 11:11:17 +01:00
|
|
|
import Foundation
|
|
|
|
import WebSocketKit
|
|
|
|
|
2021-12-18 15:08:43 +01:00
|
|
|
final class WaitingPlayer: Player {
|
2021-12-09 11:11:17 +01:00
|
|
|
|
|
|
|
var canStartGame: Bool = false
|
|
|
|
|
2021-12-18 15:08:43 +01:00
|
|
|
override var actions: [PlayerAction] {
|
2021-12-09 11:11:17 +01:00
|
|
|
canStartGame ? [.deal] : []
|
|
|
|
}
|
|
|
|
|
2021-12-18 15:08:43 +01:00
|
|
|
override var leadsGame: Bool {
|
|
|
|
get { false }
|
|
|
|
set { }
|
2021-12-09 11:11:17 +01:00
|
|
|
}
|
|
|
|
|
2021-12-18 15:08:43 +01:00
|
|
|
override var points: Int? {
|
|
|
|
get { nil }
|
|
|
|
set { }
|
2021-12-09 11:11:17 +01:00
|
|
|
}
|
2021-12-18 15:08:43 +01:00
|
|
|
|
2021-12-09 11:11:17 +01:00
|
|
|
}
|