示例#1
0
 public CublastPlayer(string name, string idFile)
 {
     this.name = name;
     this.idFile = idFile;
     this.difficultyMode = 0;
     this.isReady = false;
     this.statut = LANStatut.ROOM;
     this.points = 0;
     this.scores = 0;
 }
示例#2
0
 public CublastPlayer(string name, int vict, bool ready, string idFile)
 {
     this.name = name;
     this.idFile = idFile;
     this.victoryOnline = vict;
     this.difficultyMode = 0;
     this.isReady = ready;
     this.statut = LANStatut.ROOM;
     this.points = 0;
     this.scores = 0;
 }
    //Only server
    public bool isPlayerStatutReady(LANStatut statutAsked)
    {
        var isok = true;
        for(int i=0; i < LANManager.Instance.players.Count; i++)
        {
            if(LANManager.Instance.players.ElementAt(i).Value.statut != statutAsked)
            {
                isok = false;
                break;
            }
        }

        return isok;
    }