def _doSendTeamMsg(self, messenger, cellIndex=None):
     if self._isDone.get('msg'):
         return
     msg = self._currentParam.get('ImSpotted').format(pos=MinimapInfo.getCellName(cellIndex))
     if not msg:
         return
     log.info('[{}]: action: send message to team channel: "{}"'.format(self._currentIndex, msg))
     ret = messenger.sendTeam(msg)
     self._isDone['msg'] = ret
 def _doSendSquadMsg(self, messenger, cellIndex=None):
     if self._isDone.get('msg'):
         return
     msg = self._currentParam.get('ImSpotted').format(pos=MinimapInfo.getCellName(cellIndex))
     if not msg:
         return
     if not 'squad' in messenger.getChannelLabels():
         log.info('[{}]: action: no squad channel, skip.'.format(self._currentIndex))
         return
     log.info('[{}]: action: send message to squad channel: "{}"'.format(self._currentIndex, msg))
     ret = messenger.sendSquad(msg)
     self._isDone['msg'] = ret
 def _doPing(self, messenger, cellIndex=None):
     if self._isDone.get('ping') or not cellIndex:
         return
     log.info('[{}]: action: do ping at {}'.format(self._currentIndex, MinimapInfo.getCellName(cellIndex)))
     messenger.doPing(cellIndex)
     self._isDone['ping'] = True