#!/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) 
 |