コード例 #1
0
ファイル: Monster.py プロジェクト: hafewa/tank-1
    def onTimer(self, tid, userArg):
        """
		KBEngine method.
		引擎回调timer触发
		"""
        #DEBUG_MSG("%s::onTimer: %i, tid:%i, arg:%i" % (self.getScriptName(), self.id, tid, userArg))
        NPCObject.onTimer(self, tid, userArg)
        Spell.onTimer(self, tid, userArg)
        AI.onTimer(self, tid, userArg)
コード例 #2
0
ファイル: Monster.py プロジェクト: CSystem/MyGameServerAssets
	def onTimer(self, tid, userArg):
		"""
		KBEngine method.
		引擎回调timer触发
		"""
		#DEBUG_MSG("%s::onTimer: %i, tid:%i, arg:%i" % (self.getScriptName(), self.id, tid, userArg))
		NPCObject.onTimer(self, tid, userArg)
		Spell.onTimer(self, tid, userArg)
		AI.onTimer(self, tid, userArg)
コード例 #3
0
 def onTimer(self, tid, userArg):
     """
     定时器回调函数
     :param tid:
     :param userArg:
     """
     # 分发到有onTimer的父类
     AI.onTimer(self, tid, userArg)
     Character.onTimer(self, tid, userArg)
コード例 #4
0
    def onTimer(self, tid, userArg):
        """
		Ouroboros method.
		Engine callback timer trigger
		"""
        DEBUG_MSG("%s::onTimer: %i, tid:%i, arg:%i" %
                  (self.getScriptName(), self.id, tid, userArg))
        NPCObject.onTimer(self, tid, userArg)
        Ability.onTimer(self, tid, userArg)
        AI.onTimer(self, tid, userArg)
コード例 #5
0
ファイル: Monster.py プロジェクト: zhaobingchun/huanhuoserver
 def onTimer(self, tid, userArg):
     AI.onTimer(self, tid, userArg)