本文整理汇总了Python中interfaces.GameObject.GameObject.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python GameObject.__init__方法的具体用法?Python GameObject.__init__怎么用?Python GameObject.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类interfaces.GameObject.GameObject
的用法示例。
在下文中一共展示了GameObject.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from interfaces.GameObject import GameObject [as 别名]
# 或者: from interfaces.GameObject.GameObject import __init__ [as 别名]
def __init__(self):
KBEngine.Entity.__init__(self)
GameObject.__init__(self)
Motion.__init__(self)
Flags.__init__(self)
State.__init__(self)
Combat.__init__(self)
示例2: __init__
# 需要导入模块: from interfaces.GameObject import GameObject [as 别名]
# 或者: from interfaces.GameObject.GameObject import __init__ [as 别名]
def __init__(self):
KBEngine.Entity.__init__(self)
NPCObject.__init__(self)
GameObject.__init__(self)
DEBUG_MSG("[CellApp] Weapon::__init__: called, attackId: %i" % self.attackId)
self.territoryControllerID = 0
示例3: __init__
# 需要导入模块: from interfaces.GameObject import GameObject [as 别名]
# 或者: from interfaces.GameObject.GameObject import __init__ [as 别名]
def __init__(self):
KBEngine.Base.__init__(self)
GameObject.__init__(self)
self._spaceAllocs = {}
self.addTimer(3, 1, wtimer.TIMER_TYPE_CREATE_SPACES)
self.initAlloc()
KBEngine.globalData["SpaceMgr"] = self
示例4: __init__
# 需要导入模块: from interfaces.GameObject import GameObject [as 别名]
# 或者: from interfaces.GameObject.GameObject import __init__ [as 别名]
def __init__(self):
GameObject.__init__(self)
Flags.__init__(self)
State.__init__(self)
Combat.__init__(self)
Spell.__init__(self)
Teleport.__init__(self)
Dialog.__init__(self)
示例5: __init__
# 需要导入模块: from interfaces.GameObject import GameObject [as 别名]
# 或者: from interfaces.GameObject.GameObject import __init__ [as 别名]
def __init__(self):
GameObject.__init__(self)
self.createInNewSpace(None)
self.spaceUTypeB = self.cellData["spaceUType"]
# 这个地图上创建的entity总数
self.tmpCreateEntityDatas = list(d_spaces.datas[self.spaceUTypeB].get("entities", []))
self.avatars = {}
示例6: __init__
# 需要导入模块: from interfaces.GameObject import GameObject [as 别名]
# 或者: from interfaces.GameObject.GameObject import __init__ [as 别名]
def __init__(self):
KBEngine.Base.__init__(self)
GameObject.__init__(self)
# 初始化空间分配器
self.initAlloc()
# 向全局共享数据中注册这个管理器的mailbox以便在所有逻辑进程中可以方便的访问
KBEngine.globalData["Spaces"] = self
示例7: __init__
# 需要导入模块: from interfaces.GameObject import GameObject [as 别名]
# 或者: from interfaces.GameObject.GameObject import __init__ [as 别名]
def __init__(self):
KBEngine.Proxy.__init__(self)
GameObject.__init__(self)
Teleport.__init__(self)
self.accountEntity = None
self.cellData["dbid"] = self.databaseID
self.nameB = self.cellData["name"]
self.spaceUTypeB = self.cellData["spaceUType"]
self.inventory = InventoryMgr(self)
示例8: __init__
# 需要导入模块: from interfaces.GameObject import GameObject [as 别名]
# 或者: from interfaces.GameObject.GameObject import __init__ [as 别名]
def __init__(self):
KBEngine.Entity.__init__(self)
GameObject.__init__(self)
Flags.__init__(self)
State.__init__(self)
SkillBox.__init__(self)
Combat.__init__(self)
Spell.__init__(self)
Dialog.__init__(self)
Teleport.__init__(self)
示例9: __init__
# 需要导入模块: from interfaces.GameObject import GameObject [as 别名]
# 或者: from interfaces.GameObject.GameObject import __init__ [as 别名]
def __init__(self):
KBEngine.Entity.__init__(self)
GameObject.__init__(self)
resPath = d_spaces.datas.get(self.spaceUType)['resPath']
KBEngine.addSpaceGeometryMapping(self.spaceID, None, resPath)
DEBUG_MSG('created space[%d] entityID = %i, res = %s.' % (self.spaceUType, self.id, resPath))
KBEngine.globalData["space_%i" % self.spaceID] = self.base
示例10: __init__
# 需要导入模块: from interfaces.GameObject import GameObject [as 别名]
# 或者: from interfaces.GameObject.GameObject import __init__ [as 别名]
def __init__(self):
KBEngine.Base.__init__(self)
GameObject.__init__(self)
self.createInNewSpace(None)
self.spaceUTypeB = self.cellData["spaceUType"]
self.spaceResName = d_spaces.datas.get(self.spaceUTypeB)['resPath']
# 这个地图上创建的entity总数
self.tmpCreateEntityDatas = copy.deepcopy(d_spaces_spawns.datas.get(self.spaceUTypeB, ()))
self.avatars = {}
示例11: __init__
# 需要导入模块: from interfaces.GameObject import GameObject [as 别名]
# 或者: from interfaces.GameObject.GameObject import __init__ [as 别名]
def __init__(self):
GameObject.__init__(self)
Flags.__init__(self)
State.__init__(self)
Motion.__init__(self)
Combat.__init__(self)
Spell.__init__(self)
Teleport.__init__(self)
Dialog.__init__(self)
# 设置每秒允许的最快速度, 超速会被拉回去
self.topSpeed = 10.0
示例12: __init__
# 需要导入模块: from interfaces.GameObject import GameObject [as 别名]
# 或者: from interfaces.GameObject.GameObject import __init__ [as 别名]
def __init__(self):
GameObject.__init__(self)
self.createInNewSpace(None)
self.spaceUTypeB = self.cellData["spaceUType"]
self.spaceResName = d_spaces.datas.get(self.spaceUTypeB)['resPath']
# 这个地图上创建的entity总数
self.tmpCreateEntityDatas = []
self.avatars = {}
self.createSpawnPointDatas()
示例13: __init__
# 需要导入模块: from interfaces.GameObject import GameObject [as 别名]
# 或者: from interfaces.GameObject.GameObject import __init__ [as 别名]
def __init__(self):
GameObject.__init__(self)
resPath = d_spaces.datas.get(self.spaceUType)["resPath"]
if resPath == "":
resPath = "../../res/Media/Scenes/Scene1"
KBEngine.addSpaceGeometryMapping(self.spaceID, None, resPath)
else:
KBEngine.addSpaceGeometryMapping(self.spaceID, None, resPath)
DEBUG_MSG("created space[%d] entityID = %i, res = %s." % (self.spaceUType, self.id, resPath))
KBEngine.globalData["space_%i" % self.spaceID] = self.base
示例14: __init__
# 需要导入模块: from interfaces.GameObject import GameObject [as 别名]
# 或者: from interfaces.GameObject.GameObject import __init__ [as 别名]
def __init__(self):
KBEngine.Proxy.__init__(self)
GameObject.__init__(self)
Teleport.__init__(self)
# 如果登录是一个副本, 无论如何登录都放置在主场景上
spacedatas = d_spaces.datas [self.cellData["spaceUType"]]
avatar_inittab = d_avatar_inittab.datas[self.roleType]
if "Duplicate" in spacedatas["entityType"]:
self.cellData["spaceUType"] = avatar_inittab["spaceUType"]
self.cellData["direction"] = (0, 0, avatar_inittab["spawnYaw"])
self.cellData["position"] = avatar_inittab["spawnPos"]
self.accountEntity = None
self.cellData["dbid"] = self.databaseID
self.nameB = self.cellData["name"]
self.spaceUTypeB = self.cellData["spaceUType"]
self._destroyTimer = 0
示例15: __init__
# 需要导入模块: from interfaces.GameObject import GameObject [as 别名]
# 或者: from interfaces.GameObject.GameObject import __init__ [as 别名]
def __init__(self):
GameObject.__init__(self)