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
#!/usr/bin/python
# -*- coding: GBK -*-
 
##@package AIType_200
# ÈÎÎñNPCÂß¼­
#  
# @author eggxp
# @date 2010-4-21
# @version 1.0
#
# VER = "2010-05-12 18:30" zhengyang Ìí¼Ó×¢ÊÍ
#Ä£¿éÏêϸ˵Ã÷.
#---------------------------------------------------------------------
import IPY_GameWorld
import NPCCommon
#---------------------------------------------------------------------
 
#---------------------------------------------------------------------
##ÈÎÎñNPCAIÂß¼­´¦Àí
#@param curNPC NPCʵÀý
#@param tick Ê±¼ä´Á
#@return ·µ»ØÖµÎÞÒâÒå
#@remarks ÈÎÎñNPCAIÂß¼­´¦Àí
def ProcessAI(curNPC, tick):
    npcControl = NPCCommon.NPCControl(curNPC)
    
    if curNPC.GetCurAction() == IPY_GameWorld.laNPCDie:
        #NPCËÀÍö, ½øÈëËÀÍöµ¹¼ÆÊ±
        if npcControl.DieTick(tick) == 0:
            return