miduo_server/tablemanager/src/main/java/config/SChallengeConfig.java

130 lines
2.4 KiB
Java
Raw Normal View History

package config;
import manager.STableManager;
import manager.Table;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
@Table(name = "ChallengeConfig")
public class SChallengeConfig implements BaseConfig {
@Override
public void init() throws Exception {
Map<Integer, SChallengeConfig> config = STableManager.getConfig(SChallengeConfig.class);
Set<Integer> copyIdsTmp = new HashSet<>();
for(SChallengeConfig sChallengeConfig:config.values()){
if(sChallengeConfig.getType() == 3){
copyIdsTmp.add(sChallengeConfig.getMapId());
}
}
sChallengeConfigs = config;
copyIds = copyIdsTmp;
}
public static Map<Integer, SChallengeConfig> sChallengeConfigs;
public static Set<Integer> copyIds;
private int id;
private int isExplore;
private int mapId;//对应副本id
private int[][] openRule;
private int mapTime;
private int[] reviveTime;
private int time;
private int mostTime;
private int type;
private int deaths;
private int difficultType;
private int[] sweepingOpenRule;
private int[][] sweepingStoreProbability;
private int sweepingStoreId;
private int[][] sweepingMonsterProbability;
private int sweepingMonsterId;
public int getId() {
return id;
}
public int getMapId() {
return mapId;
}
public int[][] getOpenRule() {
return openRule;
}
public int getMapTime() {
return mapTime;
}
public int[] getReviveTime() {
return reviveTime;
}
public int getTime() {
return time;
}
public int getMostTime() {
return mostTime;
}
public int getType() {
return type;
}
public int getDeaths() {
return deaths;
}
public int getIsExplore() {
return isExplore;
}
public int getDifficultType() {
return difficultType;
}
public int[] getSweepingOpenRule() {
return sweepingOpenRule;
}
public int[][] getSweepingStoreProbability() {
return sweepingStoreProbability;
}
public int getSweepingStoreId() {
return sweepingStoreId;
}
public int[][] getSweepingMonsterProbability() {
return sweepingMonsterProbability;
}
public int getSweepingMonsterId() {
return sweepingMonsterId;
}
}