def setRewards(self, rewards):
        rewardStructs = []
        for reward in makeTuple(rewards):
            if reward:
                rewardStructs.append(reward.getQuestRewardStruct())

        self.setRewardStructs(rewardStructs)
Example #2
0
 def setPrereqs(self, prereqs):
     self.prereqs = makeTuple(prereqs)
     self._giverPreqs = []
     self._avPreqs = []
     self._envPreqs = []
     for preq in self.prereqs:
         return None
 def setPrereqs(self, prereqs):
     self.prereqs = makeTuple(prereqs)
     self._giverPreqs = []
     self._avPreqs = []
     self._envPreqs = []
     for preq in self.prereqs:
         return None
Example #4
0
 def __init__(self, air, requiredDoIds, zones=None):
     DistributedObjectAI.__init__(self, air)
     if zones is None:
         zones = (2,)
     else:
         zones = makeTuple(zones)
     self.zones = zones
     self.requiredDoIds = requiredDoIds
 def setRewards(self, rewards):
     rewardStructs = []
     for reward in makeTuple(rewards):
         if reward:
             rewardStructs.append(reward.getQuestRewardStruct())
             continue
     
     self.setRewardStructs(rewardStructs)
Example #6
0
 def findNodes(names, model=self.bg):
     results = []
     for name in names:
         # if name is a tuple we need to look for the first match
         for nm in makeTuple(name):
             node = model.find('**/%s' % nm)
             if not node.isEmpty():
                 results.append(node)
                 break
     return results
Example #7
0
File: SCMenu.py Project: nate97/src
        def findNodes(names, model = self.bg):
            results = []
            for name in names:
                for nm in makeTuple(name):
                    node = model.find('**/%s' % nm)
                    if not node.isEmpty():
                        results.append(node)
                        break

            return results
Example #8
0
        def findNodes(names, model=self.bg):
            results = []
            for name in names:
                for nm in makeTuple(name):
                    node = model.find('**/%s' % nm)
                    if not node.isEmpty():
                        results.append(node)
                        break

            return results
 def setQuestGivers(self, questGivers):
     self.questGivers = makeTuple(questGivers)
Example #10
0
 def setQuestGivers(self, questGivers):
     self.questGivers = makeTuple(questGivers)
Example #11
0
 def setQuestIds(self, questIds):
     self.questIds = makeTuple(questIds)
Example #12
0
 def setChainedQuests(self, chainedQuests):
     self.chainedQuests = makeTuple(chainedQuests)
 def setTasks(self, tasks):
     self.tasks = makeTuple(tasks)
Example #14
0
 def setFinalizeInfo(self, finalizeInfo):
     self.finalizeInfo = makeTuple(finalizeInfo)
Example #15
0
 def setInstanceInfo(self, instanceInfo):
     self.instanceInfo = makeTuple(instanceInfo)
Example #16
0
 def setTasks(self, tasks):
     self.tasks = makeTuple(tasks)
Example #17
0
 def setRewards(self, rewards):
     self.rewards = makeTuple(rewards)
 def setQuestIds(self, questIds):
     self.questIds = makeTuple(questIds)
 def setChainedQuests(self, chainedQuests):
     self.chainedQuests = makeTuple(chainedQuests)
 def setInstanceInfo(self, instanceInfo):
     self.instanceInfo = makeTuple(instanceInfo)
 def setFinalizeInfo(self, finalizeInfo):
     self.finalizeInfo = makeTuple(finalizeInfo)
 def setRewards(self, rewards):
     self.rewards = makeTuple(rewards)