예제 #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
파일: Item.py 프로젝트: longstl/python_mud
	def __init__(self, adjusters):
		EventHandler.__init__(self, adjusters)
		self.attributes['signature'] = 'actor_grabbed_item'
예제 #6
0
파일: Item.py 프로젝트: longstl/python_mud
	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
파일: Actor.py 프로젝트: longstl/python_mud
	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
파일: Item.py 프로젝트: longstl/python_mud
	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
파일: NPC.py 프로젝트: longstl/python_mud
	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