You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
719 B
34 lines
719 B
//
|
|
// Player.swift
|
|
// DouShouQiIOS
|
|
//
|
|
// Created by Pierre FERREIRA on 13/05/2024.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
///! Ancienne classe, supprimée suite à la mise en place de la librairie DouShouQiModel
|
|
|
|
/// Représente un joueur
|
|
/*
|
|
public class Player {
|
|
public let id: String
|
|
public let name: String
|
|
public let sname: String
|
|
public let age: Int
|
|
|
|
/// Initialise un joueur
|
|
public init?(withName name: String, andSName sname: String, andId id: String, andAge age : Int){
|
|
// Vérification de la validité de l'identifiant
|
|
guard id != "" else {
|
|
return nil
|
|
}
|
|
|
|
self.id = id
|
|
self.name = name
|
|
self.sname = sname
|
|
self.age = age
|
|
}
|
|
}
|
|
*/
|