def getStateDef(self, state): returnValue = libpanda._inPWvim_yvN(self.this, state) import NodePath returnObject = NodePath.NodePath(None) returnObject.this = returnValue if returnObject.this == 0: return None return returnObject return
def getIntoNodePath(self): returnValue = libpanda._inPHwca_3Sn(self.this) import NodePath returnObject = NodePath.NodePath(None) returnObject.this = returnValue if returnObject.this == 0: return None return returnObject
def getLookAt(self): returnValue = libpanda._inPkJyodWpx(self.this) import NodePath returnObject = NodePath.NodePath(None) returnObject.this = returnValue if returnObject.this == 0: return None return returnObject return
def getReference(self): returnValue = libpanda._inPkJyo_Dfu(self.this) import NodePath returnObject = NodePath.NodePath(None) returnObject.this = returnValue if returnObject.this == 0: return None return returnObject return
def getArrowModel(): returnValue = libtoontown._inPPj7bet3M() import NodePath returnObject = NodePath.NodePath(None) returnObject.this = returnValue if returnObject.this == 0: return None return returnObject return
def getQuitButton(state): returnValue = libtoontown._inPPj7bLDE7(state) import NodePath returnObject = NodePath.NodePath(None) returnObject.this = returnValue if returnObject.this == 0: return None return returnObject return
def getCamera(): returnValue = libtoontown._inPPj7beEEo() import NodePath returnObject = NodePath.NodePath(None) returnObject.this = returnValue if returnObject.this == 0: return None return returnObject return
def getCursorDef(self): returnValue = libpanda._inPWvimlf6N(self.this) import NodePath returnObject = NodePath.NodePath(None) returnObject.this = returnValue if returnObject.this == 0: return None return returnObject
def getScene(self): returnValue = libpanda._inPkJyo_CJc(self.this) import NodePath returnObject = NodePath.NodePath(None) returnObject.this = returnValue if returnObject.this == 0: return None return returnObject
def getAvatar(self): returnValue = libtoontown._inPPj7bA2vB(self.this) import NodePath returnObject = NodePath.NodePath(None) returnObject.this = returnValue if returnObject.this == 0: return None return returnObject
def __init__(self, root: Node): from CommandParser import CommandParser from CommandInterpreter import CommandInterpreter self._root = root self.interpreter = CommandInterpreter(self._root) self.parser = CommandParser() self.current_path = NodePath() self.current_path.is_absolute = True
def getNameIcon(self): returnValue = libtoontown._inPPj7bVM7o(self.this) import NodePath returnObject = NodePath.NodePath(None) returnObject.this = returnValue if returnObject.this == 0: return None return returnObject return
def getNametagCard(): returnValue = libtoontown._inPPj7bbqdr() import NodePath returnObject = NodePath.NodePath(None) returnObject.this = returnValue if returnObject.this == 0: return None return returnObject return
def getToon(): returnValue = libtoontown._inPPj7bu_Rg() import NodePath returnObject = NodePath.NodePath(None) returnObject.this = returnValue if returnObject.this == 0: return None return returnObject return
def getOther(self): returnValue = libdirect._inPSpsCTM_v(self.this) import NodePath returnObject = NodePath.NodePath(None) returnObject.this = returnValue if returnObject.this == 0: return None return returnObject return
def getCamera(self): returnValue = libpanda._inPO9cYM2LQ(self.this) import NodePath returnObject = NodePath.NodePath(None) returnObject.this = returnValue if returnObject.this == 0: return None return returnObject return
def getRelTo(self): returnValue = libpanda._inPziw5Nggh(self.this) import NodePath returnObject = NodePath.NodePath(None) returnObject.this = returnValue if returnObject.this == 0: return None return returnObject
def findNode(self, dnaString): returnValue = libtoontown._inPet4yz7Kg(self.this, dnaString) import NodePath returnObject = NodePath.NodePath(None) returnObject.this = returnValue if returnObject.this == 0: return None returnObject.userManagesMemory = 1 return returnObject return
def getPath(self, index): returnValue = libpanda._inPkJyo02PJ(self.this, index) import NodePath returnObject = NodePath.NodePath(None) returnObject.this = returnValue if returnObject.this == 0: return None returnObject.userManagesMemory = 1 return returnObject
def getVertexSpace(self, i, relTo): returnValue = libpanda._inPHc9WMK37(self.this, i, relTo.this) import NodePath returnObject = NodePath.NodePath(None) returnObject.this = returnValue if returnObject.this == 0: return None returnObject.userManagesMemory = 1 return returnObject return
def instanceToStateDef(self, state, path): returnValue = libpanda._inPWvimR1k9(self.this, state, path.this) import NodePath returnObject = NodePath.NodePath(None) returnObject.this = returnValue if returnObject.this == 0: return None returnObject.userManagesMemory = 1 return returnObject return
def __overloaded_traverse_ptrDNAGroup_ptrNodePath_ptrDNAStorage_int(self, parent, store, editing): returnValue = libtoontown._inPet4yyAUW(self.this, parent.this, store.this, editing) import NodePath returnObject = NodePath.NodePath(None) returnObject.this = returnValue if returnObject.this == 0: return None returnObject.userManagesMemory = 1 return returnObject return
def _get_subnode_by_path(self, path: NodePath): path = NodePath.cast(path) if len(path) == 0: return self next_node = self._get_subnode_by_name(path.pop(0)) if next_node is None: return None return next_node._get_subnode_by_path(path)
def __overloaded_topLevelTraverse_ptrDNAGroup_ptrNodePath_ptrDNAStorage(self, parent, store): returnValue = libtoontown._inPet4yVnuf(self.this, parent.this, store.this) import NodePath returnObject = NodePath.NodePath(None) returnObject.this = returnValue if returnObject.this == 0: return None returnObject.userManagesMemory = 1 return returnObject return
def generate(self): if self.butterfly == None: self.butterfly = Actor.Actor() self.butterfly.loadModel('phase_4/models/props/SZ_butterfly-mod.bam') self.butterfly.loadAnims({'flutter': 'phase_4/models/props/SZ_butterfly-flutter.bam', 'glide': 'phase_4/models/props/SZ_butterfly-glide.bam', 'land': 'phase_4/models/props/SZ_butterfly-land.bam'}) index = self.doId % len(self.wingTypes) chosenType = self.wingTypes[index] node = self.butterfly.getGeomNode() for type in self.wingTypes: wing = node.find('**/' + type) if type != chosenType: wing.hide() else: if index == 0 or index == 1: color = self.yellowColors[self.doId % len(self.yellowColors)] else: if index == 2 or index == 3: color = self.whiteColors[self.doId % len(self.whiteColors)] else: if index == 4: color = self.paleYellowColors[self.doId % len(self.paleYellowColors)] else: color = Vec4(1, 1, 1, 1) wing.setColor(color) self.butterfly2 = Actor.Actor(other=self.butterfly) self.butterfly.enableBlend(blendType=PartBundle.BTLinear) self.butterfly.loop('flutter') self.butterfly.loop('land') self.butterfly.loop('glide') rng = RandomNumGen.RandomNumGen(self.doId) playRate = 0.6 + 0.8 * rng.random() self.butterfly.setPlayRate(playRate, 'flutter') self.butterfly.setPlayRate(playRate, 'land') self.butterfly.setPlayRate(playRate, 'glide') self.butterfly2.setPlayRate(playRate, 'flutter') self.butterfly2.setPlayRate(playRate, 'land') self.butterfly2.setPlayRate(playRate, 'glide') self.glideWeight = rng.random() * 2 lodNode = LODNode('butterfly-node') lodNode.addSwitch(100, 40) lodNode.addSwitch(40, 0) self.butterflyNode = NodePath.NodePath(lodNode) self.butterfly2.setH(180.0) self.butterfly2.reparentTo(self.butterflyNode) self.butterfly.setH(180.0) self.butterfly.reparentTo(self.butterflyNode) self.__initCollisions() self.dropShadow = loader.loadModelCopy('phase_3/models/props/drop_shadow') self.dropShadow.setColor(0, 0, 0, 0.3) self.dropShadow.setPos(0, 0.1, -0.05) self.dropShadow.setScale(self.shadowScaleBig) self.dropShadow.reparentTo(self.butterfly) return
def _DNABattleCell__overloaded_traverse_ptrDNABattleCell_ptrNodePath_ptrDNAStorage( self, parent, store): returnValue = libtoontown._inPet4yBJrd(self.this, parent.this, store.this) import NodePath returnObject = NodePath.NodePath(None) returnObject.this = returnValue if returnObject.this == 0: return None returnObject.userManagesMemory = 1 return returnObject
def path(self): if self.parent is None: return str(NodePath(absolute=True)) this_node_path = NodePath.join(self.parent.path, self.name) return str(this_node_path)