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

25 lines
422 B
Swift

import Foundation
import WebSocketKit
final class DealingPlayer: AbstractPlayer {
var cards: [PlayableCard] = []
var didDouble: Bool? = nil
init(player: WaitingPlayer) {
super.init(player: player)
}
}
extension DealingPlayer: Player {
var actions: [PlayerAction] {
didDouble == nil ? [.initialDoubleCost, .noDoubleCost] : []
}
var playedCard: Card? {
nil
}
}