Mercurial > libervia-backend
comparison frontends/wix/card_game.py @ 158:74aaf230a7c3
wix, quick_frontend: deactivated autoplay in Tarot game
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 04 Aug 2010 17:53:20 +0800 |
parents | 63d20bda5754 |
children | ae50b53ff868 |
comparison
equal
deleted
inserted
replaced
157:13888bdb72b6 | 158:74aaf230a7c3 |
---|---|
119 @param invalid_cards: cards which are invalid""" | 119 @param invalid_cards: cards which are invalid""" |
120 QuickCardGame.invalidCards(self, phase, played_cards, invalid_cards) | 120 QuickCardGame.invalidCards(self, phase, played_cards, invalid_cards) |
121 | 121 |
122 self._recalc_ori() | 122 self._recalc_ori() |
123 self.Refresh() | 123 self.Refresh() |
124 #gof: wx.MessageDialog(self, _("Cards played are invalid !"), _("Error"), wx.OK | wx.ICON_ERROR).ShowModal() | 124 wx.MessageDialog(self, _("Cards played are invalid !"), _("Error"), wx.OK | wx.ICON_ERROR).ShowModal() |
125 | 125 |
126 def _is_on_hand(self, pos_x, pos_y): | 126 def _is_on_hand(self, pos_x, pos_y): |
127 """Return True if the coordinate are on the hand cards""" | 127 """Return True if the coordinate are on the hand cards""" |
128 if pos_x > self.orig_x and pos_y > self.orig_y \ | 128 if pos_x > self.orig_x and pos_y > self.orig_y \ |
129 and pos_x < self.orig_x + (len(self.hand)+1) * self.visible_size \ | 129 and pos_x < self.orig_x + (len(self.hand)+1) * self.visible_size \ |