示例#1
0
        /// <summary>
        /// find what type of class is the
        /// receive messge
        /// </summary>
        /// <param name="type"></param>
        public void FindType(string type)
        {
            switch (type)
            {
            case "1":
                ser.CreateMaze();
                MazeHelper();
                Client.SendMsg("solve " + MyMaze.Name + " 0");
                break;

            case "2":
                ser.CreateMaze();
                MyMaze.solv = ser.maze.Maze;
                break;

            case "3":
                ser.ConvertStartGame();
                StartGame();
                Client.SendMsg("solve " + MyMaze.Name + " 0");
                break;

            case "4":
                ser.ConvertPlay();
                Play   m = ser.move;
                string d = m.Move;
                moveYriv(d);
                break;

            case "6":
                ser.ConvertPlay();
                Play m1 = ser.move;
                Clue = m1.Move;
                break;
            }
        }
示例#2
0
        /// <summary>
        /// find what type of class is the
        /// receive messge
        /// </summary>
        /// <param name="type"></param>
        public void FindType(string type)
        {
            switch (type)
            {
            case "1":
                ser.CreateMaze();
                MazeHelper();
                break;

            case "3":
                numOfPlayer += 1;
                ser.ConvertStartGame();
                StartGame();
                break;

            case "4":
                ser.ConvertPlay();
                Play   m = ser.move;
                string d = m.Move;
                moveYriv(d);
                break;

            case "6":
                ser.ConvertPlay();
                Play m1 = ser.move;
                Clue = m1.Move;
                break;
            }
        }