예제 #1
0
 public tagCarStatesChange(CarTableStates TableStates, CarTableUpdateInfo TableGlobelInfo,
                           CarVipSeatList OldVipSeatInfo, CarVipSeatList TableVipSeatInfo, CarWriteBankerList TableWriteBankerList, CarBankerUserInfo TableBankerUserInfo, CarGameLog TableGameLog, Byte TableResult)
     : base(MsgEventType.MET_Car_StatesChange)
 {
     this.TableStates          = TableStates;
     this.TableGlobelInfo      = TableGlobelInfo;
     this.TableVipSeatInfo     = TableVipSeatInfo;
     this.TableWriteBankerList = TableWriteBankerList;
     this.TableBankerUserInfo  = TableBankerUserInfo;
     this.TableGameLog         = TableGameLog;
     this.OldVipSeatInfo       = OldVipSeatInfo;
     this.TableResult          = TableResult;
 }
예제 #2
0
 public tagCarJoin(Byte TableUpdateSec, CarTableStates TableStates, CarTableUpdateInfo TableGlobelInfo, CarBankerUserInfo TableBankerInfo,
                   CarWriteBankerList TableWriteBankerList, CarVipSeatList TableVipSeatInfo, CarGameLog TableGameLog, Byte TableResult)
     : base(MsgEventType.MET_Car_Join)
 {
     this.TableUpdateSec       = TableUpdateSec;
     this.TableStates          = TableStates;
     this.TableGlobelInfo      = TableGlobelInfo;
     this.TableBankerInfo      = TableBankerInfo;//庄家数据
     this.TableWriteBankerList = TableWriteBankerList;
     this.TableVipSeatInfo     = TableVipSeatInfo;
     this.TableGameLog         = TableGameLog;
     this.TableResult          = TableResult;
 }
예제 #3
0
파일: RoleCar.cs 프로젝트: profiles/Fish
    public bool OnHandleTableJoinEnd(NetCmdBase obj)
    {
        LC_Cmd_CarTableJoinEnd ncb = (LC_Cmd_CarTableJoinEnd)obj;

        TableResult = ncb.TableResultIndex;
        TableUpdateInfo.SetInfo(ncb.TableBetAreaGlobel);
        TableStates = CarTableStates.CTS_End;//等待关闭状态

        for (int i = 0; i < FishDataInfo.MAX_Car_ClientSum; ++i)
        {
            TableGlobelSum[i] = 0;
        }

        //金币变化
        if (ncb.BankerUserGlobelInfo.dwUserID == TableBankerUserInfo.UserInfo.dwUserID)
        {
            TableBankerUserInfo.UserInfo.GlobelSum = ncb.BankerUserGlobelInfo.dwGlobelSum;
        }

        for (Byte i = 0; i < FishDataInfo.MAX_Car_BankerShowSum; ++i)
        {
            if (TableWriteBankerList.List[i] != null && ncb.BankerListGlobelInfo[i].dwUserID == TableWriteBankerList.List[i].dwUserID)
            {
                TableWriteBankerList.List[i].GlobelSum = ncb.BankerListGlobelInfo[i].dwGlobelSum;
            }
        }
        CarVipSeatList pOldlist = new CarVipSeatList();

        for (Byte i = 0; i < FishDataInfo.MAX_Car_VipSeat; ++i)
        {
            if (TableVipSeatInfo.List[i] != null && ncb.VipGlobelInfo[i].dwUserID == TableVipSeatInfo.List[i].dwUserID)
            {
                pOldlist.List[i] = TableVipSeatInfo.List[i];

                TableVipSeatInfo.List[i].GlobelSum = ncb.VipGlobelInfo[i].dwGlobelSum;
            }
        }

        TableGameLog.GameLog = ncb.TableResultLog;
        TableGameLog.GameSum = ncb.TableGameSum;

        LogMgr.Log(string.Format("玩家金币变化 {0}", ncb.AddGlobelSum));

        //触发事件
        tagCarStatesChange pEvent = new tagCarStatesChange(TableStates, TableUpdateInfo, pOldlist, TableVipSeatInfo, TableWriteBankerList, TableBankerUserInfo, TableGameLog, TableResult);

        MsgEventHandle.HandleMsg(pEvent);
        return(true);
    }
예제 #4
0
 public void EnterGameCar(byte TableUpdateSec,
                          CarTableStates TableStates,
                          CarTableUpdateInfo TableGlobelInfo,
                          CarBankerUserInfo TableBankerInfo,
                          CarWriteBankerList TableWriteBankerList,
                          CarVipSeatList TableVipSeatInfo,
                          CarGameLog TableGameLog,
                          byte TableResult)
 {
     m_GameCarUI.EnterGameCar(TableUpdateSec,
                              TableStates,
                              TableGlobelInfo,
                              TableBankerInfo,
                              TableWriteBankerList,
                              TableVipSeatInfo,
                              TableGameLog,
                              TableResult);
 }
예제 #5
0
 public void CarStatusChange(CarTableStates TableStates,
                             CarTableUpdateInfo TableGlobelInfo,
                             CarVipSeatList OldVipSeatInfo,
                             CarVipSeatList TableVipSeatInfo,
                             CarWriteBankerList TableWriteBankerList,
                             CarBankerUserInfo TableBankerUserInfo,
                             CarGameLog TableGameLog,
                             byte TableResult)
 {
     m_GameCarUI.CarStatusChange(
         TableStates,
         TableGlobelInfo,
         OldVipSeatInfo,
         TableVipSeatInfo,
         TableWriteBankerList,
         TableBankerUserInfo,
         TableGameLog,
         TableResult);
 }
예제 #6
0
파일: RoleCar.cs 프로젝트: profiles/Fish
    //离开牛牛房间
    public void OnLeaveCarTable()
    {
        TableUpdateInfo = new CarTableUpdateInfo();
        //AreaData = new CarTableAreaData();
        TableBankerUserInfo  = new CarBankerUserInfo();
        TableWriteBankerList = new CarWriteBankerList();
        TableVipSeatInfo     = new CarVipSeatList();
        TableGameLog         = new CarGameLog();
        IsInBankerList       = false;
        for (int i = 0; i < FishDataInfo.MAX_Car_ClientSum; ++i)
        {
            TableGlobelSum[i]    = 0;
            LogTableGlobelSum[i] = 0;
        }
        //玩家离开桌子
        CL_Cmd_CarRoleLeaveTable ncb = new CL_Cmd_CarRoleLeaveTable();

        ncb.SetCmdType(NetCmdType.CMD_CL_CarRoleLeaveTable);
        NetServices.Instance.Send <CL_Cmd_CarRoleLeaveTable>(ncb);
    }
예제 #7
0
 public tagCarVipSeatChangeEvent(bool Result, CarVipSeatList TableVipList)
     : base(MsgEventType.MET_Car_VipSeatChange)
 {
     this.Result       = Result;
     this.TableVipList = TableVipList;
 }