Exemplo n.º 1
0
    /**
     * 德州房间信息
     * @param roomState 房间状态
     * @param publicCardList 公共牌
     * @param sidePoolList 边池
     * @param bankPos 庄家位置
     * @param currentBetterPos 当前下注位置
     */
    public void GC_TEXAS_ROOM_INFO(InputMessage data)
    {
        int       i, size;
        int       roomState      = data.GetInt();
        ArrayList publicCardList = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            int publicCardList_Datas = data.GetInt();
            publicCardList.Add(publicCardList_Datas);
        }
        ArrayList sidePoolList = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            long sidePoolList_Datas = data.GetLong();
            sidePoolList.Add(sidePoolList_Datas);
        }
        int bankPos          = data.GetInt();
        int currentBetterPos = data.GetInt();

        TexasHandler.Instance().GC_TEXAS_ROOM_INFO(roomState, publicCardList, sidePoolList, bankPos, currentBetterPos);
    }
Exemplo n.º 2
0
    /**
     * 获取成就数据返回
     * @param achievementStateData 成就完成情况
     * @param achievementsProgressData 成就进度
     */
    public void GC_ACH_INFO(InputMessage data)
    {
        int       i, size;
        ArrayList achievementStateData = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            AchievementStateData achievementStateData_Datas = new AchievementStateData();
            achievementStateData_Datas.id           = data.GetInt();  //成就ID
            achievementStateData_Datas.state        = data.GetInt();  //1 没有完成 2 已经完成但没有领取 3 已经领取
            achievementStateData_Datas.completeTime = data.GetLong();
            achievementStateData.Add(achievementStateData_Datas);
        }
        ArrayList achievementsProgressData = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            AchievementsProgressData achievementsProgressData_Datas = new AchievementsProgressData();
            achievementsProgressData_Datas.serverType = data.GetInt();          //大类型
            achievementsProgressData_Datas.smalType   = data.GetInt();          //小类型
            achievementsProgressData_Datas.value      = data.GetString();       //当前值
            achievementsProgressData.Add(achievementsProgressData_Datas);
        }
        AchievementHandler.Instance().GC_ACH_INFO(achievementStateData, achievementsProgressData);
    }
    /**
     * 百家乐下注
     * @param bankerCardList 庄家牌
     * @param playerCardList 闲家牌
     * @param pearlRoadData 珠盘路
     * @param settleDataList 赢钱列表
     */
    public void GC_BACCART_SETTLE(InputMessage data)
    {
        int       i, size;
        ArrayList bankerCardList = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            int bankerCardList_Datas = data.GetInt();
            bankerCardList.Add(bankerCardList_Datas);
        }
        ArrayList playerCardList = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            int playerCardList_Datas = data.GetInt();
            playerCardList.Add(playerCardList_Datas);
        }
        PearlRoadData pearlRoadData = new PearlRoadData();

        pearlRoadData.baccartPair   = data.GetInt();      //百家乐对子
        pearlRoadData.baccartResult = data.GetInt();      //百家乐结果
        ArrayList settleDataList = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            BaccartSettleData settleDataList_Datas = new BaccartSettleData();
            settleDataList_Datas.playerId = data.GetLong();
            settleDataList_Datas.winCoins = data.GetLong();
            settleDataList.Add(settleDataList_Datas);
        }
        BaccartHandler.Instance().GC_BACCART_SETTLE(bankerCardList, playerCardList, pearlRoadData, settleDataList);
    }
Exemplo n.º 4
0
    /**
     * 打开收集系统初始数据请求返回
     * @param itemData1 抽奖券
     * @param itemData2 碎片数量
     */
    public void GC_COLLECT_INIT(InputMessage data)
    {
        int       i, size;
        ArrayList itemData1 = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            ItemData1 itemData1_Datas = new ItemData1();
            itemData1_Datas.cardType = data.GetInt();       //1 铜 2 银 3 金
            itemData1_Datas.num      = data.GetInt();       //数量
            itemData1.Add(itemData1_Datas);
        }
        ArrayList itemData2 = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            ItemData2 itemData2_Datas = new ItemData2();
            itemData2_Datas.Itemid = data.GetInt();         //碎片物品ID
            itemData2_Datas.num    = data.GetInt();         //数量
            itemData2.Add(itemData2_Datas);
        }
        CollectHandler.Instance().GC_COLLECT_INIT(itemData1, itemData2);
    }
Exemplo n.º 5
0
    /**
     * 在线奖励
     * @param humanMiscFBInfoData 内容
     */
    public void GC_MISC_FB_INFO_DATA(InputMessage data)
    {
        HumanMiscFBInfoData humanMiscFBInfoData = new HumanMiscFBInfoData();
        int j;

        humanMiscFBInfoData.fbReward = data.GetInt();        //fb奖励
        ArrayList fbInviteList     = new ArrayList();
        int       fbInviteListSize = data.GetShort();

        for (j = 0; j < fbInviteListSize; j++)
        {
            string fbInviteList_Datas = data.GetString();            //fb邀请信息
            fbInviteList.Add(fbInviteList_Datas);
        }
        humanMiscFBInfoData.fbInviteList = fbInviteList;
        ArrayList fbInviteRewardList     = new ArrayList();
        int       fbInviteRewardListSize = data.GetShort();

        for (j = 0; j < fbInviteRewardListSize; j++)
        {
            int fbInviteRewardList_Datas = data.GetInt();            //fb邀请奖励信息
            fbInviteRewardList.Add(fbInviteRewardList_Datas);
        }
        humanMiscFBInfoData.fbInviteRewardList = fbInviteRewardList;
        humanMiscFBInfoData.fbThumb            = data.GetInt();  //fb点赞奖励 1 领取
        humanMiscFBInfoData.fbstartTime        = data.GetLong(); //fb邀请好友刷新时间
        MiscHandler.Instance().GC_MISC_FB_INFO_DATA(humanMiscFBInfoData);
    }
Exemplo n.º 6
0
    /**
     * 新手存盘点
     * @param slotElementList 元素列表
     * @param slotConnectInfoDataList 连线信息列表
     * @param rewardNum 收益
     * @param rewardSum 累计奖金
     * @param specialConnectInfoDataList 特殊连线信息列表
     */
    public void GC_SLOT_NEWBIE(InputMessage data)
    {
        int       i, size;
        ArrayList slotElementList = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            int slotElementList_Datas = data.GetInt();
            slotElementList.Add(slotElementList_Datas);
        }
        ArrayList slotConnectInfoDataList = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            NewbieSlotConnectInfoData slotConnectInfoDataList_Datas = new NewbieSlotConnectInfoData();
            int slotConnectInfoDataList_j;
            slotConnectInfoDataList_Datas.payLineId = data.GetInt();            //连线信息
            ArrayList slotConnectInfoDataList_posList     = new ArrayList();
            int       slotConnectInfoDataList_posListSize = data.GetShort();
            for (slotConnectInfoDataList_j = 0; slotConnectInfoDataList_j < slotConnectInfoDataList_posListSize; slotConnectInfoDataList_j++)
            {
                int slotConnectInfoDataList_posList_Datas = data.GetInt();                        //位置
                slotConnectInfoDataList_posList.Add(slotConnectInfoDataList_posList_Datas);
            }
            slotConnectInfoDataList_Datas.posList = slotConnectInfoDataList_posList;
            slotConnectInfoDataList_Datas.payId   = data.GetInt();          //赔率ID
            slotConnectInfoDataList.Add(slotConnectInfoDataList_Datas);
        }
        long      rewardNum = data.GetLong();
        long      rewardSum = data.GetLong();
        ArrayList specialConnectInfoDataList = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            NewbieSpecialConnectInfoData specialConnectInfoDataList_Datas = new NewbieSpecialConnectInfoData();
            int       specialConnectInfoDataList_j;
            ArrayList specialConnectInfoDataList_posList     = new ArrayList();
            int       specialConnectInfoDataList_posListSize = data.GetShort();
            for (specialConnectInfoDataList_j = 0; specialConnectInfoDataList_j < specialConnectInfoDataList_posListSize; specialConnectInfoDataList_j++)
            {
                int specialConnectInfoDataList_posList_Datas = data.GetInt();                        //位置
                specialConnectInfoDataList_posList.Add(specialConnectInfoDataList_posList_Datas);
            }
            specialConnectInfoDataList_Datas.posList = specialConnectInfoDataList_posList;
            specialConnectInfoDataList.Add(specialConnectInfoDataList_Datas);
        }
        NewbieHandler.Instance().GC_SLOT_NEWBIE(slotElementList, slotConnectInfoDataList, rewardNum, rewardSum, specialConnectInfoDataList);
    }
Exemplo n.º 7
0
    /**
     * 加入德州
     * @param playerList 玩家列表
     * @param roomType 房间类型
     * @param texasRoomEnum sng或普通房
     */
    public void GC_JOIN_TEXAS(InputMessage data)
    {
        int       i, size;
        ArrayList playerList = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            TexasRoomPlayerInfoData playerList_Datas = new TexasRoomPlayerInfoData();
            playerList_Datas.playerId    = data.GetLong();
            playerList_Datas.name        = data.GetString(); //玩家名字
            playerList_Datas.img         = data.GetString(); //玩家图片
            playerList_Datas.playerState = data.GetInt();    //玩家状态
            playerList_Datas.coins       = data.GetLong();
            playerList_Datas.vip         = data.GetInt();    //vip
            playerList_Datas.pos         = data.GetInt();    //位置
            playerList_Datas.currentBet  = data.GetLong();
            playerList_Datas.allBet      = data.GetLong();
            playerList.Add(playerList_Datas);
        }
        int roomType      = data.GetInt();
        int texasRoomEnum = data.GetInt();

        TexasHandler.Instance().GC_JOIN_TEXAS(playerList, roomType, texasRoomEnum);
    }
Exemplo n.º 8
0
    /**
     * 德州信息查询
     * @param playerId 玩家id
     * @param humanTexasSNGInfoData 德州sng信息
     * @param humanTexasInfoData 德州信息
     */
    public void GC_HUMAN_TEXAS_INFO_DATA_SEARCH(InputMessage data)
    {
        long playerId = data.GetLong();
        HumanTexasSNGInfoData humanTexasSNGInfoData = new HumanTexasSNGInfoData();

        humanTexasSNGInfoData.joinTimes = data.GetInt();      //参加数
        humanTexasSNGInfoData.goldNum   = data.GetInt();      //金牌数
        humanTexasSNGInfoData.silverNum = data.GetInt();      //银牌数
        humanTexasSNGInfoData.copperNum = data.GetInt();      //通牌数
        humanTexasSNGInfoData.weekScore = data.GetInt();      //周赢分
        HumanTexasInfoData humanTexasInfoData = new HumanTexasInfoData();
        int j;

        humanTexasInfoData.count              = data.GetInt(); //游戏数
        humanTexasInfoData.winCount           = data.GetInt(); //胜利数
        humanTexasInfoData.weekWinCoins       = data.GetInt(); //明灯数
        humanTexasInfoData.dayBiggestWinCoins = data.GetInt(); //天赢利
        ArrayList biggestHandCardList     = new ArrayList();
        int       biggestHandCardListSize = data.GetShort();

        for (j = 0; j < biggestHandCardListSize; j++)
        {
            int biggestHandCardList_Datas = data.GetInt();            //玩家最大手牌
            biggestHandCardList.Add(biggestHandCardList_Datas);
        }
        humanTexasInfoData.biggestHandCardList = biggestHandCardList;
        TexasHandler.Instance().GC_HUMAN_TEXAS_INFO_DATA_SEARCH(playerId, humanTexasSNGInfoData, humanTexasInfoData);
    }
Exemplo n.º 9
0
    /**
     * 客户端请求好友列表
     * @param friendRequestInfoDataList 玩家信息
     */
    public void GC_LOAD_FRIEND_REQUEST_LIST(InputMessage data)
    {
        int       i, size;
        ArrayList friendRequestInfoDataList = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            PlayerInfoData friendRequestInfoDataList_Datas = new PlayerInfoData();
            friendRequestInfoDataList_Datas.playerId         = data.GetLong();
            friendRequestInfoDataList_Datas.name             = data.GetString(); //名字
            friendRequestInfoDataList_Datas.img              = data.GetString(); //图片
            friendRequestInfoDataList_Datas.gold             = data.GetLong();
            friendRequestInfoDataList_Datas.diamond          = data.GetLong();
            friendRequestInfoDataList_Datas.charm            = data.GetLong();
            friendRequestInfoDataList_Datas.level            = data.GetLong();
            friendRequestInfoDataList_Datas.sex              = data.GetInt();    //性别
            friendRequestInfoDataList_Datas.viplevel         = data.GetInt();    //vip等级
            friendRequestInfoDataList_Datas.countries        = data.GetString(); //国籍
            friendRequestInfoDataList_Datas.age              = data.GetInt();    //年龄
            friendRequestInfoDataList_Datas.slotRotate       = data.GetLong();
            friendRequestInfoDataList_Datas.slotWin          = data.GetLong();
            friendRequestInfoDataList_Datas.slotSingleWin    = data.GetLong();
            friendRequestInfoDataList_Datas.slotWinNum       = data.GetLong();
            friendRequestInfoDataList_Datas.integral         = data.GetLong();
            friendRequestInfoDataList_Datas.isRequest        = data.GetInt();    //是否已经申请添加好友 0:未申请,1:已申请
            friendRequestInfoDataList_Datas.newGuyGift       = data.GetInt();    //新手大礼包:1已购买,0 未购买
            friendRequestInfoDataList_Datas.clubId           = data.GetString(); //俱乐部id,空字符串表示未加入俱乐部
            friendRequestInfoDataList_Datas.clubIco          = data.GetInt();    //俱乐部图标
            friendRequestInfoDataList_Datas.clubInvitedTimes = data.GetInt();    //被俱乐部邀请次数,0为未被邀请
            friendRequestInfoDataList_Datas.achieveRate      = data.GetString(); //无双吹牛 成就  完成个数/总个数
            friendRequestInfoDataList.Add(friendRequestInfoDataList_Datas);
        }
        RelationHandler.Instance().GC_LOAD_FRIEND_REQUEST_LIST(friendRequestInfoDataList);
    }
Exemplo n.º 10
0
    /**
     * facebook好友
     * @param friendRequestInfoData 玩家信息
     */
    public void GC_FACEBOOK_FRIENDS_SYNC(InputMessage data)
    {
        int       i, size;
        ArrayList friendRequestInfoData = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            FriendDetailInfoData friendRequestInfoData_Datas = new FriendDetailInfoData();
            friendRequestInfoData_Datas.playerId          = data.GetLong();
            friendRequestInfoData_Datas.name              = data.GetString(); //名字
            friendRequestInfoData_Datas.img               = data.GetString(); //图片
            friendRequestInfoData_Datas.giftTime          = data.GetLong();
            friendRequestInfoData_Datas.gold              = data.GetLong();
            friendRequestInfoData_Datas.level             = data.GetLong();
            friendRequestInfoData_Datas.facebook          = data.GetInt();    //facebook
            friendRequestInfoData_Datas.sex               = data.GetInt();    //性别
            friendRequestInfoData_Datas.countries         = data.GetString(); //国籍
            friendRequestInfoData_Datas.isGame            = data.GetInt();    //是否在游戏中 1 在游戏中 0 没有在
            friendRequestInfoData_Datas.playerState       = data.GetInt();    //玩家状态 1 在线 0 不在线
            friendRequestInfoData_Datas.offlineTime       = data.GetLong();
            friendRequestInfoData_Datas.vipLevel          = data.GetInt();    //VIP等级
            friendRequestInfoData_Datas.alreadyInvateClub = data.GetInt();    //是否已经邀请加入俱乐部
            friendRequestInfoData_Datas.alreadyJoinClub   = data.GetInt();    //是否已经加入俱乐部未加入: 0  已加入: 1
            friendRequestInfoData.Add(friendRequestInfoData_Datas);
        }
        RelationHandler.Instance().GC_FACEBOOK_FRIENDS_SYNC(friendRequestInfoData);
    }
Exemplo n.º 11
0
    /**
     * 刷新所有的 task列表
     * @param bazooTaskInfo 任务列表
     */
    public void GC_BAZOO_GET_REWARD(InputMessage data)
    {
        int       i, size;
        ArrayList bazooTaskInfo = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            BazooTaskInfo bazooTaskInfo_Datas = new BazooTaskInfo();
            bazooTaskInfo_Datas.taskId      = data.GetInt();       //任务ID
            bazooTaskInfo_Datas.refreshtype = data.GetInt();       //刷新类型  按天:1、按周:2、按月 等等
            bazooTaskInfo_Datas.modeType    = data.GetInt();       //吹牛 的类型 0:不区分模式, 1:吹牛,2:牛牛,3:梭哈
            bazooTaskInfo_Datas.bigType     = data.GetInt();       //大的分类:0:任务,成就:1:胜利者,2:实践家,3:资本家
            bazooTaskInfo_Datas.wayOfPlay   = data.GetInt();       //玩的方式:1:只要玩了就算,2:必须赢了才算,3:连胜
            bazooTaskInfo_Datas.condition   = data.GetInt();       //应该满足的 条件
            bazooTaskInfo_Datas.rewardNum   = data.GetInt();       //应当给予的奖励
            bazooTaskInfo_Datas.finishTimes = data.GetInt();       //用户完成次数
            bazooTaskInfo_Datas.isFinish    = data.GetInt();       //是否完成 0:未完成,1:已完成
            bazooTaskInfo_Datas.nameId      = data.GetInt();       //名称ID
            bazooTaskInfo_Datas.descrip     = data.GetInt();       //描述ID
            bazooTaskInfo_Datas.icon        = data.GetString();    //图标
            bazooTaskInfo.Add(bazooTaskInfo_Datas);
        }
        BazootaskHandler.Instance().GC_BAZOO_GET_REWARD(bazooTaskInfo);
    }
Exemplo n.º 12
0
    /**
     * 俱乐留言列表
     * @param opType 操作类型 1 全部  2 增加  3 删除   4 更新 (可能用不上)
     * @param clubNote 俱乐部留言板
     */
    public void GC_CLUB_NOTE_LIST(InputMessage data)
    {
        int       i, size;
        int       opType   = data.GetInt();
        ArrayList clubNote = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            ClubNoteUnit clubNote_Datas = new ClubNoteUnit();
            clubNote_Datas.noteId     = data.GetString();    //留言id
            clubNote_Datas.playerId   = data.GetLong();
            clubNote_Datas.playerName = data.GetString();    //玩家名字
            clubNote_Datas.img        = data.GetString();    //头像
            clubNote_Datas.guoji      = data.GetString();    //国籍
            clubNote_Datas.level      = data.GetLong();
            clubNote_Datas.noteType   = data.GetInt();       //类型 0 常规 1 礼物
            clubNote_Datas.content    = data.GetString();    //内容
            clubNote_Datas.giftId     = data.GetInt();       //礼物id
            clubNote_Datas.alreadyGet = data.GetInt();       //1已经领取 0 未领取
            clubNote_Datas.zhiwu      = data.GetInt();       //职务 1 主席  2副主席 3主管4成员
            clubNote_Datas.time       = data.GetLong();
            clubNote.Add(clubNote_Datas);
        }
        ClubHandler.Instance().GC_CLUB_NOTE_LIST(opType, clubNote);
    }
Exemplo n.º 13
0
    /**
     * 活动列表
     * @param activityDataList 活动信息
     */
    public void GC_ACTIVITY_LIST(InputMessage data)
    {
        int       i, size;
        ArrayList activityDataList = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            ActivityData activityDataList_Datas = new ActivityData();
            activityDataList_Datas.activityId  = data.GetLong();
            activityDataList_Datas.title       = data.GetString();  //标题
            activityDataList_Datas.title_cn    = data.GetString();  //中文标题
            activityDataList_Datas.title_tw    = data.GetString();  //繁体标题
            activityDataList_Datas.desc        = data.GetString();  //描述
            activityDataList_Datas.desc_cn     = data.GetString();  //中文描述
            activityDataList_Datas.desc_tw     = data.GetString();  //繁体描述
            activityDataList_Datas.hall_pic_tw = data.GetString();  //大厅图片,中文繁体
            activityDataList_Datas.hall_pic_cn = data.GetString();  //大厅图片,中文简体
            activityDataList_Datas.hall_pic    = data.GetString();  //大厅图片
            activityDataList_Datas.pic         = data.GetString();  //图片
            activityDataList_Datas.pic_cn      = data.GetString();  //图片描述
            activityDataList_Datas.pic_tw      = data.GetString();  //图片描述
            activityDataList_Datas.link        = data.GetInt();     //跳转链接
            activityDataList_Datas.ruleSre     = data.GetString();  //规则数据
            activityDataList_Datas.startTime   = data.GetLong();
            activityDataList_Datas.endTime     = data.GetLong();
            activityDataList_Datas.fullValue   = data.GetString();          //全服累计金币 或者 次数 或者其他
            activityDataList.Add(activityDataList_Datas);
        }
        ActivityHandler.Instance().GC_ACTIVITY_LIST(activityDataList);
    }
Exemplo n.º 14
0
    /**
     * 获取俱乐部信息
     * @param clubInfo 俱乐部信息
     */
    public void GC_CLUB_INFO(InputMessage data)
    {
        ClubInfoUnit clubInfo = new ClubInfoUnit();
        int          j;

        clubInfo.id              = data.GetString(); //id
        clubInfo.name            = data.GetString(); //名字
        clubInfo.ico             = data.GetInt();    //ico
        clubInfo.level           = data.GetInt();    //等级
        clubInfo.progress        = data.GetInt();    //等级进度
        clubInfo.notice          = data.GetString(); //公告
        clubInfo.huoyue          = data.GetInt();    //赛季活跃点
        clubInfo.money           = data.GetInt();    //资产
        clubInfo.male            = data.GetInt();    //男
        clubInfo.female          = data.GetInt();    //女
        clubInfo.rankHuoYue      = data.GetInt();    //俱乐部活跃排名
        clubInfo.rankGongXian    = data.GetInt();    //俱乐部贡献排名
        clubInfo.clubType        = data.GetInt();    //类型
        clubInfo.limit           = data.GetInt();    //段位
        clubInfo.zhiwu           = data.GetInt();    //自己的职务
        clubInfo.seasonEndSecond = data.GetLong();   //到赛季结束的时间秒
        ArrayList additionalIco     = new ArrayList();
        int       additionalIcoSize = data.GetShort();

        for (j = 0; j < additionalIcoSize; j++)
        {
            string additionalIco_Datas = data.GetString();            //额外解锁的图标
            additionalIco.Add(additionalIco_Datas);
        }
        clubInfo.additionalIco = additionalIco;
        ClubHandler.Instance().GC_CLUB_INFO(clubInfo);
    }
Exemplo n.º 15
0
    /**
     * 系统提示消息
     * @param code 消息内容
     * @param showType 消息显示类型
     */
    public void GC_SYSTEM_MESSAGE(InputMessage data)
    {
        int code     = data.GetInt();
        int showType = data.GetShort();

        CommonHandler.Instance().GC_SYSTEM_MESSAGE(code, showType);
    }
Exemplo n.º 16
0
    /**
     * 响应客户端请求系统邮件列表
     * @param mailKind 邮件类型
     * @param mailInfoDataList 邮件列表
     */
    public void GC_LOAD_MAIL_LIST(InputMessage data)
    {
        int       i, size;
        int       mailKind         = data.GetInt();
        ArrayList mailInfoDataList = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            MailInfoData mailInfoDataList_Datas = new MailInfoData();
            mailInfoDataList_Datas.mailId        = data.GetLong();
            mailInfoDataList_Datas.sendId        = data.GetLong();
            mailInfoDataList_Datas.sendName      = data.GetString();    //发件角色名称
            mailInfoDataList_Datas.mailCdTime    = data.GetLong();
            mailInfoDataList_Datas.hasAttachment = data.GetInt();       //是否有奖品未领取
            mailInfoDataList_Datas.mailStatus    = data.GetInt();       //邮件状态
            mailInfoDataList_Datas.mailTitle     = data.GetString();    //邮件标题
            mailInfoDataList_Datas.mailCreatTime = data.GetLong();
            mailInfoDataList_Datas.isFriendSend  = data.GetInt();       //是否是好友发送的    0:是,1:否
            mailInfoDataList_Datas.vipLevel      = data.GetInt();       //vip等级
            mailInfoDataList_Datas.headName      = data.GetString();    //头像
            mailInfoDataList.Add(mailInfoDataList_Datas);
        }
        MailHandler.Instance().GC_LOAD_MAIL_LIST(mailKind, mailInfoDataList);
    }
Exemplo n.º 17
0
    /**
     * 获取俱乐部成员列表
     * @param list 如果操作成功 成员变化后的信息
     */
    public void GC_CLUB_MEMBER_LIST(InputMessage data)
    {
        int       i, size;
        ArrayList list = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            ClubMemberListUnit list_Datas = new ClubMemberListUnit();
            list_Datas.playerId   = data.GetLong();
            list_Datas.name       = data.GetString();    //成员名字
            list_Datas.ico        = data.GetString();    //ico
            list_Datas.level      = data.GetInt();       //成员等级
            list_Datas.country    = data.GetString();    //国籍
            list_Datas.zhiwu      = data.GetInt();       //职务
            list_Datas.gongxian   = data.GetInt();       //个人贡献
            list_Datas.huoyue     = data.GetInt();       //个人活跃度
            list_Datas.online     = data.GetInt();       //是否在线
            list_Datas.inGame     = data.GetInt();       //是否游戏中
            list_Datas.logoutTime = data.GetLong();
            list_Datas.tanheState = data.GetInt();       //不可弹劾:0 可弹劾:1 弹劾进行中:2 弹劾成功:3
            list_Datas.agree      = data.GetInt();       //同意人数
            list_Datas.refuse     = data.GetInt();       //拒绝人数
            list_Datas.selfState  = data.GetInt();       //个人状态 1 同意 2 拒绝 0 未表态
            list_Datas.vipLevel   = data.GetInt();       //用户vip的等级
            list_Datas.girlFlag   = data.GetInt();       //用户性别 1:男,2:女
            list.Add(list_Datas);
        }
        ClubHandler.Instance().GC_CLUB_MEMBER_LIST(list);
    }
Exemplo n.º 18
0
    /**
     * 客户端请求用户信息
     * @param playerInfoData 玩家信息
     */
    public void GC_QUERY_PLAYER_INFO_NAME(InputMessage data)
    {
        int       i, size;
        ArrayList playerInfoData = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            PlayerInfoData playerInfoData_Datas = new PlayerInfoData();
            playerInfoData_Datas.playerId         = data.GetLong();
            playerInfoData_Datas.name             = data.GetString(); //名字
            playerInfoData_Datas.img              = data.GetString(); //图片
            playerInfoData_Datas.gold             = data.GetLong();
            playerInfoData_Datas.diamond          = data.GetLong();
            playerInfoData_Datas.charm            = data.GetLong();
            playerInfoData_Datas.level            = data.GetLong();
            playerInfoData_Datas.sex              = data.GetInt();    //性别
            playerInfoData_Datas.viplevel         = data.GetInt();    //vip等级
            playerInfoData_Datas.countries        = data.GetString(); //国籍
            playerInfoData_Datas.age              = data.GetInt();    //年龄
            playerInfoData_Datas.slotRotate       = data.GetLong();
            playerInfoData_Datas.slotWin          = data.GetLong();
            playerInfoData_Datas.slotSingleWin    = data.GetLong();
            playerInfoData_Datas.slotWinNum       = data.GetLong();
            playerInfoData_Datas.integral         = data.GetLong();
            playerInfoData_Datas.isRequest        = data.GetInt();    //是否已经申请添加好友 0:未申请,1:已申请
            playerInfoData_Datas.newGuyGift       = data.GetInt();    //新手大礼包:1已购买,0 未购买
            playerInfoData_Datas.clubId           = data.GetString(); //俱乐部id,空字符串表示未加入俱乐部
            playerInfoData_Datas.clubIco          = data.GetInt();    //俱乐部图标
            playerInfoData_Datas.clubInvitedTimes = data.GetInt();    //被俱乐部邀请次数,0为未被邀请
            playerInfoData_Datas.achieveRate      = data.GetString(); //无双吹牛 成就  完成个数/总个数
            playerInfoData.Add(playerInfoData_Datas);
        }
        PlayerHandler.Instance().GC_QUERY_PLAYER_INFO_NAME(playerInfoData);
    }
Exemplo n.º 19
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);
    }
Exemplo n.º 20
0
    /**
     * 玩家加入
     * @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);
    }
Exemplo n.º 21
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);
    }
Exemplo n.º 22
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);
    }
Exemplo n.º 23
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);
    }
Exemplo n.º 24
0
    /**
     * 一键领取邮件返回
     * @param mailIdList 邮件Id列表
     */
    public void GC_RECEIVE_ALL(InputMessage data)
    {
        int       i, size;
        ArrayList mailIdList = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            long mailIdList_Datas = data.GetLong();
            mailIdList.Add(mailIdList_Datas);
        }
        MailHandler.Instance().GC_RECEIVE_ALL(mailIdList);
    }
Exemplo n.º 25
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);
    }
Exemplo n.º 26
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);
    }
Exemplo n.º 27
0
    /**
     * fb邀请
     * @param fbInviteIdList 好友列表
     */
    public void GC_FB_INVITE(InputMessage data)
    {
        int       i, size;
        ArrayList fbInviteIdList = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            string fbInviteIdList_Datas = data.GetString();
            fbInviteIdList.Add(fbInviteIdList_Datas);
        }
        MiscHandler.Instance().GC_FB_INVITE(fbInviteIdList);
    }
Exemplo n.º 28
0
    /**
     * 客户端请求用户信息
     * @param playerInfoData 玩家信息
     * @param bazooPersonalInfo 玩家信息
     */
    public void GC_QUERY_PLAYER_INFO(InputMessage data)
    {
        int            i, size;
        PlayerInfoData playerInfoData = new PlayerInfoData();

        playerInfoData.playerId         = data.GetLong();   //玩家id
        playerInfoData.name             = data.GetString(); //名字
        playerInfoData.img              = data.GetString(); //图片
        playerInfoData.gold             = data.GetLong();   //玩家筹码
        playerInfoData.diamond          = data.GetLong();   //钻石
        playerInfoData.charm            = data.GetLong();   //玩家筹码
        playerInfoData.level            = data.GetLong();   //等级
        playerInfoData.sex              = data.GetInt();    //性别
        playerInfoData.viplevel         = data.GetInt();    //vip等级
        playerInfoData.countries        = data.GetString(); //国籍
        playerInfoData.age              = data.GetInt();    //年龄
        playerInfoData.slotRotate       = data.GetLong();   //总转次数
        playerInfoData.slotWin          = data.GetLong();   //总赢得分
        playerInfoData.slotSingleWin    = data.GetLong();   //单次赢取最大
        playerInfoData.slotWinNum       = data.GetLong();   //玩家总胜利次数
        playerInfoData.integral         = data.GetLong();   //排行榜积分
        playerInfoData.isRequest        = data.GetInt();    //是否已经申请添加好友 0:未申请,1:已申请
        playerInfoData.newGuyGift       = data.GetInt();    //新手大礼包:1已购买,0 未购买
        playerInfoData.clubId           = data.GetString(); //俱乐部id,空字符串表示未加入俱乐部
        playerInfoData.clubIco          = data.GetInt();    //俱乐部图标
        playerInfoData.clubInvitedTimes = data.GetInt();    //被俱乐部邀请次数,0为未被邀请
        playerInfoData.achieveRate      = data.GetString(); //无双吹牛 成就  完成个数/总个数
        ArrayList bazooPersonalInfo = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            BazooPersonalInfo bazooPersonalInfo_Datas = new BazooPersonalInfo();
            bazooPersonalInfo_Datas.modeType       = data.GetInt();      //性别
            bazooPersonalInfo_Datas.numberOfGame   = data.GetInt();      //所有模式:局数
            bazooPersonalInfo_Datas.singleTopGold  = data.GetLong();
            bazooPersonalInfo_Datas.rateOfWinning  = data.GetInt();      //吹牛模式:胜率
            bazooPersonalInfo_Datas.aWinningStreak = data.GetInt();      //吹牛模式:连胜
            bazooPersonalInfo_Datas.passToKill     = data.GetInt();      //牛牛模式:通杀
            bazooPersonalInfo_Datas.bigPatterns    = data.GetString();   //牛牛模式:最大牌型
            bazooPersonalInfo_Datas.pantherNumber  = data.GetInt();      //梭哈模式:豹子数
            bazooPersonalInfo_Datas.threeKill      = data.GetInt();      //三杀
            bazooPersonalInfo_Datas.fourKill       = data.GetInt();      //四杀
            bazooPersonalInfo_Datas.fiveKill       = data.GetInt();      //五杀
            bazooPersonalInfo_Datas.dayProfit      = data.GetLong();
            bazooPersonalInfo_Datas.weekProfit     = data.GetLong();
            bazooPersonalInfo_Datas.monthProfit    = data.GetLong();
            bazooPersonalInfo.Add(bazooPersonalInfo_Datas);
        }
        PlayerHandler.Instance().GC_QUERY_PLAYER_INFO(playerInfoData, bazooPersonalInfo);
    }
Exemplo n.º 29
0
    /**
     * 活动进度数据
     * @param humanActivitySmallData 活动进度数据
     */
    public void GC_HUNAMN_PROGRESS(InputMessage data)
    {
        int       i, size;
        ArrayList humanActivitySmallData = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            HumanActivitySmallData humanActivitySmallData_Datas = new HumanActivitySmallData();
            int humanActivitySmallData_j;
            humanActivitySmallData_Datas.activityId = data.GetLong();
            ArrayList humanActivitySmallData_smallValue     = new ArrayList();
            int       humanActivitySmallData_smallValueSize = data.GetShort();
            for (humanActivitySmallData_j = 0; humanActivitySmallData_j < humanActivitySmallData_smallValueSize; humanActivitySmallData_j++)
            {
                int humanActivitySmallData_smallValue_Datas = data.GetInt();                        //活动完成进度数据
                humanActivitySmallData_smallValue.Add(humanActivitySmallData_smallValue_Datas);
            }
            humanActivitySmallData_Datas.smallValue = humanActivitySmallData_smallValue;
            humanActivitySmallData.Add(humanActivitySmallData_Datas);
        }
        ActivityHandler.Instance().GC_HUNAMN_PROGRESS(humanActivitySmallData);
    }
Exemplo n.º 30
0
    /**
     * 用户活动奖励列表
     * @param humanSimpleRewardInfoData 活动奖励信息
     */
    public void GC_HUMAN_ACTIVITY_REWARD_DATA_LIST(InputMessage data)
    {
        int       i, size;
        ArrayList humanSimpleRewardInfoData = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            HumanSimpleRewardInfoData humanSimpleRewardInfoData_Datas = new HumanSimpleRewardInfoData();
            int humanSimpleRewardInfoData_j;
            humanSimpleRewardInfoData_Datas.activityId = data.GetLong();
            ArrayList humanSimpleRewardInfoData_stateListist     = new ArrayList();
            int       humanSimpleRewardInfoData_stateLististSize = data.GetShort();
            for (humanSimpleRewardInfoData_j = 0; humanSimpleRewardInfoData_j < humanSimpleRewardInfoData_stateLististSize; humanSimpleRewardInfoData_j++)
            {
                int humanSimpleRewardInfoData_stateListist_Datas = data.GetInt();                        //活动领取状态数据
                humanSimpleRewardInfoData_stateListist.Add(humanSimpleRewardInfoData_stateListist_Datas);
            }
            humanSimpleRewardInfoData_Datas.stateListist = humanSimpleRewardInfoData_stateListist;
            humanSimpleRewardInfoData.Add(humanSimpleRewardInfoData_Datas);
        }
        ActivityHandler.Instance().GC_HUMAN_ACTIVITY_REWARD_DATA_LIST(humanSimpleRewardInfoData);
    }