示例#1
0
def auto_tower_end(hid, content):
    resp = {"close": False, "content": None}

    pid = cookie.get_cookie(hid, "pid")
    cobj = user_ins.get_character_mgr().get_character(pid)

    resp["content"] = cobj._tower.auto_tower_end()

    return resp
示例#2
0
def reset_tower(hid, content):
    resp = {"close": False, "content": None}

    pid = cookie.get_cookie(hid, "pid")
    cobj = user_ins.get_character_mgr().get_character(pid)

    cobj._tower.reset()

    return resp
示例#3
0
def enter_tower(hid, content):
    resp = {"close": False, "content": None}

    pid = cookie.get_cookie(hid, "pid")
    cobj = user_ins.get_character_mgr().get_character(pid)

    resp["content"] = cobj._tower.enter(content["chapter_id"])

    return resp
示例#4
0
def start_tower_battle(hid, content):
    resp = {"close": False, "content": None}

    pid = cookie.get_cookie(hid, "pid")
    cobj = user_ins.get_character_mgr().get_character(pid)

    resp["content"] = cobj._tower.start_battle()

    return resp
示例#5
0
文件: tower.py 项目: fycheung/misc
def auto_tower_end(hid, content):
        resp = {"close" : False, "content" : None}
                
        pid = cookie.get_cookie(hid, "pid")
        cobj = user_ins.get_character_mgr().get_character(pid)
        
        resp["content"] = cobj._tower.auto_tower_end()
        
        return resp
示例#6
0
文件: tower.py 项目: fycheung/misc
def auto_tower(hid, content):
        resp = {"close" : False, "content" : None}
                
        pid = cookie.get_cookie(hid, "pid")
        cobj = user_ins.get_character_mgr().get_character(pid)
        
        resp["content"] = cobj._tower.auto_tower(content["des_process"], content["money_type"])
        
        return resp
示例#7
0
文件: tower.py 项目: fycheung/misc
def reset_tower(hid, content):
        resp = {"close" : False, "content" : None}
                
        pid = cookie.get_cookie(hid, "pid")
        cobj = user_ins.get_character_mgr().get_character(pid)
        
        cobj._tower.reset()
        
        return resp
示例#8
0
文件: tower.py 项目: fycheung/misc
def start_tower_battle(hid, content):
        resp = {"close" : False, "content" : None}
                
        pid = cookie.get_cookie(hid, "pid")
        cobj = user_ins.get_character_mgr().get_character(pid)
        
        resp["content"] = cobj._tower.start_battle()
        
        return resp
示例#9
0
文件: tower.py 项目: fycheung/misc
def enter_tower(hid, content):
        resp = {"close" : False, "content" : None}
                
        pid = cookie.get_cookie(hid, "pid")
        cobj = user_ins.get_character_mgr().get_character(pid)
        
        resp["content"] = cobj._tower.enter(content["chapter_id"])
        
        return resp
示例#10
0
def auto_tower(hid, content):
    resp = {"close": False, "content": None}

    pid = cookie.get_cookie(hid, "pid")
    cobj = user_ins.get_character_mgr().get_character(pid)

    resp["content"] = cobj._tower.auto_tower(content["des_process"],
                                             content["money_type"])

    return resp