Mercurial > libervia-backend
comparison frontends/quick_frontend/quick_app.py @ 144:80661755ea8d
Primitivus: Tarot card game implementation
- quick frontend: card_game added
- wix: card_game splitted with quick frontend
- tools: new game library
- primitivus: new card_game widget (not finished yet)
- primitivus: SàT XML UI management: first draft
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 26 Jul 2010 19:43:44 +0800 |
parents | a86607e5cf38 |
children | 63d20bda5754 |
comparison
equal
deleted
inserted
replaced
143:119f45746fde | 144:80661755ea8d |
---|---|
295 debug (_("New Tarot Game")) | 295 debug (_("New Tarot Game")) |
296 if self.chat_wins.has_key(room_jid): | 296 if self.chat_wins.has_key(room_jid): |
297 self.chat_wins[room_jid].getGame("Tarot").newGame(hand) | 297 self.chat_wins[room_jid].getGame("Tarot").newGame(hand) |
298 | 298 |
299 def tarotChooseContrat(self, room_jid, xml_data, profile): | 299 def tarotChooseContrat(self, room_jid, xml_data, profile): |
300 """Called when the player has too select his contrat""" | 300 """Called when the player has to select his contrat""" |
301 if not self.check_profile(profile): | 301 if not self.check_profile(profile): |
302 return | 302 return |
303 debug (_("Tarot: need to select a contrat")) | 303 debug (_("Tarot: need to select a contrat")) |
304 if self.chat_wins.has_key(room_jid): | 304 if self.chat_wins.has_key(room_jid): |
305 self.chat_wins[room_jid].getGame("Tarot").chooseContrat(xml_data) | 305 self.chat_wins[room_jid].getGame("Tarot").chooseContrat(xml_data) |