Mercurial > libervia-backend
diff frontends/quick_frontend/quick_chat.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 | 31632472e857 |
line wrap: on
line diff
--- a/frontends/quick_frontend/quick_chat.py Thu Jul 22 22:47:29 2010 +0800 +++ b/frontends/quick_frontend/quick_chat.py Mon Jul 26 19:43:44 2010 +0800 @@ -19,7 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. """ -from logging import debug, info, error +from logging import debug, info, warning, error from tools.jid import JID @@ -92,3 +92,12 @@ """Print message in chat window. Must be implemented by child class""" raise NotImplementedError + def startGame(self, game_type, referee, players): + """Configure the chat window to start a game""" + #No need to raise an error as game are not mandatory + warning(_('startGame is not implemented in this frontend')) + + def getGame(self, game_type): + """Return class managing the game type""" + #No need to raise an error as game are not mandatory + warning(_('getGame is not implemented in this frontend'))