Ejemplo n.º 1
0
Archivo: slash.py Proyecto: neuront/sgs
 def __init__(self, game_control, user, target, cards, action):
     players = game_control.players_from_current()
     flow.ActionFlow.__init__(
                 self, game_control,
                 flow.map_action(lambda p: p.slashing_char, players) +
                   flow.map_action(lambda p: p.slashing_equip, players) +
                   flow.map_action(lambda p: p.slashed_char, players) +
                   flow.map_action(lambda p: p.slashed_equip, players))
     self.user = user
     self.target = target
     self.cards = cards
     self.action = action
     self.response_frame = target.response_frame('dodge', game_control)
     self.push_tail_action(self.tail_action)
Ejemplo n.º 2
0
 def __init__(self, game_control, action, interfaces, hints, **kwargs):
     players = game_control.players_from_current()
     flow.ActionFlow.__init__(
         self,
         game_control,
         flow.map_action(lambda p: p.cards_used_char, players)
         + flow.map_action(lambda p: p.cards_used_equip, players),
     )
     self.user = kwargs["user"]
     self.cards = kwargs["cards"]
     self.targets_ids = kwargs["targets_ids"]
     self.action = action
     self.interfaces = interfaces
     self.hints = hints