Example #1
0
 def __init__(
     self,
     owner,
     cid,
     taskcompleted=0,
     taskrewarded=0,
 ):
     '''
     Constructor
     '''
     BaseInfoComponent.__init__(self, owner, cid, taskcompleted,
                                taskrewarded)
     self._tasktype = tasktype  #任务类型
 def __init__(self ,owner,id ,name ='',character_1 =0,character_2=0,\
              character_3 = 0,character_4=0,character_5 = 0, pid = 0):
     '''
     @character_1 (int) 用户的第一个角色id
     @character_2 (int) 用户的第二个角色id
     @character_3 (int) 用户的第三个角色id
     @character_4 (int) 用户的第四个角色id
     @pid (int) 用户邀请角色的 id
     '''
     BaseInfoComponent.__init__(self,owner, id, name)
     self.character_1 = character_1
     self.character_2 = character_2
     self.character_3 = character_3
     self.character_4 = character_4
     self.character_5 = character_5
     self.pid = pid
 def __init__(
     self,
     owner,
     cid,
     nickName=u"",
     viptype=1,
 ):
     '''
     Constructor
     '''
     BaseInfoComponent.__init__(
         self,
         owner,
         cid,
         nickName,
     )
     self._viptype = viptype  #玩家类型
 def __init__(self, owner, cid, nickName=u"",viptype=1):
     """
     Constructor
     """
     BaseInfoComponent.__init__(self, owner, cid, nickName)
     self._viptype = viptype  #玩家类型
Example #5
0
	def __init__(self,owner,id,basename,itemTemplateId):
		'''初始化物品基础信息'''
		BaseInfoComponent.__init__(self,owner,id,basename)
		self.itemTemplateId=itemTemplateId
		self.finalyPrice= -1
Example #6
0
 def __init__(self,owner, id, basename,itemTemplateId):
     '''初始化物品基础信息'''
     BaseInfoComponent.__init__(self, owner, id, basename)
     self.itemTemplateId = itemTemplateId
     self.finalyPrice = -1#self.getItemTemplateInfo().get("buyingRateCoin",0)
 def __init__(self, owner, cid, nickName=u"", viptype=1):
     """
     Constructor
     """
     BaseInfoComponent.__init__(self, owner, cid, nickName)
     self._viptype = viptype  #玩家类型
Example #8
0
 def __init__(self, owner, id, basename, itemTemplateId):
     '''初始化物品基础信息'''
     BaseInfoComponent.__init__(self, owner, id, basename)
     self.itemTemplateId = itemTemplateId
     self.finalyPrice = -1