| #!/usr/bin/python  | 
| # -*- coding: GBK -*-  | 
| #  | 
| #  | 
| ##@package GY_Query_GmOpenFB.py  | 
| # @todo: GM¿ªÆôÄ¿±ê¸±±¾  | 
| #  | 
| # @author:chenxuewei  | 
| # @date 2011-04-20 09:40  | 
| # @version 1.0  | 
| #  | 
| # ÐÞ¸Äʱ¼ä ÐÞ¸ÄÈË ÐÞ¸ÄÄÚÈÝ  | 
| #  | 
| # @note: GM¿ªÆô¸±±¾  | 
| #---------------------------------------------------------------------  | 
| """Version = 2011-04-20 09:40"""  | 
| #---------------------------------------------------------------------  | 
| #µ¼Èë  | 
| import GameWorld  | 
| #import ChConfig  | 
| #import IPY_GameWorld  | 
| #import PlayerControl  | 
| #---------------------------------------------------------------------  | 
| #È«¾Ö±äÁ¿  | 
| #---------------------------------------------------------------------  | 
|   | 
| #---------------------------------------------------------------------  | 
| #Â߼ʵÏÖ  | 
| ## ÇëÇóÂß¼  | 
| #  @param query_Type ÇëÇóÀàÐÍ  | 
| #  @param query_ID ÇëÇóµÄÍæ¼ÒID  | 
| #  @param packCMDTuple ·¢°üÃüÁî (ÇëÇó¿ªÆôµÄ¸±±¾ID, ½øÈë¸Ã¸±±¾µÄλÖÃX, Y)  | 
| #  @param tick µ±Ç°Ê±¼ä  | 
| #  @return "True" or "False" or ""  | 
| #  @remarks º¯ÊýÏêϸ˵Ã÷.  | 
| def DoLogic(query_Type, query_ID, packCMDTuple, tick):  | 
|       | 
|     gameWorld = GameWorld.GetGameWorld()  | 
|       | 
|     gameFB = gameWorld.GetGameFBByFbIndex(0)  | 
|       | 
|     #³õʼ»¯¸±±¾  | 
|     gameFB.Clear()  | 
|       | 
|     gameFBFamilyVS = gameFB.GetFamilyVS()  | 
|       | 
|     #³õʼ»¯¹ÜÀíÆ÷  | 
|     gameFBFamilyVS.Clear()  | 
|       | 
|     gameFBFamilyVS.SetFamilyID(packCMDTuple[3])  | 
|     gameFBFamilyVS.SetFamilyName('ɽկ')  | 
|       | 
|     gameFBFamilyVS.SetVSFamilyID(1)  | 
|     gameFBFamilyVS.SetVSFamilyName('ɽկ')  | 
|       | 
|     gameWorld.SetFBFirstOpenByFbIndex(0 , 1)  | 
|       | 
| #    GameWorld.ErrLog('¿ªÆôÇëÇóµÄ¸±±¾:%s'%type(packCMDTuple))  | 
|       | 
|     return ''  | 
|   | 
|                   | 
| #---------------------------------------------------------------------  | 
| #Ö´Ðнá¹û  | 
| ## Ö´Ðнá¹û  | 
| #  @param curPlayer ·¢³öÇëÇóµÄÍæ¼Ò  | 
| #  @param callFunName ¹¦ÄÜÃû³Æ  | 
| #  @param funResult ²éѯµÄ½á¹û  | 
| #  @param tick µ±Ç°Ê±¼ä  | 
| #  @return None  | 
| #  @remarks º¯ÊýÏêϸ˵Ã÷.  | 
| def DoResult(curPlayer, callFunName, funResult, tick):  | 
|       | 
| #    GameWorld.Log('Ö´Ðнá¹û:%s'%funResult)  | 
| #      | 
| #    infoList = funResult.split(',')  | 
| #      | 
| #    if len(infoList) < 3:  | 
| #        GameWorld.ErrLog('½«Íæ¼Ò´«½ø¸±±¾Ê±,»ñÈ¡µÄµØÍ¼ÐÅÏ¢ÁÐ±í£¨%s£©Óдí'%infoList)  | 
| #        return  | 
| #      | 
| #    mapID = int(infoList[0])  | 
| #    posX = int(infoList[1])  | 
| #    posY = int(infoList[2])  | 
| #    GameWorld.Log('Ö´Ðнá¹û:%s,%s,%s'%(mapID, posX, posY))  | 
| #      | 
| #    #½«Íæ¼Ò´«½ø¸±±¾  | 
| #    PlayerControl.PlayerResetWorldPos(curPlayer, mapID, posX, posY, True)  | 
|     return  | 
|   | 
|   |