Mercurial > libervia-backend
comparison frontends/src/quick_frontend/quick_card_game.py @ 680:8281587eb528
primitivus, wix: fixed bridge methods calls for plugins radiocol and card game
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 22 Oct 2013 16:24:11 +0200 |
parents | 84a6e83157c2 |
children | 1fe00f0c9a91 |
comparison
equal
deleted
inserted
replaced
679:59c9a7ff903d | 680:8281587eb528 |
---|---|
116 if self._autoplay == None: | 116 if self._autoplay == None: |
117 return | 117 return |
118 if self._autoplay >= len(self.hand): | 118 if self._autoplay >= len(self.hand): |
119 self._autoplay = 0 | 119 self._autoplay = 0 |
120 card = self.hand[self._autoplay] | 120 card = self.hand[self._autoplay] |
121 self.parent.host.bridge.tarotGamePlayCards(self.player_nick, self.referee, [(card.suit, card.value)], profile_key = self.parent.host.profile) | 121 self.parent.host.bridge.tarotGamePlayCards(self.player_nick, self.referee, [(card.suit, card.value)], self.parent.host.profile) |
122 del self.hand[self._autoplay] | 122 del self.hand[self._autoplay] |
123 self.state = "wait" | 123 self.state = "wait" |
124 self._autoplay+=1 | 124 self._autoplay+=1 |
125 | 125 |
126 def showScores(self, xml_data, winners, loosers): | 126 def showScores(self, xml_data, winners, loosers): |