本文整理汇总了Python中app.game.component.Component.Component.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Component.__init__方法的具体用法?Python Component.__init__怎么用?Python Component.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类app.game.component.Component.Component
的用法示例。
在下文中一共展示了Component.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from app.game.component.Component import Component [as 别名]
# 或者: from app.game.component.Component.Component import __init__ [as 别名]
def __init__(self,owner):
'''初始化玩家包裹组件
@param _package: Package object 包裹栏
'''
Component.__init__(self,owner)
self._package=None
self._tempPackage=None
示例2: __init__
# 需要导入模块: from app.game.component.Component import Component [as 别名]
# 或者: from app.game.component.Component.Component import __init__ [as 别名]
def __init__(self,owner,gamecoin=0,coin=0):
'''
Constructor
'''
Component.__init__(self,owner)
self._gamecoin=gamecoin #角色的银币
self._coin=coin #角色的金币
示例3: __init__
# 需要导入模块: from app.game.component.Component import Component [as 别名]
# 或者: from app.game.component.Component.Component import __init__ [as 别名]
def __init__(self,owner,quality,starLevel):
"""
Constructor
"""
Component.__init__(self,owner)
self._qualityLevel = quality #品质等级
self._starLevel = starLevel #物品星级
示例4: __init__
# 需要导入模块: from app.game.component.Component import Component [as 别名]
# 或者: from app.game.component.Component.Component import __init__ [as 别名]
def __init__(self, owner, coin=0, gold=0):
"""
Constructor
"""
Component.__init__(self, owner)
self._coin = coin # 角色的金币
self._gold = gold # 角色的
示例5: __init__
# 需要导入模块: from app.game.component.Component import Component [as 别名]
# 或者: from app.game.component.Component.Component import __init__ [as 别名]
def __init__(self,owner):
'''初始化
'''
Component.__init__(self, owner)
#已设置的阵法相关的信息
self._matrixSetting = {}
self.initMatrixInfo()
示例6: __init__
# 需要导入模块: from app.game.component.Component import Component [as 别名]
# 或者: from app.game.component.Component.Component import __init__ [as 别名]
def __init__(self,owner,idInPack=0,stack=1):
'''
Constructor
'''
Component.__init__(self,owner)
self._idInPack = idInPack #物品在包裹中的id
self._stack = stack #可叠加数:'-1:不可叠加1~999:可叠加的数值
示例7: __init__
# 需要导入模块: from app.game.component.Component import Component [as 别名]
# 或者: from app.game.component.Component.Component import __init__ [as 别名]
def __init__(self,owner):
'''
Constructor
'''
Component.__init__(self,owner)
self._tasks={}#正在进行的任务
self._finished=[]#已经完成的任务
示例8: __init__
# 需要导入模块: from app.game.component.Component import Component [as 别名]
# 或者: from app.game.component.Component.Component import __init__ [as 别名]
def __init__(self, owner):
Component.__init__(self, owner)
self._reset_day = 0 # 上次重置时间
self._reset_times = 0 # 已重置次数
self._tby = '' # 玩家活跃度周期
self._lively = 0 # 玩家活跃度,每两天刷新一次
self._mine = {} # 玩家当前搜索出的矿
示例9: __init__
# 需要导入模块: from app.game.component.Component import Component [as 别名]
# 或者: from app.game.component.Component.Component import __init__ [as 别名]
def __init__(self,owner,durability=-1,isBound=0,identification=1,strengthen=0,workout=0):
'''初始化物品附件属性
@param selfExtraAttributebuteId: []int list 物品自身附加属性
@param durability: int 物品的耐久度
'''
Component.__init__(self,owner)
self.durability=durability #当前耐久
self.isBound=isBound
示例10: __init__
# 需要导入模块: from app.game.component.Component import Component [as 别名]
# 或者: from app.game.component.Component.Component import __init__ [as 别名]
def __init__(self,owner):
"""
Constructor
"""
Component.__init__(self,owner)
self._friendCount = 200#玩家拥有好友数量上限
self._friends = set([]) #好友 set[好友角色id,好友角色id,好友角色id]
self._guyong = set([]) #角色的雇用列表
self.initFrined()
示例11: __init__
# 需要导入模块: from app.game.component.Component import Component [as 别名]
# 或者: from app.game.component.Component.Component import __init__ [as 别名]
def __init__(self, owner):
"""初始化玩家包裹组件
@param _package: Package object 包裹栏
@param _equipmentSlot: EquipmentSlot object 装备栏
"""
Component.__init__(self, owner)
self._package = None
self._tempPackage = None
self._equipmentSlot = None
示例12: __init__
# 需要导入模块: from app.game.component.Component import Component [as 别名]
# 或者: from app.game.component.Component.Component import __init__ [as 别名]
def __init__(self, owner, bid, basename):
'''
创建基本信息对象
@param id: owner的id
@param name: 基本名称
'''
Component.__init__(self,owner)
self.id = bid # owner的id
self._baseName = basename # 基本名字
示例13: __init__
# 需要导入模块: from app.game.component.Component import Component [as 别名]
# 或者: from app.game.component.Component.Component import __init__ [as 别名]
def __init__(self, owner, bid, base_name):
"""
创建基本信息对象
@param id: owner的id
@param name: 基本名称
"""
Component.__init__(self, owner)
self._id = bid # owner的id
self._base_name = base_name # 基本名字
示例14: __init__
# 需要导入模块: from app.game.component.Component import Component [as 别名]
# 或者: from app.game.component.Component.Component import __init__ [as 别名]
def __init__(self,owner,level = 1,exp = 0):
'''
@param owner: Character Object 组件拥有者
@param level: int 宠物的等级
@param exp: int 宠物的当前经验
'''
Component.__init__(self, owner)
self._level = level
self._exp = exp
示例15: __init__
# 需要导入模块: from app.game.component.Component import Component [as 别名]
# 或者: from app.game.component.Component.Component import __init__ [as 别名]
def __init__(self,owner,level=1,exp=0,playerquality=1):
'''
@param owner: Character Object 组件拥有者
@param level: int 球员的等级
@param exp: 球员的当前经验
'''
Component.__init__(self,owner)
self._level=level
self._exp=exp
self._playerquality=playerquality