view GeoQuiz/Logic/GameProtocol.swift @ 0:413e2d21333e

first commit
author Dennis C. M. <dennis@denniscm.com>
date Tue, 20 Sep 2022 08:13:26 +0200
parents
children
line wrap: on
line source

//
//  GameProtocol.swift
//  GeoQuiz
//
//  Created by Dennis Concepción Martín on 18/9/22.
//

import Foundation

protocol Game {
    var userScore: Int { get }
    var userLives: Int { get }
    var questionCounter: Int { get }
    var alertTitle: String { get }
    var alertMessage: String { get }
    var showingBuyLivesView: Bool { get set }
    var showingNoLivesAlert: Bool { get set }
    var showingWrongAnswerAlert: Bool { get set }
    var showingEndGameAlert: Bool { get set }
    
    func askQuestion()
    func answered(userChoice: String)
    
}