Beispiel #1
0
			def __init__(self, player, contexts=None, actions=None, prio=0):
				if not contexts:
					contexts = []
				if not actions:
					actions = {}
				NumberActionMap.__init__(self, contexts, actions, prio)
				self.player = player
Beispiel #2
0
			def __init__(self, player, contexts=None, actions=None, prio=0):
				if not contexts:
					contexts = []
				if not actions:
					actions = {}
				NumberActionMap.__init__(self, contexts, actions, prio)
				self.player = player
Beispiel #3
0
	def __init__(self, parent, context, actions, prio):
		alist = []
		adict = {}
		for (action, funchelp) in actions.iteritems():
			alist.append((action, funchelp[1]))
			adict[action] = funchelp[0]
		NumberActionMap.__init__(self, [context], adict, prio)
		parent.helpList.append((self, context, alist))
Beispiel #4
0
			def __init__(self, player, contexts = [ ], actions = { }, prio=0):
				NumberActionMap.__init__(self, contexts, actions, prio)
				self.player = player
Beispiel #5
0
			def __init__(self, player, contexts = [ ], actions = { }, prio=0):
				NumberActionMap.__init__(self, contexts, actions, prio)
				self.player = player
Beispiel #6
0
 def __init__(self, menu, contexts = [], actions = {}, prio = -1):
     NumberActionMap.__init__(self, contexts, actions, prio)
     self.menu = menu
Beispiel #7
0
 def __init__(self, menu, contexts=[], actions={}, prio=-1):
     NumberActionMap.__init__(self, contexts, actions, prio)
     self.menu = menu