public void SortHand(JGComputerPlayer player1, enuJGSortType enuJGSortType) { switch (enuJGSortType) { case enuJGSortType.Color: GetHand(player1).SortByColor(); break; case enuJGSortType.Type: GetHand(player1).SortByType(); break; case enuJGSortType.Value: GetHand(player1).SortByValue(); break; default: break; } }
public void SortByValue() { this.m_sortType = enuJGSortType.Value; m_cards.Sort(this); }
public void SortByType() { this.m_sortType = enuJGSortType.Type; m_cards.Sort(this); }
public void SortByColor() { this.m_sortType = enuJGSortType.Color; m_cards.Sort(this); }