comparison src/plugins/plugin_misc_quiz.py @ 450:afe9cfd2ddbb

plugins: radio collective first draft
author Goffi <goffi@goffi.org>
date Thu, 05 Jan 2012 00:21:30 +0100
parents f964dcec1611
children cf005701624b
comparison
equal deleted inserted replaced
449:961543b20806 450:afe9cfd2ddbb
62 def __init__(self, host): 62 def __init__(self, host):
63 info(_("Plugin Quiz initialization")) 63 info(_("Plugin Quiz initialization"))
64 self.host = host 64 self.host = host
65 self.games={} 65 self.games={}
66 self.waiting_inv = {} #Invitation waiting for people to join to launch a game 66 self.waiting_inv = {} #Invitation waiting for people to join to launch a game
67 host.bridge.addMethod("quizGameLaunch", ".plugin", in_sign='ass', out_sign='', method=self.quizGameLaunch) #args: room_jid, players, profile 67 host.bridge.addMethod("quizGameLaunch", ".plugin", in_sign='ass', out_sign='', method=self.quizGameLaunch) #args: players, profile
68 host.bridge.addMethod("quizGameCreate", ".plugin", in_sign='sass', out_sign='', method=self.quizGameCreate) #args: room_jid, players, profile 68 host.bridge.addMethod("quizGameCreate", ".plugin", in_sign='sass', out_sign='', method=self.quizGameCreate) #args: room_jid, players, profile
69 host.bridge.addMethod("quizGameReady", ".plugin", in_sign='sss', out_sign='', method=self.newPlayerReady) #args: player, referee, profile 69 host.bridge.addMethod("quizGameReady", ".plugin", in_sign='sss', out_sign='', method=self.newPlayerReady) #args: player, referee, profile
70 host.bridge.addMethod("quizGameAnswer", ".plugin", in_sign='ssss', out_sign='', method=self.playerAnswer) 70 host.bridge.addMethod("quizGameAnswer", ".plugin", in_sign='ssss', out_sign='', method=self.playerAnswer)
71 host.bridge.addSignal("quizGameStarted", ".plugin", signature='ssass') #args: room_jid, referee, players, profile 71 host.bridge.addSignal("quizGameStarted", ".plugin", signature='ssass') #args: room_jid, referee, players, profile
72 host.bridge.addSignal("quizGameNew", ".plugin", 72 host.bridge.addSignal("quizGameNew", ".plugin",