117 lines
2.7 KiB
Java
117 lines
2.7 KiB
Java
package com.ljsd.jieling.jbean;
|
|
|
|
import com.ljsd.common.mogodb.MongoBase;
|
|
import java.util.Map;
|
|
import java.util.HashMap;
|
|
import java.util.Set;
|
|
import java.util.HashSet;
|
|
import java.util.LinkedList;
|
|
import com.ljsd.common.mogodb.dblog.*;
|
|
|
|
public final class PropertyItem extends MongoBase {
|
|
public String id;
|
|
public int equipId;
|
|
public int level;
|
|
public String heroId;
|
|
public HashMap<Integer, Integer> propertyValueByIdMap = new HashMap<Integer, Integer>(); // 主属性 key 对应PropertyConfig id
|
|
public LogHashMap<Integer, Integer> propertyValueByIdMapLog ;
|
|
public HashMap<Integer, Integer> secondValueByIdMap = new HashMap<Integer, Integer>(); // //副属性
|
|
public LogHashMap<Integer, Integer> secondValueByIdMapLog ;
|
|
public int createTime;
|
|
public int skill;
|
|
public int isLocked;
|
|
|
|
public PropertyItem() {
|
|
}
|
|
|
|
public String getId() {
|
|
return this.id;
|
|
}
|
|
|
|
public int getEquipId() {
|
|
return this.equipId;
|
|
}
|
|
|
|
public int getLevel() {
|
|
return this.level;
|
|
}
|
|
|
|
public String getHeroId() {
|
|
return this.heroId;
|
|
}
|
|
|
|
public Map<Integer, Integer> getPropertyValueByIdMap() { // 主属性 key 对应PropertyConfig id
|
|
return Map;
|
|
}
|
|
|
|
public Map<Integer, Integer> getSecondValueByIdMap() { // //副属性
|
|
return Map;
|
|
}
|
|
|
|
public int getCreateTime() {
|
|
return this.createTime;
|
|
}
|
|
|
|
public int getSkill() {
|
|
return this.skill;
|
|
}
|
|
|
|
public int getIsLocked() {
|
|
return this.isLocked;
|
|
}
|
|
|
|
public void setId(String id) {
|
|
updateString ("id",id);
|
|
this.id = id;
|
|
}
|
|
|
|
public void setEquipId(int equipid) {
|
|
updateString ("equipid",equipid);
|
|
this.equipId = equipid;
|
|
}
|
|
|
|
public void setLevel(int level) {
|
|
updateString ("level",level);
|
|
this.level = level;
|
|
}
|
|
|
|
public void setHeroId(String heroid) {
|
|
updateString ("heroid",heroid);
|
|
this.heroId = heroid;
|
|
}
|
|
|
|
public void setCreateTime(int createtime) {
|
|
updateString ("createtime",createtime);
|
|
this.createTime = createtime;
|
|
}
|
|
|
|
public void setSkill(int skill) {
|
|
updateString ("skill",skill);
|
|
this.skill = skill;
|
|
}
|
|
|
|
public void setIsLocked(int islocked) {
|
|
updateString ("islocked",islocked);
|
|
this.isLocked = islocked;
|
|
}
|
|
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder _sb_ = new StringBuilder(super.toString());
|
|
_sb_.append("=(");
|
|
_sb_.append("T").append(this.id.length()).append(",");
|
|
_sb_.append(this.equipId).append(",");
|
|
_sb_.append(this.level).append(",");
|
|
_sb_.append("T").append(this.heroId.length()).append(",");
|
|
_sb_.append(this.propertyValueByIdMap).append(",");
|
|
_sb_.append(this.secondValueByIdMap).append(",");
|
|
_sb_.append(this.createTime).append(",");
|
|
_sb_.append(this.skill).append(",");
|
|
_sb_.append(this.isLocked).append(",");
|
|
_sb_.append(")");
|
|
return _sb_.toString();
|
|
}
|
|
|
|
}
|