action = self.card.actions[self.chosen]
if not action.check_available(player):
sound.play_sound('error.ogg')
- print "BEEP!"
else:
action.perform_action(self.state.gameboard, self.card)
self.state.gameboard.replace_card(player.position)
sound.play_sound('change_action.ogg')
self.chosen += 1
return finish_event()
+ if ev.key in KEYS.SWITCH:
+ sound.play_sound('change_action.ogg')
+ if self.chosen + 1 < len(self.card.actions):
+ self.chosen += 1
+ else:
+ self.chosen = 0
+ return finish_event()
return super(InfoAreaWidget, self).handle_event(ev)