Mercurial > libervia-web
comparison browser_side/card_game.py @ 275:a763b2ac5d41
bridge + browser_side: bridge signals for games and their callbacks:
- added radiocolPlayers and tarotGamePlayers to get the list of players
- added roomLeft to remove the muc from the host's room list
- display symbols to identify the players in a muc
- factorization of ChatPanel.startGame
author | souliane <souliane@mailoo.org> |
---|---|
date | Thu, 21 Nov 2013 16:13:14 +0100 |
parents | 8fdd20399a06 |
children | aebb96bfa8d1 |
comparison
equal
deleted
inserted
replaced
274:886b47896f3c | 275:a763b2ac5d41 |
---|---|
119 self._parent.playCard(self) | 119 self._parent.playCard(self) |
120 | 120 |
121 | 121 |
122 class CardPanel(DockPanel, ClickHandler): | 122 class CardPanel(DockPanel, ClickHandler): |
123 | 123 |
124 def __init__(self, parent, referee, players, player_nick): | 124 def __init__(self, parent, referee, player_nick, players): |
125 DockPanel.__init__(self) | 125 DockPanel.__init__(self) |
126 ClickHandler.__init__(self) | 126 ClickHandler.__init__(self) |
127 self._parent = parent | 127 self._parent = parent |
128 self._autoplay = None # XXX: use 0 to activate fake play, None else | 128 self._autoplay = None # XXX: use 0 to activate fake play, None else |
129 self.referee = referee | 129 self.referee = referee |