#!/usr/bin/python  
 | 
# -*- coding: GBK -*-  
 | 
#-------------------------------------------------------------------------------  
 | 
#  
 | 
##@package GM.Commands.Bossall  
 | 
#  
 | 
# @todo:¸´»îËùÓÐboss  
 | 
# @author hxp  
 | 
# @date 2018-06-19  
 | 
# @version 1.0  
 | 
#  
 | 
# ÏêϸÃèÊö: ¸´»îËùÓÐboss  
 | 
#  
 | 
#-------------------------------------------------------------------------------  
 | 
#"""Version = 2018-06-19 11:00"""  
 | 
#-------------------------------------------------------------------------------  
 | 
import PyGameData  
 | 
import GameWorldBoss  
 | 
import GameWorld  
 | 
import time  
 | 
  
 | 
## Ö´ÐÐÂß¼  
 | 
#  @param curPlayer µ±Ç°Íæ¼Ò  
 | 
#  @param gmList []  
 | 
#  @return None  
 | 
def OnExec(curPlayer, gmList):  
 | 
    bossIDList = []  
 | 
    for i, bossInfo in enumerate(PyGameData.g_sortBOSSRefreshList):  
 | 
        bossID, killedTime, refreshTime = bossInfo  
 | 
        isAlive = GameWorldBoss.__GetIsAlive(bossID)  
 | 
        if isAlive:  
 | 
            continue  
 | 
        refreshTime = 0  
 | 
        killedTime = 0  
 | 
        PyGameData.g_sortBOSSRefreshList[i] = [bossID, killedTime, refreshTime]  
 | 
        bossIDList.append(bossID)  
 | 
    curTime = int(time.time())  
 | 
    PyGameData.g_sortBOSSRefreshList.sort(key=lambda asd:max(0, asd[2] - (curTime - asd[1])))  
 | 
    GameWorld.DebugAnswer(curPlayer, "ÖØÉúboss:%s" % bossIDList)  
 | 
    return  
 | 
  
 | 
  
 |