コード例 #1
0
ファイル: Tournament.cs プロジェクト: Eraac/TP-Gladiator
        private static int compareTeamByVictory(Team a, Team b)
        {
            float aVictory = a.pourcentageVictory();
            float bVictory = b.pourcentageVictory();

            if (aVictory > bVictory) {
                return 1;
            } else if (bVictory > aVictory) {
                return -1;
            } else {
                return 0;
            }
        }
コード例 #2
0
ファイル: Pool.cs プロジェクト: Eraac/TP-Gladiator
 public Pool(Team teamA, Team teamB)
 {
     this._teamA = teamA;
     this._teamB = teamB;
 }
コード例 #3
0
ファイル: Player.cs プロジェクト: Eraac/TP-Gladiator
        public bool addTeam(Team team)
        {
            int count = this._teams.Count;

            if (count >= NB_TEAM_MAX_PER_PLAYER)
            {
                return false;
            }

            this._teams.Add(team);

            return true;
        }