コード例 #1
0
        public void registerDelegates()
        {
            AsyncSocket genSocket = AsyncSocket.shareInstance();

            ClientStatusController statusCtller = new ClientStatusController();
            genSocket.setStatusDelegate(statusCtller);

            UserGuestLoginController guestLoginCtller = new UserGuestLoginController();
            genSocket.addToResponseDelegates(guestLoginCtller);
        }
コード例 #2
0
        public void registerDelegates()
        {
            AsyncSocket genSocket = AsyncSocket.shareInstance();

            ClientStatusController statusCtller = new ClientStatusController();
            genSocket.setStatusDelegate(statusCtller);

            UserEditProfileController editProfileCtller = new UserEditProfileController();
            genSocket.addToResponseDelegates(editProfileCtller);
        }
コード例 #3
0
        public void registerDelegates()
        {
            AsyncSocket genSocket = AsyncSocket.shareInstance();

            ClientStatusController statusCtller = new ClientStatusController();
            genSocket.setStatusDelegate(statusCtller);

            VersionUpdateCheckController updateCheckController = new VersionUpdateCheckController();
            genSocket.addToResponseDelegates(updateCheckController);

            UserGuestLoginController guestLoginCtller = new UserGuestLoginController();
            genSocket.addToResponseDelegates(guestLoginCtller);

            UserLoginController loginCtller = new UserLoginController();
            genSocket.addToResponseDelegates(loginCtller);

            UserCheckResumePlayController userCheckResumePlayController = new UserCheckResumePlayController();
            genSocket.addToResponseDelegates(userCheckResumePlayController);

            UserEnterRoomController userEnterRoomController = new UserEnterRoomController();
            genSocket.addToResponseDelegates(userEnterRoomController);
        }
コード例 #4
0
        public void registerDelegates()
        {
            AsyncSocket genSocket = AsyncSocket.shareInstance();

            ClientStatusController statusCtller = new ClientStatusController();
            genSocket.setStatusDelegate(statusCtller);

            OtherClientDisconnectedController otherClientDisconnectedController = new OtherClientDisconnectedController();
            genSocket.addToResponseDelegates(otherClientDisconnectedController);

            //siton和leave组合在一起成为换桌接口
            UserSitOnDeskController userSitOnDeskController = new UserSitOnDeskController();
            genSocket.addToResponseDelegates(userSitOnDeskController);

            UserLeaveDeskController userLeaveDeskController = new UserLeaveDeskController();
            genSocket.addToResponseDelegates(userLeaveDeskController);

            UserPromptReadyController userPromptReadyController = new UserPromptReadyController();
            genSocket.addToResponseDelegates(userPromptReadyController);

            UserReadyController userReadyController = new UserReadyController();
            genSocket.addToResponseDelegates(userReadyController);

            DeskFaPaiController deskFaPaiController = new DeskFaPaiController();
            genSocket.addToResponseDelegates(deskFaPaiController);

            DeskPromptUserJiaoDiZhuController deskPromptUserJiaoDiZhuController = new DeskPromptUserJiaoDiZhuController();
            genSocket.addToResponseDelegates(deskPromptUserJiaoDiZhuController);

            DeskJiaoDiZhuController deskJiaoDiZhuController = new DeskJiaoDiZhuController();
            genSocket.addToResponseDelegates(deskJiaoDiZhuController);

            DeskJiaoDiZhuFinishController deskJiaoDiZhuFinishController = new DeskJiaoDiZhuFinishController();
            genSocket.addToResponseDelegates(deskJiaoDiZhuFinishController);

            DeskFaDiPaiController deskFaDiPaiController = new DeskFaDiPaiController();
            genSocket.addToResponseDelegates(deskFaDiPaiController);

            //出牌部分
            DeskChuPaiController deskChuPaiController = new DeskChuPaiController();
            genSocket.addToResponseDelegates(deskChuPaiController);

            DeskCardsPromptController deskCardsPromptController = new DeskCardsPromptController();
            genSocket.addToResponseDelegates(deskCardsPromptController);

            DeskCardsValidateController deskCardsValidateController = new DeskCardsValidateController();
            genSocket.addToResponseDelegates(deskCardsValidateController);

            DeskDaPaiEndController deskDaPaiEndController = new DeskDaPaiEndController();
            genSocket.addToResponseDelegates(deskDaPaiEndController);

            //自动叫地主
            AutoDeskJiaoDiZhuController autoDeskJiaoDiZhuController = new AutoDeskJiaoDiZhuController();
            genSocket.addToResponseDelegates(autoDeskJiaoDiZhuController);

            //自动出牌
            AutoDeskChuPaiController autoDeskChuPaiController = new AutoDeskChuPaiController();
            genSocket.addToResponseDelegates(autoDeskChuPaiController);

            //断线重连
            QueryDeskUsersController queryDeskUsersController = new QueryDeskUsersController();
            genSocket.addToResponseDelegates(queryDeskUsersController);

            QueryDeskFaPaiController queryDeskFaPaiController = new QueryDeskFaPaiController();
            genSocket.addToResponseDelegates(queryDeskFaPaiController);

            QueryDeskPromptUserJiaoDiZhuController queryDeskPromptUserJiaoDiZhuController = new QueryDeskPromptUserJiaoDiZhuController();
            genSocket.addToResponseDelegates(queryDeskPromptUserJiaoDiZhuController);

            QueryDeskJiaoDiZhuController queryDeskJiaoDiZhuController = new QueryDeskJiaoDiZhuController();
            genSocket.addToResponseDelegates(queryDeskJiaoDiZhuController);

            QueryDeskJiaoDiZhuFinishController queryDeskJiaoDiZhuFinishController = new QueryDeskJiaoDiZhuFinishController();
            genSocket.addToResponseDelegates(queryDeskJiaoDiZhuFinishController);

            QueryDeskFaDiPaiController queryDeskFaDiPaiController = new QueryDeskFaDiPaiController();
            genSocket.addToResponseDelegates(queryDeskFaDiPaiController);

            QueryDeskChuPaiController queryDeskChuPaiController = new QueryDeskChuPaiController();
            genSocket.addToResponseDelegates(queryDeskChuPaiController);
        }