Commit graph libervia-backend/src/tools/plugins/games.py
Author SHA1 Message Date
souliane
ea67ed7a61 plugins (games): more factorization and flexibility for launching and joining games:
- "MUC user joined", "MUC user left" and class XMPPHandler are managed directly in RoomGame
- renamed __init__ parameters 'player_init_data' to 'player_init' and 'options' to 'game_init'
- pass the players list in radiocol method 'createGame' and signal 'radiocolStarted' (needed for invitation system and for UI players identification)
- added some parameters to manage who can invite, who can join, who to wait for... managed with check***Auth methods
- joining a game that is already launched may be possible, regarding these parameters and the invitation list
- leave and join a game again is partly managed: new tarot round is launched, we should keep playing the same round instead
2013-11-21 15:49:53 +01:00
souliane
d3c12524c9 plugins (games): add a method to send messages more easily 2013-11-18 14:25:40 +01:00
souliane
8190f82caf plugins (MUC, tools, games): generalize the generation of a unique room name when joining a MUC and no room is specified:
- method to get the MUC service moved to plugin_xep_0045
- joinMUC returns the muc name (given by user or generated)
- getUniqueName can receive a specified service in argument
2013-11-17 16:59:12 +01:00
souliane
3be7c13314 plugins (tools): collective games (with no opponent, like radiocol) were handled like other games 2013-11-17 16:30:46 +01:00
souliane
34947f8840 plugins radiocol, card_game, quiz: code factorization 2013-10-23 12:45:13 +02:00