diff libervia.py @ 39:305e81c7a32c

Tarot game: a game can now be finished
author Goffi <goffi@goffi.org>
date Sun, 22 May 2011 00:15:01 +0200
parents 7bea2ae0c4fb
children 7782a786b2f0
line wrap: on
line diff
--- a/libervia.py	Thu May 19 02:00:59 2011 +0200
+++ b/libervia.py	Sun May 22 00:15:01 2011 +0200
@@ -66,7 +66,8 @@
     def __init__(self):
         LiberviaJsonProxy.__init__(self, "/json_api",
                         ["getContacts", "sendMessage", "sendMblog", "getMblogNodes", "getProfileJid", "getHistory",
-                         "getPresenceStatus", "getRoomJoined", "launchTarotGame", "getTarotCardsPaths", "tarotGameReady", "tarotGameContratChoosed"])
+                         "getPresenceStatus", "getRoomJoined", "launchTarotGame", "getTarotCardsPaths", "tarotGameReady", "tarotGameContratChoosed",
+                         "tarotGamePlayCards"])
 
 class BridgeSignals(LiberviaJsonProxy):
     def __init__(self):
@@ -173,7 +174,10 @@
             self._tarotGameStartedCb(*args)
         elif name == 'tarotGameNew' or \
              name == 'tarotGameChooseContrat' or \
-             name == 'tarotGameShowCards':
+             name == 'tarotGameShowCards' or \
+             name == 'tarotGameInvalidCards' or \
+             name == 'tarotGameCardsPlayed' or \
+             name == 'tarotGameYourTurn':
             self._tarotGameGenericCb(name, args[0], args[1:])
 
     def _getProfileJidCB(self, jid):