Beispiel #1
0
        public IEnumerable <Cut> CutsAtStart()
        {
            FighterRound prevRound = Previous();

            if (prevRound == null)
            {
                return(new List <Cut>());
            }
            return(prevRound.Cuts);
        }
Beispiel #2
0
        public FighterRound Next()
        {
            Round next = this.Round.Fight.Rounds.FirstOrDefault(r => r.RoundNumber == this.Round.RoundNumber + 1);

            if (next == null)
            {
                return(null);
            }
            FighterRound ret = next.FighterRounds.FirstOrDefault(fr => fr.IsFighter1 == this.IsFighter1);

            return(ret);
        }
Beispiel #3
0
        public FighterRound Previous()
        {
            Round prev = this.Round.Fight.Rounds.FirstOrDefault(r => r.RoundNumber == this.Round.RoundNumber - 1);

            if (prev == null)
            {
                return(null);
            }
            FighterRound ret = prev.FighterRounds.FirstOrDefault(fr => fr.IsFighter1 == this.IsFighter1);

            return(ret);
        }