Ptich() public method

public Ptich ( ) : void
return void
示例#1
0
        private bool SWITCH(GameStruct.ActionInfo info, PlayerObject play)
        {
            bool ret = true;

            switch (info.type)
            {
                case ActionID.ACTION_MENU_TEXT:
                    {
                        Action_MenuText(info, play);
                        mbEndTag = true; //要发送npc结尾标记,显示npc对话框
                        break;
                    }
                case ActionID.ACTION_MENU_LINK:
                    {
                        Action_MenuLink(info, play);
                        mnSelectIndex++;
                        break;
                    }
                case ActionID.ACTION_MENU_EDIT:
                    {
                        Action_MenuEdit(info, play);
                        break;
                    }
                case ActionID.ACTION_MENU_PIC:
                    {
                        Action_MenuImage(info, play);
                        break;
                    }
                case ActionID.ACTION_MESSAGEBOX:
                    {
                        Action_MessageBox(info, play);
                        break;
                    }
                case ActionID.ACTION_MAP_ENTERMAP:
                    {
                        Action_Map_EnterMap(info, play);
                        break;
                    }
                case ActionID.ACTION_MAP_RANDOM:
                    {
                        Action_Map_Random(info, play);
                        break;
                    }
                case ActionID.ACTION_MAP_RECALL:
                    {
                        Action_Map_ReCall(info, play);
                        break;
                    }
                case ActionID.ACTION_MAP_CHANGE:
                    {
                        Action_Map_Change(info, play);
                        break;
                    }
                case ActionID.ACTION_ITEM_ADD:
                    {
                        Action_Item_Add(info, play);
                        break;
                    }
                case ActionID.ACTION_ITEM_DELETE:
                    {
                        Action_Item_Delete(info, play);
                        break;
                    }
                case ActionID.ACTION_ITEM_DELETE_NAME:
                    {
                        ret = Action_Item_Delete_Name(info, play);
                        break;
                    }
                case ActionID.ACTION_ITEM_DELETE_ITEMID:
                    {
                        ret = Action_Item_Delete_ItemID(info, play);
                        break;
                    }
                case ActionID.ACTION_ITEM_LEVEL:
                    {
                        ret = Action_Item_Level(info, play);
                        break;
                    }
                case ActionID.ACTION_EQUIP_OPERATION:
                    {
                        ret = Action_Equip_Operation(info, play);
                        break;
                    }
                case ActionID.ACTION_CHECK_BAG_SIZE:
                    {
                        ret = Action_Check_Bag_Size(info, play);
                        break;
                    }
                case ActionID.ACTION_CHECK_PROFESSION:
                    {
                        ret = Action_CheckProfession(info, play);
                        break;
                    }
                case ActionID.ACTION_CHECK_LEVEL:
                    {
                        ret = Action_CheckLevel(info, play);
                        break;
                    }
                case ActionID.ACTION_SET_ROLE_PRO:
                    {
                        Action_Set_Role_Pro(info, play);
                        break;
                    }
                case ActionID.ACTION_GET_ROLE_PRO:
                    {
                       ret = Action_Get_Role_Pro(info, play);
                        break;
                    }
                case ActionID.ACTION_ADDMAGIC:
                    {
                        Action_AddMagic(info, play);
                        break;
                    }
                case ActionID.ACTION_OPENDIALOG:
                    {
                        Action_OpenDialog(info, play);
                        break;
                    }

                case ActionID.ACTION_LEARNMAGIC:
                    {
                        Action_LearnMagic(info, play);
                        break;
                    }
                case ActionID.ACTION_CHECKMAGIC:
                    {
                        ret = Action_CheckMagic(info, play);
                        break;
                    }
                case ActionID.ACTION_LEFTNOTICE:
                    {
                        String str = Sprintf_string(info.param, play);
                        play.LeftNotice(str);
                        break;
                    }
                case ActionID.ACTION_CHATNOTICE:
                    {
                        String str = Sprintf_string(info.param, play);
                        play.ChatNotice(str);
                        break;
                    }
                case ActionID.ACTION_SCREENNOTICE:
                    {
                        String str = Sprintf_string(info.param, play);
                         UserEngine.Instance().SceneNotice(str);
                        break;
                    }
                case ActionID.ACTION_MSGBOX:
                    {
                        String str = Sprintf_string(info.param, play);
                        play.MsgBox(str);
                        break;
                    }
                case ActionID.ACTION_PITCH:
                    {

                        play.Ptich();
                        break;
                    }
                case ActionID.ACTION_GETPAYGAMEGOLD:
                    {
                        PayManager.Instance().GetMoney(play);
                        break;
                    }
                case ActionID.ACTION_FUCK_NIAN:
                    {
                        Action_Fuck_Nian(info, play);
                        break;
                    }

                case ActionID.ACTION_EUDEMON_CREATE:
                    {
                        Action_Eudemon_Create(info, play);
                        break;
                    }
                case ActionID.ACTION_EUDEMON_CREATEEX:
                    {
                        Action_Eudemon_CreateEx(info, play);
                        break;
                    }
                case ActionID.ACTION_RECALL_EUDEMON:
                    {
                        Action_Recall_Eudemon(info, play);
                        break;
                    }
                case ActionID.ACTION_LEGION_CREATE:
                    {
                        ret = Action_Legion_Create(info, play);
                        break;
                    }
                case ActionID.ACTION_LEGION_CHANGE_TITLE:
                    {
                        Action_Legion_ChangeTitle(info, play);
                        break;
                    }
                case ActionID.ACTION_TIMEOUT_CREATE:
                    {
                        ret = Action_TimeOut_Create(info, play);
                        break;
                    }
                case ActionID.ACTION_TIMEOUT_CHECK:
                    {
                        ret = Action_TimeOut_Check(info, play);
                        break;
                    }
                case ActionID.ACTION_TIMEOUT_DELETE:
                    {
                        Action_TimeOut_Delete(info, play);
                        break;
                    }
                case ActionID.ACTION_MAGIC_OPERATION:
                    {
                        ret = Action_Magic_Operation(info, play);
                        break;
                    }
                case ActionID.ACTION_RANDOM_INIT:
                    {
                        Action_Random_Init(info, play);
                        break;
                    }
                case ActionID.ACTION_RANDOM_COMPARE:
                    {
                        ret = Action_Random_Compare(info, play);
                        break;
                    }
                case ActionID.ACTION_GET_EUDEMON_PRO:
                    {
                        ret = Action_Get_Eudemon_Pro(info, play);
                        break;
                    }
                case ActionID.ACTION_SET_EUDEMON_PRO:
                    {
                       Action_Set_Eudemon_Pro(info, play);
                        break;
                    }
                case ActionID.ACTION_FUBEN_CREATE:
                    {
                        ret = Action_Fuben_Create(info, play);
                        break;
                    }

            }
            return ret;
        }