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

		commandExecutionHandler = EventHandler()

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

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

		self.attributes['signature']	= 'execute_command'
		self.attributes['function']		= self.executeCommand
Example #9
0
 def __init__(self, adjusters):
     EventHandler.__init__(self, adjusters)
     self.attributes['signature'] = 'item_dropped'
Example #10
0
	def __init__(self, adjusters):
		EventHandler.__init__(self, adjusters)
		self.attributes['signature'] = 'received_feedback'
Example #11
0
	def __init__(self, adjusters):
		EventHandler.__init__(self, adjusters)
		self.attributes['signature'] ='actor_moved_from_room'
Example #12
0
	def __init__(self, adjusters):
		EventHandler.__init__(self, adjusters)
		self.attributes['signature'] ='actor_emoted'
Example #13
0
	def __init__(self, adjusters):
		EventHandler.__init__(self, adjusters)
		self.attributes['signature'] = 'actor_viewed_equipment'
Example #14
0
	def __init__(self, adjusters):
		EventHandler.__init__(self, adjusters)
		self.attributes['signature'] ='broadcast_to_all_players'
Example #15
0
	def __init__(self, adjusters):
		EventHandler.__init__(self, adjusters)
		self.attributes['signature'] ='gained_health_from_tick'
Example #16
0
 def __init__(self):
     EventHandler.__init__(self)
     self.attributes["signature"] = "actor_observed"
     self.attributes["function"] = self.actorObserved
Example #17
0
 def __init__(self, adjusters):
     EventHandler.__init__(self, adjusters)
     self.attributes['signature'] = 'game_tick'
Example #18
0
	def __init__(self, adjusters):
		EventHandler.__init__(self, adjusters)
		self.attributes['signature'] ='entity_described_self'
Example #19
0
 def __init__(self, adjusters):
     EventHandler.__init__(self, adjusters)
     self.attributes['signature'] = 'actor_attempted_item_removal'
Example #20
0
	def __init__(self, adjusters):
		EventHandler.__init__(self, adjusters)
		self.attributes['signature'] = 'received_notification'
Example #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'
Example #23
0
	def __init__(self):
		EventHandler.__init__(self)
		self.attributes['signature']	= 'player_entered'
		self.attributes['function']		= self.playerEnteredRoom
Example #24
0
	def __init__(self):
		EventHandler.__init__(self)

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

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