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

23 lines
332 B
Swift
Raw Normal View History

import Foundation
import WebSocketKit
final class WaitingPlayer: AbstractPlayer {
var canStartGame: Bool = false
}
extension WaitingPlayer: Player {
var actions: [PlayerAction] {
canStartGame ? [.deal] : []
}
var cards: [PlayableCard] {
[]
}
var playedCard: Card? {
nil
}
}