diff frontends/wix/chat.py @ 90:4020931569b8

Tarot Game: session initialization
author Goffi <goffi@goffi.org>
date Sun, 23 May 2010 16:39:05 +0930
parents 66d784082930
children 1ca5f254ce41
line wrap: on
line diff
--- a/frontends/wix/chat.py	Thu May 13 16:27:48 2010 +0930
+++ b/frontends/wix/chat.py	Sun May 23 16:39:05 2010 +0930
@@ -108,11 +108,11 @@
             self.__createMenus_O2O()
             self.historyPrint(profile=self.host.profile)
     
-    def startGame(self, game_type, players):
+    def startGame(self, game_type, referee, players):
         """Configure the chat window to start a game"""
         if game_type=="Tarot":
             debug (_("configure chat window for Tarot game"))
-            self.tarot_panel = CardPanel(self, players, self.nick)
+            self.tarot_panel = CardPanel(self, referee, players, self.nick)
             self.sizer.Prepend(self.tarot_panel, 0, flag=wx.EXPAND)
             self.sizer.Layout()
             self.Fit()
@@ -248,4 +248,4 @@
             err_dlg = wx.MessageDialog(self, _("You need to be exactly 4 peoples in the room to start a Tarot game"), _("Can't start game"), style = wx.OK | wx.ICON_ERROR) #FIXME: gof: temporary only, need to choose the people with who the game has to be started
             err_dlg.ShowModal()
         else:
-            self.host.bridge.createTarotGame(self.id, list(self.occupants), self.host.profile)
+            self.host.bridge.tarotGameCreate(self.id, list(self.occupants), self.host.profile)