public override int Compare(SortObject x, SortObject y) { IRelic leftRelic = x.mObj as IRelic; IRelic rightRelic = y.mObj as IRelic; if ((leftRelic != null) && (rightRelic != null)) { return(leftRelic.Age.CompareTo(rightRelic.Age)); } Quality leftQuality = GetQuality(x.mObj); Quality rightQuality = GetQuality(y.mObj); return(leftQuality.CompareTo(rightQuality)); }
public void AddNewRelic(IRelic relic) { throw new NotImplementedException(); }
public IEnumerable<IHero> GetAllHeroes(IRelic relic) { throw new NotImplementedException(); }