comparison frontends/wix/card_game.py @ 150:63d20bda5754

Primitivus: Tarot game Tarot game is now playable, scores are not showed yet.
author Goffi <goffi@goffi.org>
date Wed, 28 Jul 2010 19:58:10 +0800
parents 80661755ea8d
children 74aaf230a7c3
comparison
equal deleted inserted replaced
149:3c3f70c01333 150:63d20bda5754
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 wx.MessageDialog(self, _("Cards played are invalid !"), _("Error"), wx.OK | wx.ICON_ERROR).ShowModal() 124 #gof: 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 \