コード例 #1
0
 def __init__(self, cr):
     DistributedEntity.__init__(self, cr)
     self.gagId = 0
     self.pickupState = 0
     self.collNode = None
     self.pickupSound = None
     self.gagMdl = None
コード例 #2
0
ファイル: CogStomper.py プロジェクト: tsp-team/ttsp-src
 def __init__(self, cr):
     DistributedEntity.__init__(self, cr)
     self.height = 1.0
     self.raiseSpeed = 1
     self.stompSpeed = 1
     self.scale = Vec3(1)
     self.moveDir = Vec3.up()
コード例 #3
0
ファイル: Keypad.py プロジェクト: tsp-team/ttsp-src
 def __init__(self, cr):
     DistributedEntity.__init__(self, cr)
     self.buttons = []
     self.text = TextNode("keypad-text")
     self.text.setFont(loader.loadFont("models/fonts/DS-DIGI.TTF"))
     self.text.setTextColor((0, 0, 0, 1))
     self.text.setAlign(TextNode.ACenter)
     self.textNP = None
コード例 #4
0
ファイル: AmbientGeneric.py プロジェクト: tsp-team/ttsp-src
    def __init__(self, cr):
        DistributedEntity.__init__(self, cr)
        self.assign(NodePath(ModelNode('ambientGeneric')))
        self.node().setPreserveTransform(ModelNode.PTLocal)

        self.sndFile = ""
        self.looping = False
        self.volume = 1.0

        self.numWildcardSounds = 0
コード例 #5
0
ファイル: LaffBarrel.py プロジェクト: tsp-team/ttsp-src
    def __init__(self, cr):
        DistributedEntity.__init__(self, cr)
        UseableObject.__init__(self)

        self.barrel = None
        self.gagModel = None
        self.gagNode = None
        self.barrelScale = 0.5
        self.pulseIval = None

        self.hasPhysGeom = False
        self.underneathSelf = True
コード例 #6
0
    def __init__(self, cr):
        DistributedEntity.__init__(self, cr)
        UseableObject.__init__(self)
        self.gagId = 0
        self.pickupState = 0
        self.cost = 0
        self.collNode = None
        self.pickupSound = None
        self.gagMdl = None

        self.hasPhysGeom = True
        self.underneathSelf = True

        self.infoText = None
 def __init__(self, cr):
     DistributedEntity.__init__(self, cr)
     DistributedNode.__init__(self, cr)
     NodePath.__init__(self, 'restock_barrel')
     self.grabSfx = None
     self.rejectSfx = None
     self.grabSoundPath = 'phase_4/audio/sfx/SZ_DD_treasure.ogg'
     self.rejectSoundPath = 'phase_4/audio/sfx/ring_miss.ogg'
     self.animTrack = None
     self.barrelScale = 0.5
     self.radius = 1.5
     self.height = 4.275
     self.playSoundForRemoteToons = 1
     self.barrel = None
     self.gagNode = None
     self.gagModel = None
     
     # Collision nodes
     self.collSphere = None
     self.collNode = None
     self.collNodePath = None
コード例 #8
0
 def __init__(self, cr):
     DistributedEntity.__init__(self, cr)
     self.ival = None
コード例 #9
0
 def __init__(self, cr):
     DistributedEntity.__init__(self, cr)
     DistributedElevator.__init__(self, cr)
     self.index = None
     self.type = None
     self.elev = None
コード例 #10
0
 def __init__(self, cr):
     DistributedEntity.__init__(self, cr)
     UseableObject.__init__(self, False)
     self.doorHinge = None
     self.shapeGroup = CIGlobals.UseableGroup
コード例 #11
0
    def __init__(self, cr):
        DistributedEntity.__init__(self, cr, False)
        Avatar.__init__(self)

        # joint name -> [X,Y,Z,H,P,R,TIME]
        self.attachmentInterps = {}
コード例 #12
0
ファイル: CodeNumberPickup.py プロジェクト: tsp-team/ttsp-src
 def __init__(self, cr):
     DistributedEntity.__init__(self, cr)
     self.number = 0
     self.emblem = None
     self.emblemFloat = None
コード例 #13
0
 def __init__(self, cr):
     DistributedEntity.__init__(self, cr)
     self.ival = None
     self.flashColor = Vec3(1)
     self.brightTime = 1.0
     self.darkTime = 1.0