if ev.type == pgl.KEYDOWN:
if ev.key in (pgl.K_RETURN, pgl.K_KP_ENTER):
self.state.gameboard.change_mode()
- # FIXME: also need to signal the correct action
- # here
+ self.card.actions[self.chosen].perform_action(
+ self.state.gameboard, self.card)
InvalidateTheWorld.post()
return True
if ev.key in (pgl.K_UP, pgl.K_w):