Ejemplo n.º 1
0
        public override bool Equals(object nemesis)
        {
            Nemesis compareToNemesis = nemesis as Nemesis;

            if (compareToNemesis == null)
            {
                return(false);
            }
            return(this.MinionPlayerId == compareToNemesis.MinionPlayerId &&
                   this.NemesisPlayerId == compareToNemesis.NemesisPlayerId &&
                   this.NumberOfGamesLost == compareToNemesis.NumberOfGamesLost &&
                   this.LossPercentage == compareToNemesis.LossPercentage);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Indicates whether the two records represent the same Minion to Nemesis relationship (regardless of the stats recorded at that time)
 /// </summary>
 public bool SameNemesis(Nemesis nemesis)
 {
     return(nemesis != null &&
            this.NemesisPlayerId == nemesis.NemesisPlayerId &&
            this.MinionPlayerId == nemesis.MinionPlayerId);
 }