Exemplo n.º 1
0
        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;
            }
        }
Exemplo n.º 2
0
 public void SortByValue()
 {
     this.m_sortType = enuJGSortType.Value;
     m_cards.Sort(this);
 }
Exemplo n.º 3
0
 public void SortByType()
 {
     this.m_sortType = enuJGSortType.Type;
     m_cards.Sort(this);
 }
Exemplo n.º 4
0
 public void SortByColor()
 {
     this.m_sortType = enuJGSortType.Color;
     m_cards.Sort(this);
 }