예제 #1
0
 def invalidateGold(self):
     """
     Updates states of nodes for which changed their access to buy after
     updates value of gold.
     :return: [(<int:vehicle compact descriptor>, <new state>), ... ]
     """
     return self._invalidateMoney(filter(lambda item: NODE_STATE.isBuyForGold(item['state']), self._getNodesToInvalidate()))
예제 #2
0
 def invalidateGold(self):
     """
     Updates states of nodes for which changed their access to buy after
     updates value of gold.
     :return: [(<int:vehicle compact descriptor>, <new state>), ... ]
     """
     return self._invalidateMoney(
         filter(lambda item: NODE_STATE.isBuyForGold(item['state']),
                self._getNodesToInvalidate()))
예제 #3
0
 def invalidateGold(self):
     return self._invalidateMoney(
         filter(lambda item: NODE_STATE.isBuyForGold(item['state']),
                self._getNodesToInvalidate()))
예제 #4
0
 def invalidateGold(self):
     return self._invalidateMoney(filter(lambda item: NODE_STATE.isBuyForGold(item['state']), self._getNodesToInvalidate()))
예제 #5
0
 def invalidateGold(self):
     return self._invalidateMoney([
         item for item in self._getNodesToInvalidate()
         if NODE_STATE.isBuyForGold(item.getState())
     ])