104 lines
1.8 KiB
Java
104 lines
1.8 KiB
Java
|
package config;
|
||
|
|
||
|
|
||
|
|
||
|
import manager.STableManager;
|
||
|
import manager.Table;
|
||
|
|
||
|
import java.util.Map;
|
||
|
|
||
|
@Table(name = "MapPointConfig")
|
||
|
public class MapPointConfig implements BaseConfig{
|
||
|
|
||
|
public static Map<Integer, MapPointConfig> scMapEventMap;
|
||
|
/**
|
||
|
* 大事件id
|
||
|
*/
|
||
|
private int id;
|
||
|
/**
|
||
|
* "事件点类型
|
||
|
* 1怪物 2怪物群 3矿 4入口 5出口 6一次性事件 7重复事件 8npc 9地图boss "
|
||
|
*/
|
||
|
private int style;
|
||
|
/**
|
||
|
* 时间点的刷新规则
|
||
|
* 1每日刷新
|
||
|
* 2探索刷新
|
||
|
* 3一次性
|
||
|
*/
|
||
|
private int refresh;
|
||
|
|
||
|
/**
|
||
|
* 事件点触发规则
|
||
|
* 1边缘触发
|
||
|
* 2覆盖触发
|
||
|
*/
|
||
|
private int triggerRules;
|
||
|
|
||
|
/**
|
||
|
* 探索值
|
||
|
*/
|
||
|
private int exploreValues;
|
||
|
|
||
|
/**
|
||
|
* 初始事件id
|
||
|
*/
|
||
|
private int initialEventId;
|
||
|
|
||
|
/**
|
||
|
* 触发事件消耗行动力
|
||
|
*/
|
||
|
private int confuced;
|
||
|
|
||
|
private int position;
|
||
|
|
||
|
private int[][] randomProbability;
|
||
|
|
||
|
private int[] isShowFightAbility;
|
||
|
|
||
|
@Override
|
||
|
public void init() throws Exception {
|
||
|
scMapEventMap = STableManager.getConfig(MapPointConfig.class);
|
||
|
}
|
||
|
|
||
|
public int getId() {
|
||
|
return id;
|
||
|
}
|
||
|
|
||
|
public int getStyle() {
|
||
|
return style;
|
||
|
}
|
||
|
|
||
|
public int getRefresh() {
|
||
|
return refresh;
|
||
|
}
|
||
|
|
||
|
public static Map<Integer, MapPointConfig> getScMapEventMap() {
|
||
|
return scMapEventMap;
|
||
|
}
|
||
|
|
||
|
public int getTriggerRules() {
|
||
|
return triggerRules;
|
||
|
}
|
||
|
|
||
|
public int getInitialEventId() {
|
||
|
return initialEventId;
|
||
|
}
|
||
|
|
||
|
public int getExploreValues() {
|
||
|
return exploreValues;
|
||
|
}
|
||
|
|
||
|
public int getConfused() {
|
||
|
return confuced;
|
||
|
}
|
||
|
|
||
|
public int[][] getRandomProbability() {
|
||
|
return randomProbability;
|
||
|
}
|
||
|
|
||
|
public int[] getIsShowFightAbility() {
|
||
|
return isShowFightAbility;
|
||
|
}
|
||
|
}
|