plugin Tarot: added a launch method to automatically create a new room, invite players and create the game

- xep-0249 (direct MUC invitation) is used with a custom attribute to invite other users
- bridge: added tarotGameLaunch in frontend side
This commit is contained in:
Goffi 2011-05-06 15:42:26 +02:00
commit af4545070b

View file

@ -61,6 +61,9 @@ class DBusBridgeFrontend(BridgeFrontend):
def joinMUC(self, service, roomId, nick, profile_key='@DEFAULT@'):
return self.db_comm_iface.joinMUC(service, roomId, nick, profile_key)
def tarotGameLaunch(self, players, profile_key='@DEFAULT@'):
return self.db_comm_iface.tarotGameLaunch(players, profile_key)
def tarotGameCreate(self, room_jid, players, profile_key='@DEFAULT@'):
return self.db_comm_iface.tarotGameCreate(room_jid, players, profile_key)