当前位置: 首页>>代码示例>>Python>>正文


Python DistributedActor.DistributedActor类代码示例

本文整理汇总了Python中direct.actor.DistributedActor.DistributedActor的典型用法代码示例。如果您正苦于以下问题:Python DistributedActor类的具体用法?Python DistributedActor怎么用?Python DistributedActor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了DistributedActor类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: delete

 def delete(self):
     try:
         self.DistributedAvatar_deleted
     except:
         self.DistributedAvatar_deleted = 1
         Avatar.delete(self)
         DistributedActor.delete(self)
开发者ID:CalebSmith376,项目名称:src,代码行数:7,代码来源:DistributedAvatar.py

示例2: __init__

 def __init__(self, cr):
     try:
         self.DistributedAvatar_initialized
         return None
     except:
         self.DistributedAvatar_initialized = 1
     DistributedActor.__init__(self, cr)
开发者ID:masterbate,项目名称:AIPractive,代码行数:7,代码来源:DistributedAvatar.py

示例3: disable

 def disable(self):
     try:
         del self.DistributedAvatar_announced
     except:
         return None
     self.reparentTo(hidden)
     self.disableBodyCollisions()
     DistributedActor.disable(self)
开发者ID:masterbate,项目名称:AIPractive,代码行数:8,代码来源:DistributedAvatar.py

示例4: generate

 def generate(self):
     DistributedActor.generate(self)
     if not self.isLocal():
         self.addActive()
         self.considerUnderstandable()
     self.setParent(OTPGlobals.SPHidden)
     self.setTag('avatarDoId', str(self.doId))
     self.accept('nameTagShowAvId', self.__nameTagShowAvId)
     self.accept('nameTagShowName', self.__nameTagShowName)
开发者ID:CalebSmith376,项目名称:src,代码行数:9,代码来源:DistributedAvatar.py

示例5: delete

 def delete(self):
     DistributedActor.delete(self)
     self.health = None
     self.maxHealth = None
     self.healthLabel = None
     self.healthLabelTrack = None
     self.hood = None
     self.place = None
     return
开发者ID:coginvasion,项目名称:src,代码行数:9,代码来源:DistributedAvatar.py

示例6: do_setParent

 def do_setParent(self, parentToken):
     if not self.isDisabled():
         if parentToken == OTPGlobals.SPHidden:
             self.nametag2dDist &= ~Nametag.CName
         else:
             self.nametag2dDist |= Nametag.CName
         self.nametag.getNametag2d().setContents(self.nametag2dContents & self.nametag2dDist)
         DistributedActor.do_setParent(self, parentToken)
         self.__setTags()
开发者ID:Keithybub,项目名称:ToonTownReviveOld,代码行数:9,代码来源:DistributedAvatar.py

示例7: announceGenerate

 def announceGenerate(self):
     try:
         self.DistributedAvatar_announced
         return
     except:
         self.DistributedAvatar_announced = 1
     if not self.isLocal():
         self.initializeBodyCollisions('distAvatarCollNode-' + str(self.doId))
     DistributedActor.announceGenerate(self)
开发者ID:masterbate,项目名称:AIPractive,代码行数:9,代码来源:DistributedAvatar.py

示例8: do_setParent

 def do_setParent(self, parentToken):
     if not self.isDisabled():
         nametag2d = self.nametag.getNametag2d()
         if parentToken == OTPGlobals.SPHidden:
             nametag2d.hideNametag()
         else:
             nametag2d.showNametag()
         nametag2d.update()
         DistributedActor.do_setParent(self, parentToken)
         self.__setTags()
开发者ID:CalebSmith376,项目名称:src,代码行数:10,代码来源:DistributedAvatar.py

示例9: __init__

    def __init__(self, cr):

        try:
            return None
        except:
            self.DistributedAvatar_initialized = 1

        Avatar.__init__(self)
        DistributedActor.__init__(self, cr)
        self.hpText = None
        self.hp = None
        self.maxHp = None
开发者ID:ponyboy837,项目名称:Toontown-2003-Server,代码行数:12,代码来源:DistributedAvatar.py

示例10: disable

    def disable(self):
        try:
            del self.DistributedAvatar_announced
        except:
            return

        self.reparentTo(hidden)
        self.removeActive()
        self.disableBodyCollisions()
        self.hideHpText()
        self.hp = None
        self.ignore('nameTagShowAvId')
        self.ignore('nameTagShowName')
        DistributedActor.disable(self)
        return
开发者ID:CalebSmith376,项目名称:src,代码行数:15,代码来源:DistributedAvatar.py

示例11: __init__

    def __init__(self, cr):
        try:
            self.DistributedAvatar_initialized
            return
        except:
            self.DistributedAvatar_initialized = 1

        Avatar.__init__(self)
        DistributedActor.__init__(self, cr)
        self.health = 0
        self.maxHealth = 0
        self.healthLabel = None
        self.healthLabelTrack = None
        self.place = 0
        self.hood = None
        return
开发者ID:coginvasion,项目名称:src,代码行数:16,代码来源:DistributedAvatar.py

示例12: disable

 def disable(self):
     DistributedActor.disable(self)
     self.stopMovingHealthLabel()
     self.detachNode()
开发者ID:coginvasion,项目名称:src,代码行数:4,代码来源:DistributedAvatar.py

示例13: generate

 def generate(self):
     DistributedActor.generate(self)
开发者ID:coginvasion,项目名称:src,代码行数:2,代码来源:DistributedAvatar.py

示例14: announceGenerate

 def announceGenerate(self):
     DistributedActor.announceGenerate(self)
     self.setPythonTag('avatar', self.doId)
     self.setupHealthLabel()
     self.setParent(CIGlobals.SPHidden)
开发者ID:coginvasion,项目名称:src,代码行数:5,代码来源:DistributedAvatar.py

示例15: do_setParent

 def do_setParent(self, parentToken):
     if not self.isDisabled():
         DistributedActor.do_setParent(self, parentToken)
开发者ID:masterbate,项目名称:AIPractive,代码行数:3,代码来源:DistributedAvatar.py


注:本文中的direct.actor.DistributedActor.DistributedActor类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。