def setRewards(self, rewards): rewardStructs = [] for reward in makeTuple(rewards): if reward: rewardStructs.append(reward.getQuestRewardStruct()) self.setRewardStructs(rewardStructs)
def setPrereqs(self, prereqs): self.prereqs = makeTuple(prereqs) self._giverPreqs = [] self._avPreqs = [] self._envPreqs = [] for preq in self.prereqs: return None
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)
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
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 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)
def setQuestIds(self, questIds): self.questIds = makeTuple(questIds)
def setChainedQuests(self, chainedQuests): self.chainedQuests = makeTuple(chainedQuests)
def setTasks(self, tasks): self.tasks = makeTuple(tasks)
def setFinalizeInfo(self, finalizeInfo): self.finalizeInfo = makeTuple(finalizeInfo)
def setInstanceInfo(self, instanceInfo): self.instanceInfo = makeTuple(instanceInfo)
def setRewards(self, rewards): self.rewards = makeTuple(rewards)