def changeTeam(self, accID, slot): roster = int(slot) settings = self.prbFunctional.getSettings() if not slot: roster = settings[PREBATTLE_SETTING_NAME.DEFAULT_ROSTER] if not roster & PREBATTLE_ROSTER.UNASSIGNED: roster |= PREBATTLE_ROSTER.UNASSIGNED result = yield self.prbDispatcher.sendPrbRequest(context.AssignPrbCtx(accID, roster, waitingID='prebattle/assign')) if not result: self.__showActionErrorMessage()
def requestToUnassign(self, pID): yield self.prbDispatcher.sendPrbRequest( context.AssignPrbCtx(pID, PREBATTLE_ROSTER.UNASSIGNED_IN_TEAM1, 'prebattle/assign'))
def requestToUnassignMember(self, pID): yield self.prbDispatcher.sendPrbRequest( context.AssignPrbCtx( pID, self._getPlayerTeam() | PREBATTLE_ROSTER.UNASSIGNED, 'prebattle/assign'))