Esempio n. 1
0
 def onUnitPlayerBecomeCreator(self, pInfo):
     if pInfo.isCurrentPlayer():
         self._showLeadershipNotification()
     chat = self.chat
     if chat:
         chat.as_addMessageS(
             messages.getUnitPlayerNotification(
                 settings.UNIT_NOTIFICATION_KEY.GIVE_LEADERSHIP, pInfo))
 def onUnitPlayerBecomeCreator(self, pInfo):
     if pInfo.isCurrentPlayer():
         self._showLeadershipNotification()
     chat = self.chat
     if chat:
         chat.as_addMessageS(
             messages.getUnitPlayerNotification(settings.UNIT_NOTIFICATION_KEY.GIVE_LEADERSHIP, pInfo)
         )
Esempio n. 3
0
 def __addPlayerNotification(self, key, pInfo):
     chat = self.chat
     if chat and not pInfo.isCurrentPlayer():
         chat.as_addMessageS(messages.getUnitPlayerNotification(key, pInfo))
Esempio n. 4
0
 def __addPlayerNotification(self, key, pInfo):
     chat = self.chat
     if chat and not pInfo.isCurrentPlayer():
         chat.as_addMessageS(messages.getUnitPlayerNotification(key, pInfo))