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

		commandExecutionHandler = EventHandler()

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

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

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

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

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

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