Пример #1
0
	def __init__(self):
		EventHandler.__init__(self)
		self.attributes['signature']	= 'received_notification'
		self.attributes['function']		= (lambda receiver, event :
												(lambda : 
													receiver.sendFinal((lambda :
																 		lib.ANSI.yellow('\n\r### {}\n\r'.format((lambda : 
																											event.attributes['data']['message'])())))()))())
Пример #2
0
	def __init__(self):
		EventReceiver.__init__(self)

		commandExecutionHandler = EventHandler()

		commandExecutionHandler.attributes['signature'] = 'execute_command'
		commandExecutionHandler.attributes['function']	= self.execute

		self.addEventHandler(commandExecutionHandler)
Пример #3
0
 def __init__(self):
     EventHandler.__init__(self)
     self.attributes["signature"] = "actor_exited"
     self.attributes["function"] = self.playerExited
Пример #4
0
	def __init__(self, adjusters):
		EventHandler.__init__(self, adjusters)
		self.attributes['signature'] = 'actor_attempted_item_removal'
Пример #5
0
	def __init__(self, adjusters):
		EventHandler.__init__(self, adjusters)
		self.attributes['signature'] = 'actor_grabbed_item'
Пример #6
0
	def __init__(self, adjusters):
		EventHandler.__init__(self, adjusters)
		self.attributes['signature'] ='was_observed'
Пример #7
0
	def __init__(self):
		EventHandler.__init__(self)
		self.attributes['signature']	= 'actor_emoted'
		self.attributes['function']		= self.actorEmoted
Пример #8
0
	def __init__(self):
		EventHandler.__init__(self)

		self.attributes['signature']	= 'execute_command'
		self.attributes['function']		= self.executeCommand
Пример #9
0
 def __init__(self, adjusters):
     EventHandler.__init__(self, adjusters)
     self.attributes['signature'] = 'item_dropped'
Пример #10
0
	def __init__(self, adjusters):
		EventHandler.__init__(self, adjusters)
		self.attributes['signature'] = 'received_feedback'
Пример #11
0
	def __init__(self, adjusters):
		EventHandler.__init__(self, adjusters)
		self.attributes['signature'] ='actor_moved_from_room'
Пример #12
0
	def __init__(self, adjusters):
		EventHandler.__init__(self, adjusters)
		self.attributes['signature'] ='actor_emoted'
Пример #13
0
	def __init__(self, adjusters):
		EventHandler.__init__(self, adjusters)
		self.attributes['signature'] = 'actor_viewed_equipment'
Пример #14
0
	def __init__(self, adjusters):
		EventHandler.__init__(self, adjusters)
		self.attributes['signature'] ='broadcast_to_all_players'
Пример #15
0
	def __init__(self, adjusters):
		EventHandler.__init__(self, adjusters)
		self.attributes['signature'] ='gained_health_from_tick'
Пример #16
0
 def __init__(self):
     EventHandler.__init__(self)
     self.attributes["signature"] = "actor_observed"
     self.attributes["function"] = self.actorObserved
Пример #17
0
 def __init__(self, adjusters):
     EventHandler.__init__(self, adjusters)
     self.attributes['signature'] = 'game_tick'
Пример #18
0
	def __init__(self, adjusters):
		EventHandler.__init__(self, adjusters)
		self.attributes['signature'] ='entity_described_self'
Пример #19
0
 def __init__(self, adjusters):
     EventHandler.__init__(self, adjusters)
     self.attributes['signature'] = 'actor_attempted_item_removal'
Пример #20
0
	def __init__(self, adjusters):
		EventHandler.__init__(self, adjusters)
		self.attributes['signature'] = 'received_notification'
Пример #21
0
	def __init__(self):
		EventHandler.__init__(self)

		self.attributes['signature']	= 'move_actor'
		self.attributes['function']		= self.moveActor
Пример #22
0
 def __init__(self, adjusters):
     EventHandler.__init__(self, adjusters)
     self.attributes['signature'] = 'menu_option_chosen'
Пример #23
0
	def __init__(self):
		EventHandler.__init__(self)
		self.attributes['signature']	= 'player_entered'
		self.attributes['function']		= self.playerEnteredRoom
Пример #24
0
	def __init__(self):
		EventHandler.__init__(self)

		self.attributes['signature']	= 'broadcast_to_all_players'
		self.attributes['function']		= self.broadcastToAllPlayers
Пример #25
0
	def __init__(self, adjusters):
		EventHandler.__init__(self, adjusters)
		self.attributes['signature'] = 'item_dropped'
Пример #26
0
	def __init__(self):
		EventHandler.__init__(self)

		self.attributes['signature']	= 'player_logout'
		self.attributes['function']		= self.playerLogout
Пример #27
0
	def __init__(self, adjusters):
		EventHandler.__init__(self, adjusters)
		self.attributes['signature'] ='player_login'
Пример #28
0
	def __init__(self, adjusters):
		EventHandler.__init__(self, adjusters)
		self.attributes['signature'] = 'menu_option_chosen'
Пример #29
0
 def __init__(self):
     EventHandler.__init__(self)
     self.attributes["signature"] = "player_entered"
     self.attributes["function"] = self.playerEntered
Пример #30
0
	def __init__(self, adjusters):
		EventHandler.__init__(self, adjusters)
		self.attributes['signature'] ='player_logout'
Пример #31
0
 def __init__(self):
     EventHandler.__init__(self)
     self.attributes["signature"] = "player_logout"
     self.attributes["function"] = self.playerExited
Пример #32
0
	def __init__(self, adjusters):
		EventHandler.__init__(self, adjusters)
		self.attributes['signature'] ='spell_cast_attempted'
Пример #33
0
 def __init__(self, adjusters):
     EventHandler.__init__(self, adjusters)
     self.attributes['signature'] = 'was_observed'
Пример #34
0
	def __init__(self, adjusters):
		EventHandler.__init__(self, adjusters)
		self.attributes['signature'] ='actor_emoted'
Пример #35
0
 def __init__(self, adjusters):
     EventHandler.__init__(self, adjusters)
     self.attributes['signature'] = 'gained_health_from_tick'
Пример #36
0
	def __init__(self, adjusters):
		EventHandler.__init__(self, adjusters)
		self.attributes['signature'] ='game_tick'
Пример #37
0
 def __init__(self, adjusters):
     EventHandler.__init__(self, adjusters)
     self.attributes['signature'] = 'actor_grabbed_item'
Пример #38
0
	def __init__(self):
		EventHandler.__init__(self)
		self.attributes['signature']	= 'entity_described_self'
		self.attributes['function']		= self.entityDescribedSelf
Пример #39
0
 def __init__(self, adjusters):
     EventHandler.__init__(self, adjusters)
     self.attributes['signature'] = 'actor_moved_from_room'
Пример #40
0
	def __init__(self):
		EventHandler.__init__(self)
		self.attributes['signature']	= 'received_feedback'
		self.attributes['function']		= self.receivedFeedback
Пример #41
0
 def __init__(self, adjusters):
     EventHandler.__init__(self, adjusters)
     self.attributes['signature'] = 'execute_command'
Пример #42
0
	def __init__(self):
		EventHandler.__init__(self)
		self.attributes['signature']	= 'was_observed'
		self.attributes['function']		= self.wasObserved