Esempio n. 1
0
    def __init__(self, uid):
        '''注释'''
        Base.__init__(self, uid)
        self.uid = uid
        #print self.getUserInfo('NickName')
#        print Gcore.getMod('Template',uid)
#        print Gcore.getMod('Template',uid)
#        print Gcore.getMod('Template',uid)
#        print Gcore.getMod('Template',uid)
        print '---- end TestMod.__init__'
Esempio n. 2
0
 def __init__(self, uid):
     '''注释'''
     Base.__init__(self, uid)
     self.uid = uid
     #print self.getUserInfo('NickName')
     #        print Gcore.getMod('Template',uid)
     #        print Gcore.getMod('Template',uid)
     #        print Gcore.getMod('Template',uid)
     #        print Gcore.getMod('Template',uid)
     print '---- end TestMod.__init__'
Esempio n. 3
0
 def defenseDamage(self,para):
     '''协议号5: 防御工事损坏'''
     UserId = para['UserId']
     Defense = para['Defense'] #有损坏变化的工事
     b = Base(UserId)
     tb_wall_defense = b.tb_wall_defense()
     for k,v in Defense.iteritems():
         sql = "UPDATE %s SET LifeRatio='%s' WHERE WallDefenseId='%s'"%(tb_wall_defense,v,k)
         result = self.db.execute(sql)
         print 'result:sql',result,sql
     Gcore.getMod('Redis',UserId).offCacheWallDefense() #更新缓存
Esempio n. 4
0
 def __init__(self, uid):
     Base.__init__(self, uid)
     self.uid = uid
     self._soldier_storage = 'tb_soldier_storage'
Esempio n. 5
0
 def __init__(self,uid):
     Base.__init__(self, uid)
     self.uid = uid
     self._equipTB = {1:Base.tb_equip(self),4:'tb_equip_warbook',5:'tb_equip_treasure'}
     self._cfgEquipTB = {1:'tb_cfg_equip',4:'tb_cfg_equip_warbook',5:'tb_cfg_equip_treasure'}
Esempio n. 6
0
 def __init__(self, uid):
     '''注释'''
     Base.__init__(self,uid)
     self.uid = uid
     self.logId = None
Esempio n. 7
0
 def __init__(self, uid):
     '''注释'''
     Base.__init__(self,uid)
     self.uid = uid
Esempio n. 8
0
 def __init__(self, uid):
     '''注释'''
     Base.__init__(self, uid)
     self.uid = uid
Esempio n. 9
0
 def __init__(self, uid):
     """注释"""
     Base.__init__(self, uid)
     self.uid = uid
Esempio n. 10
0
 def __init__(self, uid):
     '''注释'''
     Base.__init__(self, uid)
     self.uid = uid
     self.cfgRank = Gcore.loadCfg(Gcore.defined.CFG_RANK_FIGHT)
Esempio n. 11
0
 def __init__(self, uid):
     Base.__init__(self, uid)
     self.uid = uid
     self._soldier_storage = 'tb_soldier_storage'
Esempio n. 12
0
 def __init__(self, uid):
     Base.__init__(self, uid)
     self.uid = uid
     self.modFriend = Gcore.getMod('Friend', self.uid)
Esempio n. 13
0
 def __init__(self, uid):
     '''注释'''
     Base.__init__(self, uid)
     self.uid = uid
     self.logId = None
Esempio n. 14
0
 def __init__(self, uid):
     '''注释'''
     Base.__init__(self,uid)
     self.uid = uid
     self.cfgRank = Gcore.loadCfg(Gcore.defined.CFG_RANK_FIGHT)
Esempio n. 15
0
 def __init__(self, uid):
     '''注释'''
     Base.__init__(self, uid)
     self.uid = uid
     self.lastspeaktime = 0
Esempio n. 16
0
 def __init__(self, uid):
     Base.__init__(self, uid)
     self.uid = uid
     #武将培养表表名
     self.train_table = 'tb_general_train'
Esempio n. 17
0
 def __init__(self, uid):
     '''注释'''
     Base.__init__(self,uid)
     self.uid = uid
     self.lastspeaktime = 0
Esempio n. 18
0
 def __init__(self, uid, ServerId=None):
     '''@para: ServerId 测试用'''
     self.uid = uid
     self.serverid = ServerId if ServerId else Gcore.getServerId()
     self.encode = Gcore.common.json_encode
     Base.__init__(self, uid)
Esempio n. 19
0
 def __init__(self, uid ,ServerId=None):
     '''@para: ServerId 测试用'''
     self.uid = uid
     self.serverid = ServerId if ServerId else Gcore.getServerId()
     self.encode = Gcore.common.json_encode
     Base.__init__(self, uid)
Esempio n. 20
0
 def __init__(self, uid):
     Base.__init__(self, uid)
     self.uid = uid
Esempio n. 21
0
 def __init__(self, uid):
     Base.__init__(self, uid)
     self.uid = uid
     self.serverid = int(Gcore.getServerId())
Esempio n. 22
0
 def __init__(self, uid):
     Base.__init__(self, uid)
     self.uid = uid
     self.serverid = int(Gcore.getServerId())
Esempio n. 23
0
 def __init__(self, uid):
     '''构造函数'''
     self.uid = uid
     Base.__init__(self,uid)
     self.buildingMod = Gcore.getMod('Building', uid)