Mercurial > libervia-backend
comparison 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 |
comparison
equal
deleted
inserted
replaced
143:119f45746fde | 144:80661755ea8d |
---|---|
17 | 17 |
18 You should have received a copy of the GNU General Public License | 18 You should have received a copy of the GNU General Public License |
19 along with this program. If not, see <http://www.gnu.org/licenses/>. | 19 along with this program. If not, see <http://www.gnu.org/licenses/>. |
20 """ | 20 """ |
21 | 21 |
22 from logging import debug, info, error | 22 from logging import debug, info, warning, error |
23 from tools.jid import JID | 23 from tools.jid import JID |
24 | 24 |
25 | 25 |
26 | 26 |
27 class QuickChat(): | 27 class QuickChat(): |
90 | 90 |
91 def printMessage(self, from_jid, msg, profile, timestamp): | 91 def printMessage(self, from_jid, msg, profile, timestamp): |
92 """Print message in chat window. Must be implemented by child class""" | 92 """Print message in chat window. Must be implemented by child class""" |
93 raise NotImplementedError | 93 raise NotImplementedError |
94 | 94 |
95 def startGame(self, game_type, referee, players): | |
96 """Configure the chat window to start a game""" | |
97 #No need to raise an error as game are not mandatory | |
98 warning(_('startGame is not implemented in this frontend')) | |
99 | |
100 def getGame(self, game_type): | |
101 """Return class managing the game type""" | |
102 #No need to raise an error as game are not mandatory | |
103 warning(_('getGame is not implemented in this frontend')) |