Exemplo n.º 1
0
 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
Exemplo n.º 2
0
    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
Exemplo n.º 3
0
 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
Exemplo n.º 4
0
 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
Exemplo n.º 5
0
 def getArrowModel():
     returnValue = libtoontown._inPPj7bet3M()
     import NodePath
     returnObject = NodePath.NodePath(None)
     returnObject.this = returnValue
     if returnObject.this == 0:
         return None
     return returnObject
     return
Exemplo n.º 6
0
 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
Exemplo n.º 7
0
 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
Exemplo n.º 9
0
    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
Exemplo n.º 10
0
 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
Exemplo n.º 11
0
    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
Exemplo n.º 12
0
 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
Exemplo n.º 13
0
 def getNametagCard():
     returnValue = libtoontown._inPPj7bbqdr()
     import NodePath
     returnObject = NodePath.NodePath(None)
     returnObject.this = returnValue
     if returnObject.this == 0:
         return None
     return returnObject
     return
Exemplo n.º 14
0
 def getToon():
     returnValue = libtoontown._inPPj7bu_Rg()
     import NodePath
     returnObject = NodePath.NodePath(None)
     returnObject.this = returnValue
     if returnObject.this == 0:
         return None
     return returnObject
     return
Exemplo n.º 15
0
 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
Exemplo n.º 16
0
 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
Exemplo n.º 17
0
 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
Exemplo n.º 18
0
 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
Exemplo n.º 20
0
 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
Exemplo n.º 21
0
 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
Exemplo n.º 22
0
 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
Exemplo n.º 23
0
    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)
Exemplo n.º 24
0
 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
Exemplo n.º 25
0
    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
Exemplo n.º 26
0
    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
Exemplo n.º 27
0
 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)