comparison libervia_server/__init__.py @ 381:b96b8b666d17

plugin card_game: update to use the new XMLUI mechanism + copy the autoplay mode from QuickFrontend: TODO: the new round is not starting after the scores have been displayed
author souliane <souliane@mailoo.org>
date Wed, 26 Feb 2014 02:28:19 +0100
parents 5e0e2032928c
children 2d782349b88a
comparison
equal deleted inserted replaced
380:5e0e2032928c 381:b96b8b666d17
400 400
401 def jsonrpc_tarotGameReady(self, player, referee): 401 def jsonrpc_tarotGameReady(self, player, referee):
402 """Tell to the server that we are ready to start the game""" 402 """Tell to the server that we are ready to start the game"""
403 profile = ISATSession(self.session).profile 403 profile = ISATSession(self.session).profile
404 self.sat_host.bridge.tarotGameReady(player, referee, profile) 404 self.sat_host.bridge.tarotGameReady(player, referee, profile)
405
406 def jsonrpc_tarotGameContratChoosed(self, player_nick, referee, contrat):
407 """Tell to the server that we are ready to start the game"""
408 profile = ISATSession(self.session).profile
409 self.sat_host.bridge.tarotGameContratChoosed(player_nick, referee, contrat, profile)
410 405
411 def jsonrpc_tarotGamePlayCards(self, player_nick, referee, cards): 406 def jsonrpc_tarotGamePlayCards(self, player_nick, referee, cards):
412 """Tell to the server the cards we want to put on the table""" 407 """Tell to the server the cards we want to put on the table"""
413 profile = ISATSession(self.session).profile 408 profile = ISATSession(self.session).profile
414 self.sat_host.bridge.tarotGamePlayCards(player_nick, referee, cards, profile) 409 self.sat_host.bridge.tarotGamePlayCards(player_nick, referee, cards, profile)