Exemplo n.º 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();
        }
Exemplo n.º 2
0
        // 通过传入的数组 初始化逻辑
        public void InitGame(int[] gameReset)
        {
            btnArry = (int[])gameReset.Clone();
            int[] tmp = (int[])btnArry.Clone();
            pairPicCounts = MyFormat.countPairPic(tmp);

            for (int i = 0; i < btnArry.Length; i++)
            {
                gameArea.SetBtnImage(i, btnArry[i]);
            }
            gameArea.Reset();
        }