public static GameDetailInfo parseGameInfo(GameId gameId, int index, GMUser user)
    {
        MoneyItemDetail item = getMoneyItem(index, user);

        if (item == null)
        {
            return(null);
        }

        object info = null;

        switch (gameId)
        {
        case GameId.baccarat:
        {
            info = parseInfoBaccarat(item.m_exInfo);
        }
        break;

        case GameId.cows:
        {
            info = parseInfoCows(item.m_exInfo, user);
        }
        break;

        case GameId.crocodile:
        {
            info = parseInfoCrocodile(item.m_exInfo);
        }
        break;

        case GameId.dice:
        {
            info = parseInfoDice(item.m_exInfo);
        }
        break;

        case GameId.fishpark:
        {
            info = parseInfoFishPark(item.m_exInfo);
        }
        break;

        case GameId.shcd:
        {
            info = parseInfoShcd(item.m_exInfo);
        }
        break;
        }
        if (info == null)
        {
            return(null);
        }

        GameDetailInfo resInfo = new GameDetailInfo();

        resInfo.m_item       = item;
        resInfo.m_detailInfo = info;
        return(resInfo);
    }
Exemplo n.º 2
0
        private void genInfoPanel(GameDetailInfo ginfo)
        {
            if (ginfo == null)
            {
                return;
            }

            MoneyItemDetail item = ginfo.m_item;
            InfoDragon      info = (InfoDragon)ginfo.m_detailInfo;

            divHead.InnerText = item.m_genTime;
            // 玩家ID
            tdPlayer.InnerText     = "玩家ID:" + item.m_playerId.ToString();
            tdIsFreeGame.InnerText = info.isFreeGame == 1 ? "是" : "否";
            tdBetMoney.InnerText   = item.m_outlay.ToString();
            genCardInfo(divResult1, info, 0);
            genCardInfo(divResult2, info, 1);
            genCardInfo(divResult3, info, 2);
            genBetTable(tableBet, info, item);;
        }
Exemplo n.º 3
0
        // 下注表
        protected void genBetTable(Table table, InfoDragon info, MoneyItemDetail item)
        {
            GMUser user = (GMUser)Session["user"];

            TableRow tr = new TableRow();

            table.Rows.Add(tr);

            int i = 0;

            for (; i < s_head.Length; i++)
            {
                TableCell td = new TableCell();
                tr.Cells.Add(td);
                td.Text = s_head[i];
            }

            for (i = 0; i < StrName.s_dragonArea.Length; i++)
            {
                int c = 0;
                m_content[c++] = StrName.s_dragonArea[i];
                m_content[c++] = info.getOdds(i).ToString();
                m_content[c++] = "";

                tr = new TableRow();
                table.Rows.Add(tr);
                for (int j = 0; j < s_head.Length; j++)
                {
                    TableCell td = new TableCell();
                    tr.Cells.Add(td);
                    td.Text = m_content[j];
                }
            }

            addStatFoot(table, item.m_income, info);
        }