Schafkopf-Server/Sources/App/Model/Players/WaitingPlayer.swift

23 lines
359 B
Swift
Raw Normal View History

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