def prb_onKickedFromQueue(self):
     LOG_DEBUG('prb_onKickedFromQueue')
     message = messages.getPrbKickedFromQueueMessage(
         prb_getters.getPrebattleTypeName(self.getEntityType()))
     if message:
         SystemMessages.pushMessage(message,
                                    type=SystemMessages.SM_TYPE.Warning)
Beispiel #2
0
 def prb_onKickedFromQueue(self):
     """
     Prebattle listener for kick from queue.
     """
     LOG_DEBUG('prb_onKickedFromQueue')
     message = messages.getPrbKickedFromQueueMessage(prb_getters.getPrebattleTypeName(self.getEntityType()))
     if len(message):
         SystemMessages.pushMessage(message, type=SystemMessages.SM_TYPE.Warning)
Beispiel #3
0
 def getPrbTypeName(self):
     return prb_getters.getPrebattleTypeName(self.getEntityType())
Beispiel #4
0
 def getEntityTypeName(self):
     return prb_getters.getPrebattleTypeName(self.getEntityType())
Beispiel #5
0
def makePrebattleWaitingID(requestName):
    return '{0:>s}/{1:>s}'.format(prb_getters.getPrebattleTypeName().lower(),
                                  requestName)
Beispiel #6
0
 def getPrbTypeName(self):
     """
     Returns prebattle type name.
     """
     return prb_getters.getPrebattleTypeName(self.getEntityType())
Beispiel #7
0
def makePrebattleWaitingID(requestName):
    return '{0:>s}/{1:>s}'.format(prb_getters.getPrebattleTypeName().lower(), requestName)