예제 #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;
            }
        }
예제 #2
0
파일: JGHand.cs 프로젝트: goukenn/jbGame
 public void SortByValue()
 {
     this.m_sortType = enuJGSortType.Value;
     m_cards.Sort(this);
 }
예제 #3
0
파일: JGHand.cs 프로젝트: goukenn/jbGame
 public void SortByType()
 {
     this.m_sortType = enuJGSortType.Type;
     m_cards.Sort(this);
 }
예제 #4
0
파일: JGHand.cs 프로젝트: goukenn/jbGame
 public void SortByColor()
 {
     this.m_sortType = enuJGSortType.Color;
     m_cards.Sort(this);
 }