Example #1
0
	def ladder(pt, rolelevel):
		"""
		天梯
		"""
		ia = infection_arena.instance()
		if tp == 'damage':
			return ia.damdage_ladder_list(rolelevel)
		elif tp == 'prestige':
			return ia.prestige_ladder_list(rolelevel)
		return {'msg':'infection_bad_ladder_type'}
Example #2
0
def infection_call_relief(request):	
	"""
	呼叫援军
	"""
	roleid = request.REQUEST['roleid']
	i = 1
	idkeyname = 'friendid' + str(i)
	namekeynam = 'friendname' + str(i)
	friendid = []
	while request.REQUEST.has_key(idkeyname):
		friendid.append((request.REQUEST[idkeyname], request.REQUEST[namekeynam]))		
		i = i + 1
		idkeyname = 'friendid' + str(i)
		namekeynam = 'friendname' + str(i)
	ia = infection_arena.instance()
	return HttpResponse(json.dumps(ia.call_relief(roleid, friendid)))
Example #3
0
	def reset_prestige_score(roleid):
		"""
		重置声望分数
		"""
		ia = infection_arena.instance()
		return ia.reset_prestige_score(roleid)
Example #4
0
	def encounter(roleid, rolename):
		"""
		遭遇战斗
		"""
		ia = infection_arena.instance()	
		return ia.encounter(roleid, rolename)
Example #5
0
	def user_info(roleid):
		"""
		用户信息
		"""
		ia = infection_arena.instance()
		return ia.user_info(roleid)
Example #6
0
	def get_infection_battle(roleid):
		"""
		得到感染战斗
		"""
		ia = infection_arena.instance()
		return ia.get_infection_battle(roleid)
Example #7
0
	def call_relief(roleid, friendid):
		"""
		援军
		"""
		ia = infection_arena.instance()
		return ia.call_relief(roleid, friendid)
Example #8
0
	def prestige_award(roleid, rolelevel):
		"""
		声望回馈
		"""
		ia = infection_arena.instance()
		return ia.get_prestige_award(roleid, rolelevel)
Example #9
0
	def battle_award(roleid, battleRoleid, create_time):
		"""
		战斗反馈
		"""
		ia = infection_arena.instance()
		return ia.get_battle_award(roleid, battleRoleid, create_time)
Example #10
0
	def beat(roleid, rolelevel, rolename, battleRoleid, damage):
		"""
		击败
		"""
		ia = infection_arena.instance()
		return ia.beat(roleid, rolelevel, rolename, battleRoleid, damage)