示例#1
0
	def die(self):
		# TODO: For now this is a memory leak. The object should really die, not just stop the timer.
		print 'die: %d' % self.entity_id
		self.attributes['state'] = 'dead'
		event.modify_timer('entity%d'%self.entity_id,0)
		self.emit('update')
示例#2
0
 def modify_timer(self, timer_name, new_interval):
     print 'modify timer: %s' % timer_name
     event.modify_timer(timer_name, new_interval)
示例#3
0
	def modify_timer(self,timer_name,new_interval):
		print 'modify timer: %s' % timer_name
		event.modify_timer(timer_name,new_interval)
示例#4
0
 def stop(self, timer_name):
     print 'stopping timer: %s' % timer_name
     event.modify_timer(timer_name, interval=0)
示例#5
0
	def stop(self,timer_name):
		print 'stopping timer: %s' % timer_name
		event.modify_timer(timer_name,interval=0)