예제 #1
0
    /**
     * 返回陌生人列表
     * @param strangerData 服务器返回数据
     */
    public void GC_STRANGER_LIST(InputMessage data)
    {
        int       i, size;
        ArrayList strangerData = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            StrangerData strangerData_Datas = new StrangerData();
            strangerData_Datas.userId    = data.GetLong();
            strangerData_Datas.img       = data.GetString();   //头像图片
            strangerData_Datas.name      = data.GetString();   //名字
            strangerData_Datas.level     = data.GetInt();      //玩家等级
            strangerData_Datas.sex       = data.GetInt();      //性别
            strangerData_Datas.countries = data.GetString();   //国籍
            strangerData_Datas.vipLevel  = data.GetInt();      //VIP等级
            strangerData_Datas.isRequest = data.GetInt();      //是否已经申请添加好友 0:未申请,1:已申请
            strangerData.Add(strangerData_Datas);
        }
        RelationHandler.Instance().GC_STRANGER_LIST(strangerData);
    }
예제 #2
0
    /**
     * 发三张公共牌
     * @param cardList 公共牌
     */
    public void GC_TEXAS_FLOP(InputMessage data)
    {
        int       i, size;
        ArrayList cardList = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            int cardList_Datas = data.GetInt();
            cardList.Add(cardList_Datas);
        }
        TexasHandler.Instance().GC_TEXAS_FLOP(cardList);
    }
예제 #3
0
    /**
     * 德州分池
     * @param sidePoolList 边池列表
     */
    public void GC_TEXAS_SIDE_POOL(InputMessage data)
    {
        int       i, size;
        ArrayList sidePoolList = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            int sidePoolList_Datas = data.GetInt();
            sidePoolList.Add(sidePoolList_Datas);
        }
        TexasHandler.Instance().GC_TEXAS_SIDE_POOL(sidePoolList);
    }
예제 #4
0
    /**
     * 响应客户端请求读取邮件
     * @param mailId 邮件id
     * @param mailKind 邮件类型
     * @param content 邮件内容
     * @param receiveTime 接收时间
     * @param promptMessage 提示信息
     * @param isDealWith 是否已经处理过好友申请
     * @param hasAttachment 是否有奖品未领取
     * @param randReward 邮件奖励
     */
    public void GC_READ_MAIL(InputMessage data)
    {
        int       i, size;
        long      mailId        = data.GetLong();
        int       mailKind      = data.GetInt();
        string    content       = data.GetString();
        long      receiveTime   = data.GetLong();
        string    promptMessage = data.GetString();
        int       isDealWith    = data.GetInt();
        int       hasAttachment = data.GetInt();
        ArrayList randReward    = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            RandRewardData randReward_Datas = new RandRewardData();
            randReward_Datas.rewardId    = data.GetInt();         //奖励id
            randReward_Datas.rewardCount = data.GetInt();         //奖励数量
            randReward.Add(randReward_Datas);
        }
        MailHandler.Instance().GC_READ_MAIL(mailId, mailKind, content, receiveTime, promptMessage, isDealWith, hasAttachment, randReward);
    }
예제 #5
0
    /**
     * 服务器更新邮件列表,显示新邮件
     * @param mailKind 邮件类型
     * @param mailId 邮件id
     * @param mailInfoData 邮件详细信息
     */
    public void GC_UPDATE_MAIL_LIST(InputMessage data)
    {
        int          mailKind     = data.GetInt();
        long         mailId       = data.GetLong();
        MailInfoData mailInfoData = new MailInfoData();

        mailInfoData.mailId        = data.GetLong();   //邮件id
        mailInfoData.sendId        = data.GetLong();   //发件角色id
        mailInfoData.sendName      = data.GetString(); //发件角色名称
        mailInfoData.receiveId     = data.GetLong();   //收件角色id
        mailInfoData.receiveName   = data.GetString(); //收件角色名称
        mailInfoData.gold          = data.GetLong();   //前端展示的 金币数量
        mailInfoData.mailCdTime    = data.GetLong();   //邮件还有多长时间过期
        mailInfoData.hasAttachment = data.GetInt();    //是否有奖品未领取
        mailInfoData.mailStatus    = data.GetInt();    //邮件状态
        mailInfoData.mailTitle     = data.GetString(); //邮件标题
        mailInfoData.mailCreatTime = data.GetLong();   //邮件发送时间
        mailInfoData.isFriendSend  = data.GetInt();    //是否是好友发送的    0:是,1:否
        mailInfoData.vipLevel      = data.GetInt();    //vip等级
        mailInfoData.headName      = data.GetString(); //头像
        MailHandler.Instance().GC_UPDATE_MAIL_LIST(mailKind, mailId, mailInfoData);
    }
예제 #6
0
    /**
     * 签到
     * @param dayList 签到天数
     */
    public void GC_SIGN_IN_INFO_DATA(InputMessage data)
    {
        int       i, size;
        ArrayList dayList = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            int dayList_Datas = data.GetInt();
            dayList.Add(dayList_Datas);
        }
        SigninHandler.Instance().GC_SIGN_IN_INFO_DATA(dayList);
    }
    /**
     * 跑马灯
     * @param langId 多语言key
     * @param paramsList 参数
     */
    public void GC_NOTICE_INFO_DATA_MULTI(InputMessage data)
    {
        int       i, size;
        int       langId     = data.GetInt();
        ArrayList paramsList = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            string paramsList_Datas = data.GetString();
            paramsList.Add(paramsList_Datas);
        }
        NoticeHandler.Instance().GC_NOTICE_INFO_DATA_MULTI(langId, paramsList);
    }
예제 #8
0
    /**
     * 排行
     * @param start 开始位置(包括)
     * @param end 结束位置(包括)
     * @param rankListData 排行数据
     */
    public void GC_RANK_LIST(InputMessage data)
    {
        int       i, size;
        int       start        = data.GetInt();
        int       end          = data.GetInt();
        ArrayList rankListData = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            RankListData rankListData_Datas = new RankListData();
            rankListData_Datas.countries = data.GetString();    //国籍
            rankListData_Datas.userId    = data.GetLong();
            rankListData_Datas.name      = data.GetString();    //名字
            rankListData_Datas.img       = data.GetString();    //头像
            rankListData_Datas.level     = data.GetInt();       //玩家等级
            rankListData_Datas.win       = data.GetLong();
            rankListData_Datas.rank      = data.GetInt();       //排名
            rankListData_Datas.vipLevel  = data.GetInt();       //VIP等级
            rankListData.Add(rankListData_Datas);
        }
        RanknewHandler.Instance().GC_RANK_LIST(start, end, rankListData);
    }
예제 #9
0
    /**
     * 玩家进入老虎机获取其他人信息
     * @param humanBroadcastInfo 房间玩家列表
     */
    public void GC_SLOT_ROOM1(InputMessage data)
    {
        int       i, size;
        ArrayList humanBroadcastInfo = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            HumanBroadcastInfo humanBroadcastInfo_Datas = new HumanBroadcastInfo();
            humanBroadcastInfo_Datas.playerId  = data.GetLong();
            humanBroadcastInfo_Datas.img       = data.GetString();     //图片
            humanBroadcastInfo_Datas.level     = data.GetInt();        //等级
            humanBroadcastInfo_Datas.countries = data.GetString();     //国籍
            humanBroadcastInfo_Datas.gold      = data.GetLong();
            humanBroadcastInfo_Datas.name      = data.GetString();     //名字
            humanBroadcastInfo_Datas.giftId    = data.GetInt();        //礼品的ID没有就是0
            humanBroadcastInfo_Datas.isRequest = data.GetInt();        //是否已经申请添加好友 0:未申请,1:已申请
            humanBroadcastInfo_Datas.vipLevel  = data.GetInt();        //用户vip的等级
            humanBroadcastInfo_Datas.girlFlag  = data.GetInt();        //用户性别 1:男,2:女
            humanBroadcastInfo.Add(humanBroadcastInfo_Datas);
        }
        HumanHandler.Instance().GC_SLOT_ROOM1(humanBroadcastInfo);
    }
예제 #10
0
    /**
     * 德州结算
     * @param playerList 玩家列表
     * @param settlePoolList 边池获胜列表
     */
    public void GC_TEXAS_SETTLE(InputMessage data)
    {
        int       i, size;
        ArrayList playerList = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            TexasRoomPlayerSettleCardsInfoData playerList_Datas = new TexasRoomPlayerSettleCardsInfoData();
            playerList_Datas.pos         = data.GetInt();    //玩家位置
            playerList_Datas.cardListStr = data.GetString(); //手牌
            playerList_Datas.firstCard   = data.GetInt();    //第一张牌
            playerList_Datas.secondCard  = data.GetInt();    //第二张牌
            playerList.Add(playerList_Datas);
        }
        ArrayList settlePoolList = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            TexasPoolSettleInfoData settlePoolList_Datas = new TexasPoolSettleInfoData();
            int       settlePoolList_j;
            ArrayList settlePoolList_winnerList     = new ArrayList();
            int       settlePoolList_winnerListSize = data.GetShort();
            for (settlePoolList_j = 0; settlePoolList_j < settlePoolList_winnerListSize; settlePoolList_j++)
            {
                TexasRoomPlayerSettleInfoData settlePoolList_winnerList_Datas = new TexasRoomPlayerSettleInfoData();
                settlePoolList_winnerList_Datas.pos          = data.GetInt();               //玩家位置
                settlePoolList_winnerList_Datas.winBet       = data.GetLong();              //赢得筹码
                settlePoolList_winnerList_Datas.handCardType = data.GetInt();               //手牌类型
                settlePoolList_winnerList.Add(settlePoolList_winnerList_Datas);
            }
            settlePoolList_Datas.winnerList = settlePoolList_winnerList;
            settlePoolList.Add(settlePoolList_Datas);
        }
        TexasHandler.Instance().GC_TEXAS_SETTLE(playerList, settlePoolList);
    }
예제 #11
0
    /**
     * 适合自己等级游戏的彩金
     * @param jackpotfitLevelData 适合自己等级游戏彩金
     */
    public void GC_JACKPOT_LEVEL_DATA(InputMessage data)
    {
        int       i, size;
        ArrayList jackpotfitLevelData = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            JackpotfitLevelData jackpotfitLevelData_Datas = new JackpotfitLevelData();
            jackpotfitLevelData_Datas.gameType = data.GetInt();            //游戏类型 百家乐 1 德州扑克 2 老虎机 classic:3  老虎机 四大美人:4 老虎机 水果:5
            jackpotfitLevelData_Datas.jackpot  = data.GetLong();
            jackpotfitLevelData.Add(jackpotfitLevelData_Datas);
        }
        LobbyHandler.Instance().GC_JACKPOT_LEVEL_DATA(jackpotfitLevelData);
    }
예제 #12
0
    /**
     * 等级礼包 (多个同时展示)
     * @param levelMoreGiftData 类型-数量
     */
    public void GC_LEVEL_GIFT_MORE(InputMessage data)
    {
        int       i, size;
        ArrayList levelMoreGiftData = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            LevelMoreGiftData levelMoreGiftData_Datas = new LevelMoreGiftData();
            levelMoreGiftData_Datas.giftType  = data.GetInt();           //奖励类型
            levelMoreGiftData_Datas.rewardNum = data.GetLong();
            levelMoreGiftData.Add(levelMoreGiftData_Datas);
        }
        HumanHandler.Instance().GC_LEVEL_GIFT_MORE(levelMoreGiftData);
    }
예제 #13
0
    /**
     * 服务器给客户端下发人物全信息
     * @param human 玩家
     */
    public void GC_HUMAN_DETAIL_INFO(InputMessage data)
    {
        HumanInfoData human = new HumanInfoData();

        human.roleId     = data.GetLong();   //人物角色UUID
        human.name       = data.GetString(); //名字
        human.sex        = data.GetInt();    //性别
        human.level      = data.GetLong();   //级别
        human.vipLevel   = data.GetLong();   //VIP 等级
        human.diamond    = data.GetLong();   //钻石
        human.gold       = data.GetLong();   //金币
        human.curExp     = data.GetLong();   //经验
        human.maxExp     = data.GetLong();   //经验上限
        human.charm      = data.GetLong();   //魅力值
        human.sceneId    = data.GetInt();    //当前所在城镇ID
        human.gvfirst    = data.GetString(); //gameview首次充值记录
        human.newguide   = data.GetString(); //0 大礼包 1 百家乐 2 德州 3 老虎
        human.watchNum   = data.GetInt();    //视频观看次数
        human.countries  = data.GetString(); //国籍
        human.integral   = data.GetLong();   //排行榜积分
        human.newGuyGift = data.GetInt();    //新手大礼包:1已购买,0 未购买
        human.todayView  = data.GetInt();    //1 当天已经显示,0 当天未显示
        HumanHandler.Instance().GC_HUMAN_DETAIL_INFO(human);
    }
예제 #14
0
    /**
     * 德州结算经验广播
     * @param texasRoomExp 玩家经验列表
     */
    public void GC_HUMAN_TEXAS_EXP(InputMessage data)
    {
        int       i, size;
        ArrayList texasRoomExp = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            TexasRoomExp texasRoomExp_Datas = new TexasRoomExp();
            texasRoomExp_Datas.playerId = data.GetLong();
            texasRoomExp_Datas.exp      = data.GetInt();       //增加经验
            texasRoomExp.Add(texasRoomExp_Datas);
        }
        TexasHandler.Instance().GC_HUMAN_TEXAS_EXP(texasRoomExp);
    }
예제 #15
0
    /**
     * 德州房间类型列表
     * @param roomTypeList 房间类型列表
     */
    public void GC_TEXAS_LIST(InputMessage data)
    {
        int       i, size;
        ArrayList roomTypeList = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            TexasRoomTypeInfoData roomTypeList_Datas = new TexasRoomTypeInfoData();
            roomTypeList_Datas.typeId     = data.GetInt();      //房间类型id
            roomTypeList_Datas.roomTag    = data.GetInt();      //房间标签
            roomTypeList_Datas.openUp     = data.GetInt();      //开启
            roomTypeList_Datas.smallBlind = data.GetInt();      //小盲注
            roomTypeList_Datas.minCarry   = data.GetInt();      //最小携带量
            roomTypeList_Datas.maxCarry   = data.GetInt();      //最大携带量
            roomTypeList_Datas.roomNum    = data.GetInt();      //人数
            roomTypeList_Datas.totalNum   = data.GetInt();      //总人数
            roomTypeList_Datas.openLv     = data.GetInt();      //进入等级
            roomTypeList_Datas.list       = data.GetInt();      //显示类型 1 2 3 4
            roomTypeList_Datas.handsel    = data.GetLong();
            roomTypeList.Add(roomTypeList_Datas);
        }
        TexasHandler.Instance().GC_TEXAS_LIST(roomTypeList);
    }
예제 #16
0
    /**
     * 功能
     * @param img 图片
     * @param leftTime 剩余时间
     * @param functionType 类型  1 筹码   2 物品  3 礼包  4 功能性付费
     */
    public void GC_FUNCTION_LEFT_TIME(InputMessage data)
    {
        int       i, size;
        string    img          = data.GetString();
        long      leftTime     = data.GetLong();
        ArrayList functionType = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            int functionType_Datas = data.GetInt();
            functionType.Add(functionType_Datas);
        }
        ActivityHandler.Instance().GC_FUNCTION_LEFT_TIME(img, leftTime, functionType);
    }
    /**
     * 玩家明灯
     * @param lightDataList 明灯信息
     */
    public void GC_BACCART_LIGHT(InputMessage data)
    {
        int       i, size;
        ArrayList lightDataList = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            BaccartLightData lightDataList_Datas = new BaccartLightData();
            lightDataList_Datas.continueWin = data.GetInt();            //连胜次数
            lightDataList_Datas.minWins     = data.GetLong();
            lightDataList_Datas.playerId    = data.GetLong();
            lightDataList.Add(lightDataList_Datas);
        }
        BaccartHandler.Instance().GC_BACCART_LIGHT(lightDataList);
    }
    /**
     * 百家乐下注
     * @param playerId 玩家id
     * @param betDataList 下注列表
     */
    public void GC_BACCART_BET(InputMessage data)
    {
        int       i, size;
        long      playerId    = data.GetLong();
        ArrayList betDataList = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            BaccartBetData betDataList_Datas = new BaccartBetData();
            betDataList_Datas.betType = data.GetInt();            //押注类型
            betDataList_Datas.betNum  = data.GetLong();
            betDataList.Add(betDataList_Datas);
        }
        BaccartHandler.Instance().GC_BACCART_BET(playerId, betDataList);
    }
    /**
     * 玩家加入
     * @param playerDataList 玩家信息列表
     * @param pearlRoadDataList 珠盘路
     * @param betDataList 下注信息
     * @param roomState 房间状态
     * @param jackpot jackpot
     * @param roomId 房间id
     * @param remainCards 剩余牌数
     * @param remainTime 剩余时间
     */
    public void GC_BACCART_JOIN(InputMessage data)
    {
        int       i, size;
        ArrayList playerDataList = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            BaccartPlayerData playerDataList_Datas = new BaccartPlayerData();
            playerDataList_Datas.playerId = data.GetLong();
            playerDataList_Datas.name     = data.GetString();    //名字
            playerDataList_Datas.img      = data.GetString();    //图像
            playerDataList_Datas.gold     = data.GetLong();
            playerDataList_Datas.vip      = data.GetInt();       //vip
            playerDataList_Datas.pos      = data.GetInt();       //位置
            playerDataList.Add(playerDataList_Datas);
        }
        ArrayList pearlRoadDataList = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            PearlRoadData pearlRoadDataList_Datas = new PearlRoadData();
            pearlRoadDataList_Datas.baccartPair   = data.GetInt();          //百家乐对子
            pearlRoadDataList_Datas.baccartResult = data.GetInt();          //百家乐结果
            pearlRoadDataList.Add(pearlRoadDataList_Datas);
        }
        ArrayList betDataList = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            BaccartBetData betDataList_Datas = new BaccartBetData();
            betDataList_Datas.betType = data.GetInt();            //押注类型
            betDataList_Datas.betNum  = data.GetLong();
            betDataList.Add(betDataList_Datas);
        }
        int  roomState   = data.GetInt();
        long jackpot     = data.GetLong();
        int  roomId      = data.GetInt();
        int  remainCards = data.GetInt();
        long remainTime  = data.GetLong();

        BaccartHandler.Instance().GC_BACCART_JOIN(playerDataList, pearlRoadDataList, betDataList, roomState, jackpot, roomId, remainCards, remainTime);
    }
예제 #20
0
    /**
     * 免费返回
     * @param point 转盘停留位置
     * @param loginPoint 登陆进度
     * @param dailyReward 每日奖励
     * @param vipReward VIP奖励
     * @param friendReward 好友奖励
     * @param levelReward 等级奖励
     */
    public void GC_SPIN_ZHUANPAN_FREE(InputMessage data)
    {
        int point        = data.GetInt();
        int loginPoint   = data.GetInt();
        int dailyReward  = data.GetInt();
        int vipReward    = data.GetInt();
        int friendReward = data.GetInt();
        int levelReward  = data.GetInt();

        LuckyspinHandler.Instance().GC_SPIN_ZHUANPAN_FREE(point, loginPoint, dailyReward, vipReward, friendReward, levelReward);
    }
예제 #21
0
    /**
     * 用于发送符号数值改变消息
     * @param roleType 角色类型
     * @param roleUUID 角色UUID
     * @param properties 所有变化的符号值
     */
    public void GC_ROLE_SYMBOL_CHANGED_LONG(InputMessage data)
    {
        int       i, size;
        int       roleType   = data.GetShort();
        long      roleUUID   = data.GetLong();
        ArrayList properties = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            KeyValuePairIntData properties_Datas = new KeyValuePairIntData();
            properties_Datas.key   = data.GetInt();          //符号索引
            properties_Datas.value = data.GetLong();
            properties.Add(properties_Datas);
        }
        HumanHandler.Instance().GC_ROLE_SYMBOL_CHANGED_LONG(roleType, roleUUID, properties);
    }
예제 #22
0
    /**
     * 活动进度数据
     * @param humanActivitySmallData 活动进度数据
     */
    public void GC_HUNAMN_PROGRESS_SINGLE(InputMessage data)
    {
        HumanActivitySmallData humanActivitySmallData = new HumanActivitySmallData();
        int j;

        humanActivitySmallData.activityId = data.GetLong();        //活动id
        ArrayList smallValue     = new ArrayList();
        int       smallValueSize = data.GetShort();

        for (j = 0; j < smallValueSize; j++)
        {
            int smallValue_Datas = data.GetInt();            //活动完成进度数据
            smallValue.Add(smallValue_Datas);
        }
        humanActivitySmallData.smallValue = smallValue;
        ActivityHandler.Instance().GC_HUNAMN_PROGRESS_SINGLE(humanActivitySmallData);
    }
예제 #23
0
    /**
     * 用户活动奖励列表更新
     * @param humanSimpleRewardInfoData 活动奖励信息
     */
    public void GC_UPDATE_HUMAN_ACTIVITY_REWARD(InputMessage data)
    {
        HumanSimpleRewardInfoData humanSimpleRewardInfoData = new HumanSimpleRewardInfoData();
        int j;

        humanSimpleRewardInfoData.activityId = data.GetLong();        //活动id
        ArrayList stateListist     = new ArrayList();
        int       stateLististSize = data.GetShort();

        for (j = 0; j < stateLististSize; j++)
        {
            int stateListist_Datas = data.GetInt();            //活动领取状态数据
            stateListist.Add(stateListist_Datas);
        }
        humanSimpleRewardInfoData.stateListist = stateListist;
        ActivityHandler.Instance().GC_UPDATE_HUMAN_ACTIVITY_REWARD(humanSimpleRewardInfoData);
    }
예제 #24
0
    /**
     * 获取 成就 返回
     * @param bazooAchieveInfo 任务列表
     */
    public void GC_BAZOO_ACHIEVE(InputMessage data)
    {
        int       i, size;
        ArrayList bazooAchieveInfo = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            BazooAchieveInfo bazooAchieveInfo_Datas = new BazooAchieveInfo();
            bazooAchieveInfo_Datas.bigtype      = data.GetInt();      //大的分类:1:胜利者,2:实践家,3:资本家
            bazooAchieveInfo_Datas.modeType     = data.GetInt();      //吹牛 的类型 0:不区分模式, 1:吹牛,2:牛牛,3:梭哈
            bazooAchieveInfo_Datas.wayOfPlay    = data.GetInt();      //小的分类:1:胜场数,2:连胜数,3:玩的局数,4:钱数,5:段位数
            bazooAchieveInfo_Datas.condition    = data.GetInt();      //应该满足的 条件
            bazooAchieveInfo_Datas.rewardNum    = data.GetInt();      //应当给予的奖励
            bazooAchieveInfo_Datas.finishVlaues = data.GetInt();      //用户完成次数 或者 金币
            bazooAchieveInfo_Datas.isFinish     = data.GetInt();      //是否完成 0:未完成,1:已完成
            bazooAchieveInfo_Datas.nameId       = data.GetInt();      //名称ID
            bazooAchieveInfo_Datas.descrip      = data.GetInt();      //描述ID
            bazooAchieveInfo_Datas.icon         = data.GetString();   //图标
            bazooAchieveInfo.Add(bazooAchieveInfo_Datas);
        }
        BazooachieveHandler.Instance().GC_BAZOO_ACHIEVE(bazooAchieveInfo);
    }
예제 #25
0
    /**
     * 排行榜返回
     * @param humanRankInfo 排行榜 人物信息
     */
    public void GC_BAZOO_RANK_REQUEST(InputMessage data)
    {
        int       i, size;
        ArrayList humanRankInfo = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            HumanRankInfo humanRankInfo_Datas = new HumanRankInfo();
            humanRankInfo_Datas.passportId = data.GetLong();
            humanRankInfo_Datas.vip        = data.GetInt();     //vip等级
            humanRankInfo_Datas.name       = data.GetString();  //名称
            humanRankInfo_Datas.headImg    = data.GetString();  //头像
            humanRankInfo_Datas.gold       = data.GetLong();
            humanRankInfo.Add(humanRankInfo_Datas);
        }
        BazoorankHandler.Instance().GC_BAZOO_RANK_REQUEST(humanRankInfo);
    }
예제 #26
0
    /**
     * 最高彩金获得者前20位
     * @param jackpotList 彩金获得者数据
     */
    public void GC_JACKPOT_LIST_DATA(InputMessage data)
    {
        int       i, size;
        ArrayList jackpotList = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            JackpotList jackpotList_Datas = new JackpotList();
            jackpotList_Datas.userId   = data.GetLong();
            jackpotList_Datas.img      = data.GetString();       //头像图片
            jackpotList_Datas.name     = data.GetString();       //名字
            jackpotList_Datas.jackpot  = data.GetLong();
            jackpotList_Datas.gameType = data.GetInt();          //游戏类型 百家乐 1 德州扑克 2 老虎机 classic:3  老虎机 四大美人:4 老虎机 水果:5
            jackpotList.Add(jackpotList_Datas);
        }
        LobbyHandler.Instance().GC_JACKPOT_LIST_DATA(jackpotList);
    }
예제 #27
0
    /**
     * 俱乐部搜索结果
     * @param list 俱乐部搜索结果
     */
    public void GC_CLUB_SEARCH_RESULT(InputMessage data)
    {
        int       i, size;
        ArrayList list = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            ClubListUnit list_Datas = new ClubListUnit();
            list_Datas.clubId   = data.GetString();    //俱乐部id
            list_Datas.ico      = data.GetInt();       //图标id
            list_Datas.name     = data.GetString();    //名字
            list_Datas.type     = data.GetInt();       //类型
            list_Datas.level    = data.GetInt();       //等级
            list_Datas.limit    = data.GetInt();       //限制
            list_Datas.num      = data.GetInt();       //人数
            list_Datas.maxNum   = data.GetInt();       //最大人数
            list_Datas.huoyue   = data.GetInt();       //活跃度
            list_Datas.gongxian = data.GetInt();       //贡献
            list_Datas.applied  = data.GetInt();       //是否申请过  申请过: 1
            list.Add(list_Datas);
        }
        ClubHandler.Instance().GC_CLUB_SEARCH_RESULT(list);
    }
예제 #28
0
    /**
     * 返回两个boss信息
     * @param bossInfoData boss的信息
     * @param lastWinHumanData 上次boss Winner
     */
    public void GC_GET_BOSS_INFO(InputMessage data)
    {
        int       i, size;
        ArrayList bossInfoData = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            BossInfoData bossInfoData_Datas = new BossInfoData();
            bossInfoData_Datas.nameId        = data.GetInt();    //多语言ID
            bossInfoData_Datas.descrip       = data.GetInt();    //描述
            bossInfoData_Datas.beKilled      = data.GetInt();    //是否被杀
            bossInfoData_Datas.bossType      = data.GetInt();    //boss类型
            bossInfoData_Datas.changingBlood = data.GetLong();
            bossInfoData_Datas.blood         = data.GetInt();    //基础血量
            bossInfoData_Datas.increaseBlood = data.GetLong();
            bossInfoData_Datas.rewardNum1    = data.GetInt();    //奖励类型1
            bossInfoData_Datas.rewardNum2    = data.GetInt();    //奖励类型2
            bossInfoData_Datas.startTime     = data.GetLong();
            bossInfoData_Datas.continueTime  = data.GetLong();
            bossInfoData_Datas.endTime       = data.GetLong();
            bossInfoData.Add(bossInfoData_Datas);
        }
        ArrayList lastWinHumanData = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            LastWinHumanData lastWinHumanData_Datas = new LastWinHumanData();
            lastWinHumanData_Datas.level           = data.GetLong();
            lastWinHumanData_Datas.vipLevel        = data.GetInt();    //vip等级
            lastWinHumanData_Datas.userId          = data.GetLong();
            lastWinHumanData_Datas.country         = data.GetString(); //国家
            lastWinHumanData_Datas.head            = data.GetString(); //头像
            lastWinHumanData_Datas.name            = data.GetString(); //名称
            lastWinHumanData_Datas.attackTotalGold = data.GetLong();
            lastWinHumanData.Add(lastWinHumanData_Datas);
        }
        WorldbossHandler.Instance().GC_GET_BOSS_INFO(bossInfoData, lastWinHumanData);
    }
예제 #29
0
    /**
     * 获取俱乐留申请
     * @param opType 类型 0 all  1 增加  2 删除
     * @param list 申请列表
     */
    public void GC_CLUB_APPLY_LIST(InputMessage data)
    {
        int       i, size;
        int       opType = data.GetInt();
        ArrayList list   = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            ClubApplyUnit list_Datas = new ClubApplyUnit();
            list_Datas.playerId   = data.GetLong();
            list_Datas.playerName = data.GetString();     //申请人名字
            list_Datas.img        = data.GetString();     //头像
            list_Datas.country    = data.GetString();     //国籍
            list_Datas.level      = data.GetLong();
            list_Datas.time       = data.GetLong();
            list.Add(list_Datas);
        }
        ClubHandler.Instance().GC_CLUB_APPLY_LIST(opType, list);
    }
예제 #30
0
    /**
     * 进入老虎机后的第一个页面展示的 四个阶段的 彩金数
     * @param jackpotNum 《第几个》--不同的等级对应的最大彩金数,有几个传几个,(配置中可以关闭不同等级的彩金,然以就不显示)
     * @param jackpot 不同的等级对应的最大彩金数,有几个传几个,(配置中可以关闭不同等级的彩金,然以就不显示)
     */
    public void GC_SLOT_NEW_JACKPOTS(InputMessage data)
    {
        int       i, size;
        ArrayList jackpotNum = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            int jackpotNum_Datas = data.GetInt();
            jackpotNum.Add(jackpotNum_Datas);
        }
        ArrayList jackpot = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            long jackpot_Datas = data.GetLong();
            jackpot.Add(jackpot_Datas);
        }
        LobbyHandler.Instance().GC_SLOT_NEW_JACKPOTS(jackpotNum, jackpot);
    }