| | |
| | |
|
| | |
|
| | | #导入
|
| | | import NPCCommon
|
| | | import GameLogic_ZhuXianBoss
|
| | | import GameWorld
|
| | | import IPY_GameWorld
|
| | | import ChConfig
|
| | |
| | | gameWorldManager = GameWorld.GetGameWorld()
|
| | | fbLinePlayerCntDict = {}
|
| | | if tagMapID == ChConfig.Def_FBMapID_SealDemon:
|
| | | for index in range(gameWorldManager.GetGameWorldCount()):
|
| | | for index in xrange(gameWorldManager.GetGameWorldCount()):
|
| | | gameWorld = IPY_GameWorld.IPY_GameWorld(index)
|
| | | playerManager = gameWorld.GetMapCopyPlayerManagerByFbIndex(index)
|
| | | fblineID = gameWorld.GetPropertyID() - 1
|
| | |
| | | if not isAllLine and tagFBLineID != fblineID:
|
| | | continue
|
| | | playerCnt = playerManager.GetPlayerCount()
|
| | | fbLinePlayerCntDict[fblineID] = playerCnt
|
| | | fbLinePlayerCntDict[fblineID] = [playerCnt]
|
| | | |
| | | elif tagMapID == ChConfig.Def_FBMapID_ZhuXianBoss:
|
| | | for index in xrange(gameWorldManager.GetGameWorldCount()):
|
| | | gameWorld = IPY_GameWorld.IPY_GameWorld(index)
|
| | | playerManager = gameWorld.GetMapCopyPlayerManagerByFbIndex(index)
|
| | | fblineID = gameWorld.GetPropertyID() - 1
|
| | | if fblineID < 0:
|
| | | continue
|
| | | if not isAllLine and tagFBLineID != fblineID:
|
| | | continue
|
| | | playerCnt = playerManager.GetPlayerCount()
|
| | | ownerName = GameLogic_ZhuXianBoss.GetFirstOwnerName(fblineID)
|
| | | fbLinePlayerCntDict[fblineID] = [playerCnt, ownerName]
|
| | | else:
|
| | | return
|
| | | return [tagMapID, fbLinePlayerCntDict]
|