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