| #!/usr/bin/python  | 
| # -*- coding: GBK -*-  | 
|   | 
| ##@package KillScreenPlayer  | 
| # µ±Ç°ÆÁÄ»Íæ¼ÒÈ«²¿ËÀÍö  | 
| #  | 
| # @author mark  | 
| # @date 2010-4-23  | 
| # @version 1.0  | 
| #  | 
| # ÐÞ¸Äʱ¼ä ÐÞ¸ÄÈË ÐÞ¸ÄÄÚÈÝ  | 
| # VER = "2010-05-12 18:30" zhengyang Ìí¼Ó×¢ÊÍ  | 
| #  | 
| # Ä£¿éÏêϸ˵Ã÷  | 
|   | 
| import IPY_GameWorld  | 
| import GameWorld  | 
| import AttackCommon  | 
| import PlayerControl  | 
|   | 
| ## GMÃüÁîÖ´ÐÐÈë¿Ú  | 
| #  @param curPlayer µ±Ç°Íæ¼Ò  | 
| #  @param playerList ²ÎÊýÁбí []  | 
| #  @return None  | 
| #  @remarks º¯ÊýÏêϸ˵Ã÷.  | 
| def OnExec(curPlayer,playerList):  | 
|     if len(playerList) > 1:  | 
|         return  | 
|     tick = GameWorld.GetGameWorld().GetTick()  | 
|     if len(playerList) == 0:  | 
|         #ɱËÀÊÓÒ°ÄÚµÄÍæ¼Ò  | 
|         for i in range(curPlayer.GetInSightObjCount()):  | 
|             curTag = curPlayer.GetInSightObjByIndex(i)  | 
|             if not curTag:  | 
|                 continue  | 
|             if curTag.GetGameObjType() != IPY_GameWorld.gotPlayer:  | 
|                 continue  | 
|             curTagPlayer = GameWorld.GetObj(curTag.GetID(), IPY_GameWorld.gotPlayer)  | 
|             AttackCommon.OnPlayerKillPlayer(curPlayer, curTagPlayer, tick)  | 
|             tagPlayerControl = PlayerControl.PlayerControl(curTagPlayer)  | 
|             tagPlayerControl.SetDead()  | 
|               | 
|         return  | 
|     curTagName = playerList[0]  | 
|     curTagObj = GameWorld.GetPlayerManager().FindPlayerByName(str(curTagName))  | 
|       | 
|     if curTagObj == None:  | 
|         GameWorld.DebugAnswer(curPlayer, "ÎÞ´ËÍæ¼Ò2 = %s"%curTagName)  | 
|         return  | 
|       | 
|     curTagPlayer = GameWorld.GetObj(curTagObj.GetID(), IPY_GameWorld.gotPlayer)  | 
|     AttackCommon.OnPlayerKillPlayer(curPlayer, curTagPlayer, tick)  | 
|     tagPlayerControl = PlayerControl.PlayerControl(curTagPlayer)  | 
|     tagPlayerControl.SetDead()  | 
|       | 
|       | 
|      |