Schafkopf-Server/Sources/App/Model/Players/WaitingPlayer.swift
2021-12-09 11:11:17 +01:00

23 lines
332 B
Swift

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
}
}