Ejemplo n.º 1
0
 @Override
 public String toString() {
   StringBuffer buf = new StringBuffer("[");
   // 角色Id
   buf.append("personId:" + personId + ",");
   // 角色名字
   if (this.name != null) buf.append("name:" + name.toString() + ",");
   // 角色性别 1-男 2-女
   buf.append("sex:" + sex + ",");
   // 角色等级
   buf.append("level:" + level + ",");
   // 角色所在地图
   buf.append("mapId:" + mapId + ",");
   // 角色所在X
   buf.append("x:" + x + ",");
   // 角色所在Y
   buf.append("y:" + y + ",");
   // 角色武功境界
   buf.append("skill:" + skill + ",");
   // 角色武功境界层数
   buf.append("skills:" + skills + ",");
   // 角色状态
   buf.append("state:" + state + ",");
   // 角色PK状态
   buf.append("pkState:" + pkState + ",");
   // 角色经验
   buf.append("exp:" + exp + ",");
   // 角色真气
   buf.append("zhenqi:" + zhenqi + ",");
   // 角色战场声望
   buf.append("prestige:" + prestige + ",");
   // 人物面对方向
   buf.append("dir:" + dir + ",");
   // 头象ID
   buf.append("avatar:" + avatar + ",");
   // 属性列表
   buf.append("attributes:{");
   for (int i = 0; i < attributes.size(); i++) {
     buf.append(attributes.get(i).toString() + ",");
   }
   if (buf.charAt(buf.length() - 1) == ',') buf.deleteCharAt(buf.length() - 1);
   buf.append("},");
   // 跑步坐标集合
   buf.append("positions:{");
   for (int i = 0; i < positions.size(); i++) {
     buf.append(positions.get(i).toString() + ",");
   }
   if (buf.charAt(buf.length() - 1) == ',') buf.deleteCharAt(buf.length() - 1);
   buf.append("},");
   // 装备列表信息
   buf.append("equips:{");
   for (int i = 0; i < equips.size(); i++) {
     buf.append(equips.get(i).toString() + ",");
   }
   if (buf.charAt(buf.length() - 1) == ',') buf.deleteCharAt(buf.length() - 1);
   buf.append("},");
   // 背包格子数
   buf.append("cellnum:" + cellnum + ",");
   // 仓库格子数
   buf.append("storecellnum:" + storecellnum + ",");
   // 物品信息列表
   buf.append("items:{");
   for (int i = 0; i < items.size(); i++) {
     buf.append(items.get(i).toString() + ",");
   }
   if (buf.charAt(buf.length() - 1) == ',') buf.deleteCharAt(buf.length() - 1);
   buf.append("},");
   // 金币
   buf.append("money:" + money + ",");
   // 钻石
   buf.append("gold:" + gold + ",");
   // 绑定钻石
   buf.append("bindgold:" + bindgold + ",");
   // 玩家防沉迷状态 0-非防沉迷 1-正常 2-疲劳 3-不健康
   buf.append("nonage:" + nonage + ",");
   // 角色当前坐骑
   buf.append("horseid:" + horseid + ",");
   // 角色当前骑战兵器
   buf.append("horseweaponid:" + horseweaponid + ",");
   // 角色当前暗器
   buf.append("hiddenweaponid:" + hiddenweaponid + ",");
   // 装备部位全部宝石信息
   buf.append("posallgeminfo:{");
   for (int i = 0; i < posallgeminfo.size(); i++) {
     buf.append(posallgeminfo.get(i).toString() + ",");
   }
   if (buf.charAt(buf.length() - 1) == ',') buf.deleteCharAt(buf.length() - 1);
   buf.append("},");
   // 主线任务ID
   buf.append("maintaskId:" + maintaskId + ",");
   // 王城BUFFid
   buf.append("kingcitybuffid:" + kingcitybuffid + ",");
   // VIPid
   buf.append("vipid:" + vipid + ",");
   // 龙元心法阶段(星图)
   buf.append("longyuanlv:" + longyuanlv + ",");
   // 龙元心法星位
   buf.append("longyuannum:" + longyuannum + ",");
   // 军衔等级
   buf.append("ranklevel:" + ranklevel + ",");
   // 弓箭信息
   if (this.arrowInfo != null) buf.append("arrowInfo:" + arrowInfo.toString() + ",");
   // 平台VIP
   buf.append("webvip:" + webvip + ",");
   // 平台VIP2
   buf.append("webvip2:" + webvip2 + ",");
   // 坐骑锻骨草使用数量
   buf.append("horseduangu:" + horseduangu + ",");
   if (buf.charAt(buf.length() - 1) == ',') buf.deleteCharAt(buf.length() - 1);
   // 队伍Id
   buf.append("teamId:" + teamId + ",");
   // 战盟id
   buf.append("guildId:" + guildId + ",");
   // 战盟名字
   buf.append("guildName:" + guildName + ",");
   // ! Pk值
   buf.append("pkValue:" + pkValue + ",");
   buf.append("]");
   return buf.toString();
 }
Ejemplo n.º 2
0
 @Override
 public String toString() {
   StringBuffer buf = new StringBuffer("[");
   // 玩家id
   buf.append("playerid:" + playerid + ",");
   // 平台VIP
   buf.append("webvip:" + webvip + ",");
   // 玩家名
   if (this.playername != null) buf.append("playername:" + playername.toString() + ",");
   // 地图模板id
   buf.append("mapModelId:" + mapModelId + ",");
   // 排行类型 1等级 2坐骑 3武功 4龙元 5 连斩 6 侍宠 7 战斗力
   buf.append("toptype:" + toptype + ",");
   // 自己是否膜拜
   buf.append("worship:" + worship + ",");
   // 自己今天膜拜次数
   buf.append("worshipnum:" + worshipnum + ",");
   // 总膜拜次数
   buf.append("allworshipnum:" + allworshipnum + ",");
   // 名次
   buf.append("topidx:" + topidx + ",");
   // 等级
   buf.append("level:" + level + ",");
   // 性别
   buf.append("sex:" + sex + ",");
   // 国家
   buf.append("country:" + country + ",");
   // 角色经验
   buf.append("exp:" + exp + ",");
   // 角色真气
   buf.append("zhenqi:" + zhenqi + ",");
   // 头象ID
   buf.append("avatar:" + avatar + ",");
   // 当前章节
   buf.append("chapter:" + chapter + ",");
   // 王城BUFFid
   buf.append("kingcitybuffid:" + kingcitybuffid + ",");
   // VIPid
   buf.append("vipid:" + vipid + ",");
   // 战场声望
   buf.append("prestige:" + prestige + ",");
   // 游戏币
   buf.append("money:" + money + ",");
   // 技能总层数
   buf.append("totalSkillLevel:" + totalSkillLevel + ",");
   // 墨子主动技能总层数
   buf.append("moziSkillLevel:" + moziSkillLevel + ",");
   // 墨子被动技能总层数
   buf.append("mozibackSkillLevel:" + mozibackSkillLevel + ",");
   // 龙元主动技能总层数
   buf.append("longyuanSkillLevel:" + longyuanSkillLevel + ",");
   // 龙元被动技能总层数
   buf.append("longyuanbackSkillLevel:" + longyuanbackSkillLevel + ",");
   // 龙元阶数
   buf.append("lysection:" + lysection + ",");
   // 龙元级数
   buf.append("lylevel:" + lylevel + ",");
   // 战斗力
   buf.append("fightPower:" + fightPower + ",");
   // 属性战斗力
   buf.append("attrfightPower:" + attrfightPower + ",");
   // 装备战斗力
   buf.append("equipfightPower:" + equipfightPower + ",");
   // 技能战斗力
   buf.append("skillfightPower:" + skillfightPower + ",");
   // 侍宠模板id
   buf.append("petmodelId:" + petmodelId + ",");
   // 侍宠等级
   buf.append("petlevel:" + petlevel + ",");
   // 合体次数
   buf.append("pethtcount:" + pethtcount + ",");
   // 合体增加生命
   buf.append("pethtaddhp:" + pethtaddhp + ",");
   // 合体增加魔法值
   buf.append("pethtaddmp:" + pethtaddmp + ",");
   // 合体增加攻击
   buf.append("pethtaddattack:" + pethtaddattack + ",");
   // 合体增加防御
   buf.append("pethtadddefence:" + pethtadddefence + ",");
   // 合体增加暴击
   buf.append("pethtaddcrit:" + pethtaddcrit + ",");
   // 合体增加闪避
   buf.append("pethtadddodge:" + pethtadddodge + ",");
   // 侍宠技能 天赋技能排在第一个 不能动
   buf.append("petskillinfolist:{");
   for (int i = 0; i < petskillinfolist.size(); i++) {
     buf.append(petskillinfolist.get(i).toString() + ",");
   }
   if (buf.charAt(buf.length() - 1) == ',') buf.deleteCharAt(buf.length() - 1);
   buf.append("},");
   // 历史最大连击数
   buf.append("maxEventcut:" + maxEventcut + ",");
   // 历史最大连击数时间
   buf.append("maxEventcutTime:" + maxEventcutTime + ",");
   // 连斩发生地图ID
   buf.append("evencutmapid:" + evencutmapid + ",");
   // 最后连斩的怪物ID
   buf.append("evencutmonid:" + evencutmonid + ",");
   // 连斩发生坐标X
   buf.append("evencutmapx:" + evencutmapx + ",");
   // 连斩发生坐标Y
   buf.append("evencutmapy:" + evencutmapy + ",");
   // 弓箭信息
   if (this.arrowInfo != null) buf.append("arrowInfo:" + arrowInfo.toString() + ",");
   // 坐骑最高阶层
   buf.append("horselayer:" + horselayer + ",");
   // 坐骑最高阶的当前等级
   buf.append("horselevel:" + horselevel + ",");
   // 坐骑技能列表
   buf.append("skillinfolist:{");
   for (int i = 0; i < skillinfolist.size(); i++) {
     buf.append(skillinfolist.get(i).toString() + ",");
   }
   if (buf.charAt(buf.length() - 1) == ',') buf.deleteCharAt(buf.length() - 1);
   buf.append("},");
   // 坐骑装备列表
   buf.append("horseequipinfo:{");
   for (int i = 0; i < horseequipinfo.size(); i++) {
     buf.append(horseequipinfo.get(i).toString() + ",");
   }
   if (buf.charAt(buf.length() - 1) == ',') buf.deleteCharAt(buf.length() - 1);
   buf.append("},");
   // 属性列表
   buf.append("attributes:{");
   for (int i = 0; i < attributes.size(); i++) {
     buf.append(attributes.get(i).toString() + ",");
   }
   if (buf.charAt(buf.length() - 1) == ',') buf.deleteCharAt(buf.length() - 1);
   buf.append("},");
   // 战盟信息
   if (this.guildinfo != null) buf.append("guildinfo:" + guildinfo.toString() + ",");
   // 身上装备
   buf.append("itemlist:{");
   for (int i = 0; i < itemlist.size(); i++) {
     buf.append(itemlist.get(i).toString() + ",");
   }
   if (buf.charAt(buf.length() - 1) == ',') buf.deleteCharAt(buf.length() - 1);
   buf.append("},");
   // 装备部位全部宝石信息
   buf.append("posallgeminfo:{");
   for (int i = 0; i < posallgeminfo.size(); i++) {
     buf.append(posallgeminfo.get(i).toString() + ",");
   }
   if (buf.charAt(buf.length() - 1) == ',') buf.deleteCharAt(buf.length() - 1);
   buf.append("},");
   // 骑战兵器技能信息
   buf.append("horseWeaponSkillInfo:{");
   for (int i = 0; i < horseWeaponSkillInfo.size(); i++) {
     buf.append(horseWeaponSkillInfo.get(i).toString() + ",");
   }
   if (buf.charAt(buf.length() - 1) == ',') buf.deleteCharAt(buf.length() - 1);
   buf.append("},");
   // 骑战兵器最高阶层
   buf.append("horseweaponlayer:" + horseweaponlayer + ",");
   // 骑战兵器最高阶的当前等级
   buf.append("horseweaponlevel:" + horseweaponlevel + ",");
   // 暗器技能信息
   buf.append("hiddenWeaponSkillInfo:{");
   for (int i = 0; i < hiddenWeaponSkillInfo.size(); i++) {
     buf.append(hiddenWeaponSkillInfo.get(i).toString() + ",");
   }
   if (buf.charAt(buf.length() - 1) == ',') buf.deleteCharAt(buf.length() - 1);
   buf.append("},");
   // 暗器最高阶层
   buf.append("hiddenweaponlayer:" + hiddenweaponlayer + ",");
   // 暗器最高阶的当前等级
   buf.append("hiddenweaponlevel:" + hiddenweaponlevel + ",");
   // 境界等级
   buf.append("realmlevel:" + realmlevel + ",");
   // 境界强化等级
   buf.append("realmintensifylevel:" + realmintensifylevel + ",");
   if (buf.charAt(buf.length() - 1) == ',') buf.deleteCharAt(buf.length() - 1);
   buf.append("]");
   return buf.toString();
 }