Beispiel #1
0
        public static int PokerNumTypeOf(com.morln.game.gd.command.PokerNumType numType)
        {
            switch (numType)
            {
            case com.morln.game.gd.command.PokerNumType.p2:
                return(2);

            case com.morln.game.gd.command.PokerNumType.p3:
                return(3);

            case com.morln.game.gd.command.PokerNumType.p4:
                return(4);

            case com.morln.game.gd.command.PokerNumType.p5:
                return(5);

            case com.morln.game.gd.command.PokerNumType.p6:
                return(6);

            case com.morln.game.gd.command.PokerNumType.p7:
                return(7);

            case com.morln.game.gd.command.PokerNumType.p8:
                return(8);

            case com.morln.game.gd.command.PokerNumType.p9:
                return(9);

            case com.morln.game.gd.command.PokerNumType.p10:
                return(10);

            case com.morln.game.gd.command.PokerNumType.pJ:
                return(11);

            case com.morln.game.gd.command.PokerNumType.pQ:
                return(12);

            case com.morln.game.gd.command.PokerNumType.pK:
                return(13);

            case com.morln.game.gd.command.PokerNumType.pA:
                return(14);

            case com.morln.game.gd.command.PokerNumType.pHost:
                return(15);

            case com.morln.game.gd.command.PokerNumType.pX:
                return(20);

            case com.morln.game.gd.command.PokerNumType.pD:
                return(21);

            default:
                return(0);
            }
        }
Beispiel #2
0
        public static string LabelOfSessionNumType(com.morln.game.gd.command.PokerNumType numType)
        {
            var value = PokerNumTypeOf(numType);

            return(PokerNumType.LabelOf(value));
        }