Beispiel #1
0
        public event NetworkProcess newtworkProcessor;                  //form传递函数,直接操作form中的控件



        public void InitLogic()
        {
            // 生成button对应的图像 和 统计总共消除的次数
            MyFormat.genPic(ref butArry);
            int[] tmp = (int[])butArry.Clone();
            pairPicCounts = MyFormat.countPairPic(tmp);

            keepalive   = false;
            myClientSoc = new MyClientSoc();
        }
Beispiel #2
0
        public bool GameRoomIsWorking; //游戏大厅桌子是否已经开始玩



        public MainLogic()
        {
            myClientSoc = new MyClientSoc();
            keepalive   = false;
            //初始化数据
            // 生成界面的form
            hall              = new Room(this);
            gameRoom          = CreateGameForm();
            GameRoomIsWorking = false;


            myStatus = PlayerStatus.OffLine;
            msgList  = new List <Message>();
            thisLock = new Object();

            hall.btnClickEvent += ExitHall;
            this.tableIdx       = -1;
            this.seatIdx        = -1;
        }