Exemple #1
0
 def __init__(self,owner,quality,starLevel):
     """
     Constructor
     """
     Component.__init__(self,owner)
     self._qualityLevel = quality #品质等级
     self._starLevel = starLevel #物品星级
Exemple #2
0
    def __init__(self, owner):
        '''初始化玩家包裹组件
		@param _package: Package object 包裹栏
		'''
        Component.__init__(self, owner)
        self._package = None
        self._tempPackage = None
 def __init__(self, owner, coin=0, gold=0):
     """
     Constructor
     """
     Component.__init__(self, owner)
     self._coin = coin  # 角色的金币
     self._gold = gold  # 角色的
Exemple #4
0
 def __init__(self, owner, coin=0, gold=0):
     '''
     Constructor
     '''
     Component.__init__(self, owner)
     self._coin = coin  #角色的金币
     self._gold = gold  #角色的
 def __init__(self, owner, idInPack=0, stack=1):
     '''
     Constructor
     '''
     Component.__init__(self, owner)
     self._idInPack = idInPack  #物品在包裹中的id
     self._stack = stack  #可叠加数:'-1:不可叠加1~999:可叠加的数值
	def __init__(self,owner):
		'''
		Constructor
		'''
		Component.__init__(self,owner)
		self._tasks={}#正在进行的任务
		self._finished=[]#已经完成的任务
 def __init__(self,owner):
     '''初始化
     '''
     Component.__init__(self, owner)
     #已设置的阵法相关的信息
     self._matrixSetting = {}
     self.initMatrixInfo()
    def __init__(self, owner, gamecoin=0, coin=0):
        '''
		Constructor
		'''
        Component.__init__(self, owner)
        self._gamecoin = gamecoin  #角色的银币
        self._coin = coin  #角色的金币
 def __init__(self,owner,idInPack=0,stack=1):
     '''
     Constructor
     '''
     Component.__init__(self,owner)
     self._idInPack = idInPack #物品在包裹中的id
     self._stack = stack #可叠加数:'-1:不可叠加1~999:可叠加的数值
	def __init__(self,owner):
		'''初始化玩家包裹组件
		@param _package: Package object 包裹栏
		'''
		Component.__init__(self,owner)
		self._package=None
		self._tempPackage=None
 def __init__(self, owner):
     """初始化
     """
     Component.__init__(self, owner)
     #已设置的阵法相关的信息
     self._matrixSetting = {}
     self.initMatrixInfo()
Exemple #12
0
 def __init__(self, owner=None):
     Component.__init__(self, owner)
     self._tasks = {}
     self._lively = 0
     self._event_task_map = {}
     self._last_day = ''
     self._update = False
	def __init__(self,owner,gamecoin=0,coin=0):
		'''
		Constructor
		'''
		Component.__init__(self,owner)
		self._gamecoin=gamecoin #角色的银币
		self._coin=coin #角色的金币
	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
Exemple #15
0
    def __init__(self, owner):
        Component.__init__(self, owner)

        self._reset_day = 0  # 上次重置时间
        self._reset_times = 0  # 已重置次数
        self._tby = ''  # 玩家活跃度周期
        self._lively = 0  # 玩家活跃度,每两天刷新一次
        self._mine = {}  # 玩家当前搜索出的矿
Exemple #16
0
    def __init__(self, owner):
        Component.__init__(self, owner)

        self._reset_day = 0  # 上次重置时间
        self._reset_times = 0  # 已重置次数
        self._tby = ''  # 玩家活跃度周期
        self._lively = 0  # 玩家活跃度,每两天刷新一次
        self._mine = {}  # 玩家当前搜索出的矿
 def __init__(self,owner):
     """
     Constructor
     """
     Component.__init__(self,owner)
     self._friendCount = 200#玩家拥有好友数量上限
     self._friends = set([]) #好友 set[好友角色id,好友角色id,好友角色id]
     self._guyong = set([]) #角色的雇用列表
     self.initFrined()
Exemple #18
0
 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  # 基本名字
 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
Exemple #20
0
 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
 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
 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
 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       # 基本名字
 def __init__(self, owner, bid, basename):
     '''
     创建基本信息对象
     @param id: owner的id
     @param name: 基本名称
     '''
     Component.__init__(self,owner)
     self.id = bid                   # owner的id
     self._baseName = basename       # 基本名字
Exemple #25
0
    def __init__(self, owner, bid, basename):
        '''
		创建基本信息对象
		@param id:owner的id
		@param name:基本名称
		'''
        Component.__init__(self, owner)
        self.id = bid  #owner的id
        self._baseName = basename  #基本名字
 def __init__(self, owner):
     '''
     Constructor
     '''
     Component.__init__(self, owner)
     self._friendCount = 200  #玩家拥有好友数量上限
     self._friends = set([])  #好友 set[好友角色id,好友角色id,好友角色id]
     self._guyong = set([])  #角色的雇用列表
     self.initFrined()
    def __init__(self, owner, hp=100, mp=100, energy=200):
        """
        Constructor
        """
        Component.__init__(self, owner)

        self._hp = hp  # 当前生命:
        self._mp = mp  # 目前的法力ֵ
        self._energy = energy  # 当前活力
        self._timestamp = time.time()
 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
     self._vipexp = 0
Exemple #29
0
 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
     self._vipexp = 0
Exemple #30
0
    def __init__(self, owner):
        self._update = True
        Component.__init__(self, owner)

        self._reset_day = ''  # 上次重置时间
        self._reset_times = 0  # 已重置次数
        self._tby = ''  # 玩家活跃度周期
        self._lively = 0  # 玩家活跃度,每两天刷新一次
        self._mine = {}  # 玩家当前搜索出的矿
        self._guard = {}  # 玩家驻守的英雄与装备,失效的时候,退回
Exemple #31
0
    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
    def __init__(self, owner, hp=100, mp=100, energy=200):
        """
        Constructor
        """
        Component.__init__(self, owner)

        self._hp = hp  #当前生命:
        self._mp = mp  #目前的法力ֵ
        self._energy = energy  #当前活力
        self._timestamp = time.time()
 def __init__(self,owner,durability=-1,isBound=0,identification=1,strengthen=0,workout=0):
     """初始化物品附加属性
     @param selfExtraAttributeId: []int list 物品自身附加属性
     @param dropExtraAttributeId: []int list 物品掉落时的附加属性
     @param durability: int 物品的耐久度
     @param identification: int 物品的辨识状态   0:未辨识  1:辨识
     """
     Component.__init__(self,owner)
     self.durability = durability #当前耐久
     self.isBound = isBound
	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
 def __init__(self, owner):
     '''
     Constructor
     '''
     Component.__init__(self, owner)
     self._profession = 1  #职业
     self._professionStage = 0  #职业阶段
     self._professionPosition = 0  #职位
     self._figure = 0  #角色形象
     self._fashion = 0  #角色的时装
     self._mounts = 0  #角色的坐骑
 def __init__(self, owner):
     """
     Constructor
     """
     Component.__init__(self, owner)
     self._profession = 1 #职业
     self._professionStage = 0 #职业阶段
     self._professionPosition = 0 #职位
     self._figure = 0 #角色形象
     self._fashion = 0 #角色的时装
     self._mounts = 0 #角色的坐骑
 def __init__(self,owner):
     '''
     Constructor
     @param hp: int 宠物的当前血量
     @param StrGrowth: int 宠物的力量成长
     @param WisGrowth: int 宠物的智力成长
     @param VitGrowth: int 宠物的耐力(体力)成长
     @param DexGrowth: int 宠物的敏捷成长
     '''
     Component.__init__(self, owner)
     self.hp = INIT_HP
     self.PhyAtt = INIT_PHYATT
 def __init__(self, owner):
     '''
     Constructor
     @param hp: int 宠物的当前血量
     @param StrGrowth: int 宠物的力量成长
     @param WisGrowth: int 宠物的智力成长
     @param VitGrowth: int 宠物的耐力(体力)成长
     @param DexGrowth: int 宠物的敏捷成长
     '''
     Component.__init__(self, owner)
     self.hp = INIT_HP
     self.PhyAtt = INIT_PHYATT
Exemple #39
0
	def __init__(self,owner):
		'''初始化寻找球员'''
		Component.__init__(self,owner)
		self.owner=owner
		self.ctime1="None"#百里挑一记录时间
		self.ctime2="None"#千里挑一记录时间
		self.inner=[0,0,0]#找到的球员
		self.cs1=10#百里挑一免费次数
		self.cs2=3#千里挑一免费次数
		self.xy=0#幸运值
		self.point=0#搜寻点
		self.indb=0#是否已经写入数据库
		self.initPlayerInner()
 def __init__(self, owner):
     '''init Object'''
     Component.__init__(self, owner)
     #角色的宠物列表
     self._pets = {}
     #        #已经收集到的宠物
     #        self._activepets = []
     #获取宠物消息的队列
     self._getPetMsg = []
     #宠物的移动频率
     self._moveTag = 0
     #最后丢弃的宠物的ID
     self.lastRemove = []
    def __init__(self,owner):
        '''init Object'''
        Component.__init__(self, owner)
        #角色的宠物列表
        self._pets = {}
#        #已经收集到的宠物
#        self._activepets = []
        #获取宠物消息的队列
        self._getPetMsg = []
        #宠物的移动频率
        self._moveTag = 0
        #最后丢弃的宠物的ID
        self.lastRemove = []
 def __init__(self,owner):
     """初始化
     """
     Component.__init__(self, owner)
     self.score = 0
     self.liansheng = 0
     self.lastresult = 0
     self.lasttime = None
     self.ranking = 0
     self.surplustimes = 15
     self.buytimes = 0
     self.receive = 0
     self.recorddate = None
     self.initArenaData()
 def __init__(self, owner):
     '''初始化
     '''
     Component.__init__(self, owner)
     self.score = 0
     self.liansheng = 0
     self.lastresult = 0
     self.lasttime = None
     self.ranking = 0
     self.surplustimes = 15
     self.buytimes = 0
     self.receive = 0
     self.recorddate = None
     self.initArenaData()
    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
 def __init__(self,
              owner,
              durability=-1,
              isBound=0,
              identification=1,
              strengthen=0,
              workout=0):
     """初始化物品附加属性
     @param selfExtraAttributeId: []int list 物品自身附加属性
     @param dropExtraAttributeId: []int list 物品掉落时的附加属性
     @param durability: int 物品的耐久度
     @param identification: int 物品的辨识状态   0:未辨识  1:辨识
     """
     Component.__init__(self, owner)
     self.durability = durability  #当前耐久
     self.isBound = isBound
    def __init__(self, owner, energy=200, trainpoint=1000):
        '''Constructor'''
        Component.__init__(self, owner)

        self._energy = energy  #当前活力
        self._timestamp = time.time()
        self._photo = 'null.png'
        self._power = 0
        self._maxpower = 0
        self._trainpoint = trainpoint
        self._tacticspoint = 0
        self._repute = 0
        self.jingong = 0
        self.zuzhi = 0
        self.fangshou = 0
        self.shoumen = 0
	def __init__(self,owner,energy=200,trainpoint=1000):
		'''Constructor'''
		Component.__init__(self,owner)

		self._energy=energy#当前活力
		self._timestamp=time.time()
		self._photo='null.png'
		self._power=0
		self._maxpower=0
		self._trainpoint=trainpoint
		self._tacticspoint=0
		self._repute=0
		self.jingong=0
		self.zuzhi=0
		self.fangshou=0
		self.shoumen=0
Exemple #48
0
    def __init__(self, owner):
        """
        Constructor
        """
        Component.__init__(self, owner)
        self._pvp_overcome = []
        self._pvp_overcome_current = 1
        self._pvp_overcome_refresh_time = time.time()
        self._pvp_overcome_refresh_count = 0

        self._pvp_times = 0  # pvp次数
        self._pvp_refresh_time = 0
        self._pvp_refresh_count = 0
        self._pvp_current_rank = 0
        self._pvp_high_rank = 999999  # 玩家pvp最高排名
        self._pvp_high_rank_award = []  # 已经领取的玩家pvp排名奖励
        self._pvp_arena_players = []
Exemple #49
0
 def __init__(self, owner):
     '''
     Constructor
     @param hp: int 宠物的当前血量
     @param StrGrowth: int 宠物的力量成长
     @param WisGrowth: int 宠物的智力成长
     @param VitGrowth: int 宠物的耐力(体力)成长
     @param DexGrowth: int 宠物的敏捷成长
     '''
     Component.__init__(self, owner)
     self.hp = 0
     self.StrGrowth = 0
     self.WisGrowth = 0
     self.VitGrowth = 0
     self.DexGrowth = 0
     self.StrGrowthAdd = 0
     self.WisGrowthAdd = 0
     self.VitGrowthAdd = 0
     self.DexGrowthAdd = 0
 def __init__(self,owner):
     """
     Constructor
     @param hp: int 宠物的当前血量
     @param StrGrowth: int 宠物的力量成长
     @param WisGrowth: int 宠物的智力成长
     @param VitGrowth: int 宠物的耐力(体力)成长
     @param DexGrowth: int 宠物的敏捷成长
     """
     Component.__init__(self, owner)
     self.hp = 0
     self.StrGrowth = 0
     self.WisGrowth = 0
     self.VitGrowth = 0
     self.DexGrowth = 0
     self.StrGrowthAdd = 0
     self.WisGrowthAdd = 0
     self.VitGrowthAdd = 0
     self.DexGrowthAdd = 0
	def __init__(self,owner):
		'''
		Constructor
		@param Shoot:int 射门
		@param Dribbling: 带球
		@param Speed:速度
		@param Pass:传球
		@param Tackle:铲球
		@param Tackling:断球
		@param _Save:补救
		@param Response:出击
		'''
		Component.__init__(self,owner)
		self.Shoot=0
		self.Dribbling=0
		self.Speed=0
		self.Pass=0
		self.Tackle=0
		self.Tackling=0
		self._Save=0
		self.Response=0
		self.PlayerPower=0
Exemple #52
0
    def __init__(self, owner):
        '''
		Constructor
		@param Shoot:int 射门
		@param Dribbling: 带球
		@param Speed:速度
		@param Pass:传球
		@param Tackle:铲球
		@param Tackling:断球
		@param _Save:补救
		@param Response:出击
		'''
        Component.__init__(self, owner)
        self.Shoot = 0
        self.Dribbling = 0
        self.Speed = 0
        self.Pass = 0
        self.Tackle = 0
        self.Tackling = 0
        self._Save = 0
        self.Response = 0
        self.PlayerPower = 0
    def __init__(self, owner):
        """
        Constructor
        """
        Component.__init__(self, owner)
        self._base_name = u''  # 基本名字
        self._level = 1  # 当前等级
        self._exp = 0  # 当前等级获得的经验

        self._newbee_guide = {}
        self._current_newbee_guide = 0
        self._gag = 1  # 禁言到这个时间戳
        self._closure = 1  # 封停到这个时间戳

        self._heads = Heads_DB()
        self._heads.now_head = game_configs.base_config.get('initialHead')

        self._vip_level = 0  # VIP等级
        self._upgrade_time = int(time.time())
        self._register_time = int(time.time())  # 注册时间
        self._google_consume_id = ''
        self._google_consume_data = ''
        self._apple_transaction_id = ''
        self._first_recharge_ids = []
        self._max_single_recharge = 0  # 累积充值
        self._recharge = 0  # 累积充值
        self._gen_balance = 0  # 累积赠送
        self._login_time = int(time.time())  # 登录时间
        self._tomorrow_gift = 0
        self._battle_speed = 1
        self._plat_id = -1
        self._is_open_next_day_activity = False
        self._first_recharge_activity = -1  # -1 没领 1 领过
        self._story_id = 0
        self._button_one_time = [0] * 3  # 0. 第二天活动开启后的按钮 1. 首次充值奖励 2. 关卡点我有惊喜
        self._hero_awake_time = int(time.time())  # 武将觉醒时间,用于次日清除相关武将觉醒进度。
        self._flowid = 0  # 流水号
        self._one_dollar_flowid = 0
Exemple #54
0
    def __init__(self, owner):
        """
        Constructor
        """
        Component.__init__(self, owner)
        self._pvp_overcome = []
        self._pvp_overcome_current = 1
        self._pvp_overcome_refresh_time = time.time()
        self._pvp_overcome_refresh_count = 0
        self._pvp_overcome_awards = []
        self._pvp_overcome_stars = 0
        self._pvp_overcome_buff_init = {}
        self._pvp_overcome_buff = {}
        self._pvp_overcome_failed = False

        self._pvp_times = 0  # pvp次数
        self._pvp_refresh_time = 0
        self._pvp_refresh_count = 0
        self._pvp_current_rank = 0
        self._pvp_high_rank = 99999  # 玩家pvp最高排名
        self._pvp_high_rank_award = []  # 已经领取的玩家pvp排名奖励
        self._pvp_arena_players = []
        self._pvp_upstage_challenge_rank = 0
        self._rob_treasure = []
 def __init__(self, owner):
     ''''''
     Component.__init__(self, owner)
     self.shopPackage = ShopPackage()