コード例 #1
0
ファイル: Monster.py プロジェクト: hafewa/tank-1
    def onWitnessed(self, isWitnessed):
        """
		KBEngine method.
		此实体是否被观察者(player)观察到, 此接口主要是提供给服务器做一些性能方面的优化工作,
		在通常情况下,一些entity不被任何客户端所观察到的时候, 他们不需要做任何工作, 利用此接口
		可以在适当的时候激活或者停止这个entity的任意行为。
		@param isWitnessed	: 为false时, entity脱离了任何观察者的观察
		"""
        AI.onWitnessed(self, isWitnessed)
コード例 #2
0
ファイル: Monster.py プロジェクト: easiest321/kbengine
	def onWitnessed(self, isWitnessed):
		"""
		KBEngine method.
		此实体是否被观察者(player)观察到, 此接口主要是提供给服务器做一些性能方面的优化工作,
		在通常情况下,一些entity不被任何客户端所观察到的时候, 他们不需要做任何工作, 利用此接口
		可以在适当的时候激活或者停止这个entity的任意行为。
		@param isWitnessed	: 为false时, entity脱离了任何观察者的观察
		"""
		AI.onWitnessed(self, isWitnessed)
コード例 #3
0
    def onWitnessed(self, isWitnessed):
        """
		Ouroboros method.
		Whether this entity is observed by the player, this interface is mainly to provide the server with some performance optimization work.
		Under normal circumstances, when some entities are not observed by any client, they do not need to do any work, using this interface
		Any behavior of this entity can be activated or stopped at the appropriate time.
		@param isWitnessed	: When false, the entity is out of observation by any observer.
		"""
        AI.onWitnessed(self, isWitnessed)