hxp
2018-10-19 6bb604a064530782efec7afd865ee919a4bc6616
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/python
# -*- coding: GBK -*-
 
##@package AIType_200
# µ¾²ÝÈË
#  
# @author eggxp
# @date 2010-4-21
# @version 1.0
#
# VER = "2010-05-12 18:30" zhengyang Ìí¼Ó×¢ÊÍ
#Ä£¿éÏêϸ˵Ã÷.
#---------------------------------------------------------------------
import IPY_GameWorld
import NPCCommon
#---------------------------------------------------------------------
 
#---------------------------------------------------------------------
##µ¾²ÝÈËAIÂß¼­´¦Àí
#@param curNPC NPCʵÀý
#@param tick Ê±¼ä´Á
#@return ·µ»ØÖµÎÞÒâÒå
#@remarks µ¾²ÝÈËAIÂß¼­´¦Àí
def ProcessAI(curNPC, tick):
    npcControl = NPCCommon.NPCControl(curNPC)
    
    if curNPC.GetCurAction() == IPY_GameWorld.laNPCDie:
        #NPCËÀÍö, ½øÈëËÀÍöµ¹¼ÆÊ±
        if npcControl.DieTick(tick) == 0:
            return
        
    #Ë¢ÐÂ×Ô¼ºµÄBuff
    npcControl.RefreshBuffState(tick)