2019-09-06 11:04:28 +08:00
|
|
|
package config;
|
|
|
|
|
|
|
|
import manager.STableManager;
|
|
|
|
import manager.Table;
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 爬塔
|
|
|
|
*/
|
|
|
|
@Table(name = "TrialConfig")
|
|
|
|
public class STrialConfig implements BaseConfig {
|
|
|
|
|
|
|
|
public static Map<Integer, STrialConfig> sTrialConfigMap;
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void init() throws Exception {
|
|
|
|
sTrialConfigMap = STableManager.getConfig(STrialConfig.class);
|
|
|
|
this.highestTower = sTrialConfigMap.size();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 层数
|
|
|
|
*/
|
|
|
|
private int id;
|
|
|
|
/**
|
|
|
|
* 地图id
|
|
|
|
*/
|
|
|
|
private int mapId;
|
|
|
|
/**
|
|
|
|
* 是否是记录层
|
|
|
|
*/
|
|
|
|
private int isSaveFloor;
|
2020-06-01 21:03:48 +08:00
|
|
|
|
2019-09-06 11:04:28 +08:00
|
|
|
/**
|
|
|
|
* "类型#怪物组id
|
|
|
|
* 1普通
|
|
|
|
* 2精英"
|
|
|
|
*/
|
|
|
|
private int[][] randomMonsterType;
|
|
|
|
/**
|
|
|
|
* 怪物数量
|
|
|
|
*/
|
|
|
|
private int[] monsterCount;
|
|
|
|
/**
|
|
|
|
* "类型#权重
|
|
|
|
* 1boss
|
|
|
|
* 2福利怪
|
|
|
|
* 3补给点
|
|
|
|
* 4商店"
|
|
|
|
*/
|
|
|
|
private int[][] randomBossType;
|
|
|
|
/**
|
|
|
|
* 对应MapPointid
|
|
|
|
*/
|
|
|
|
private int[][][] randomMapPointId;
|
|
|
|
/**
|
|
|
|
* 击败普通怪获得能量
|
|
|
|
*/
|
|
|
|
private int normalEnergy;
|
|
|
|
/**
|
|
|
|
* 击败精英怪获得能量
|
|
|
|
*/
|
|
|
|
private int eliteEnergy;
|
|
|
|
|
|
|
|
private int[][] randomStore;
|
2020-06-09 05:59:01 +08:00
|
|
|
|
|
|
|
private int[] monsterPoint;
|
2019-09-06 11:04:28 +08:00
|
|
|
/**
|
|
|
|
* 最高层
|
|
|
|
*/
|
|
|
|
private static int highestTower;
|
|
|
|
|
|
|
|
private int[][] floorReward;
|
|
|
|
|
2020-06-01 21:03:48 +08:00
|
|
|
private int[][][] boxReward;
|
|
|
|
|
|
|
|
private int[][] boxPosition;
|
|
|
|
|
2019-09-06 11:04:28 +08:00
|
|
|
public int getId() {
|
|
|
|
return id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getMapId() {
|
|
|
|
return mapId;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getIsSaveFloor() {
|
|
|
|
return isSaveFloor;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int[][] getRandomMonsterType() {
|
|
|
|
return randomMonsterType;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int[] getMonsterCount() {
|
|
|
|
return monsterCount;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int[][] getRandomBossType() {
|
|
|
|
return randomBossType;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getNormalEnergy() {
|
|
|
|
return normalEnergy;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getEliteEnergy() {
|
|
|
|
return eliteEnergy;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int[][][] getRandomMapPointId() {
|
|
|
|
return randomMapPointId;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int[][] getRandomStore() { return randomStore;}
|
|
|
|
|
|
|
|
public static int getHighestTower() {
|
|
|
|
return highestTower;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int[][] getFloorReward() {
|
|
|
|
return floorReward;
|
|
|
|
}
|
2020-06-01 21:03:48 +08:00
|
|
|
|
|
|
|
public int[][][] getBoxReward() {
|
|
|
|
return boxReward;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int[][] getBoxPosition() {
|
|
|
|
return boxPosition;
|
|
|
|
}
|
2020-06-09 05:59:01 +08:00
|
|
|
|
|
|
|
public int[] getMonsterPoint() {
|
|
|
|
return monsterPoint;
|
|
|
|
}
|
2019-09-06 11:04:28 +08:00
|
|
|
}
|