Beispiel #1
0
 /// <summary>
 /// Compare this card to an integer.
 /// </summary>
 /// <param name="other">The integer to compare this card to.</param>
 /// <returns>0 if the integer is equal to the card's Arena Id, negative if this card's Arena Id is lower, positive if this card's Arena Id is higher</returns>
 public int CompareTo(int other)
 {
     return(ArenaId.CompareTo(other));
 }
Beispiel #2
0
 public int CompareTo(object obj)
 {
     return(ArenaId.CompareTo(((Card)obj).ArenaId));
 }
Beispiel #3
0
 /// <summary>
 /// Compare this card to another card.
 /// </summary>
 /// <param name="other">The other card to compare this card to.</param>
 /// <returns>0 if the cards have the same Arena Id, negative if this card has a lower Arena Id, positive if this card has a higher Arena Id</returns>
 public int CompareTo(Card other)
 {
     return(ArenaId.CompareTo(other.ArenaId));
 }