Exemple #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'])())))()))())
Exemple #2
0
	def __init__(self):
		EventReceiver.__init__(self)

		commandExecutionHandler = EventHandler()

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

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

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

		self.attributes['signature']	= 'move_actor'
		self.attributes['function']		= self.moveActor
 def __init__(self, adjusters):
     EventHandler.__init__(self, adjusters)
     self.attributes['signature'] = 'menu_option_chosen'
Exemple #23
0
	def __init__(self):
		EventHandler.__init__(self)
		self.attributes['signature']	= 'player_entered'
		self.attributes['function']		= self.playerEnteredRoom
Exemple #24
0
	def __init__(self):
		EventHandler.__init__(self)

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

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