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

143 lines
2.4 KiB
Java

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;
private int[][] gameType;
/**
* 怪物数量
*/
private int[] gameCount;
/**
* "类型#权重
* 1boss
* 2福利怪
* 3补给点
* 4商店"
*/
private int[][] randomBossType;
/**
* 对应MapPointid
*/
private int bossMapPointId;
/**
* 击败普通怪获得能量
*/
private int normalEnergy;
private int[][] randomStore;
private int[][] monsterPoint;
/**
* 最高层
*/
private static int highestTower;
private int[][] floorReward;
private int[][][] boxReward;
private int[][] boxPosition;
private int[] gameType1;
private int[] gameType2;
private int[] gameType3;
public int getId() {
return id;
}
public int getMapId() {
return mapId;
}
public int getIsSaveFloor() {
return isSaveFloor;
}
public int[][] getGameType() {
return gameType;
}
public int[] getGameCount() {
return gameCount;
}
public int[][] getRandomBossType() {
return randomBossType;
}
public int getNormalEnergy() {
return normalEnergy;
}
public int getBossMapPointId() {
return bossMapPointId;
}
public int[][] getRandomStore() { return randomStore;}
public static int getHighestTower() {
return highestTower;
}
public int[][] getFloorReward() {
return floorReward;
}
public int[][][] getBoxReward() {
return boxReward;
}
public int[][] getBoxPosition() {
return boxPosition;
}
public int[][] getMonsterPoint() {
return monsterPoint;
}
public int[] getGameType1() {
return gameType1;
}
public int[] getGameType2() {
return gameType2;
}
public int[] getGameType3() {
return gameType3;
}
}