def getTime(self): '''获取角色强化剩余冷却时间''' if self.ctime: s = configure.getchaTime(self.ctime, self.counts) #与当前时间相差秒数 return s else: return 0
def getTime(self): '''获取商店剩余冷却时间''' if self.ctime: s=configure.getchaTime(self.ctime,self.counts)#与当前时间相差秒数 return s else: return 0
def isdraw(self): '''是否刷新宠物 @param counts: int 距离秒数 ''' s=configure.getchaTime(self.ctime,self.counts)#与当前时间相差秒数 if s==0: return True return False
def getByPid(self,pid): '''获取角色强化剩余冷却时间''' if self.qhtime.has_key(pid): info=self.qhtime.get(pid) s=configure.getchaTime(info['ctime'],info['counts'])#与当前时间相差秒数 if s<1: self.deleteByid(pid) return s else: return 0