package config; import manager.STableManager; import manager.Table; import java.util.Arrays; @Table(name = "TrialSetting") public class STrialSetting implements BaseConfig{ public static STrialSetting sTrialSetting; @Override public void init() throws Exception { STrialSetting sTrialSettingTmp = STableManager.getConfig(STrialSetting.class).get(1); int[] privilegeReward = sTrialSettingTmp.getPrivilegeReward(); int temp = privilegeReward[0]; privilegeReward[0] = privilegeReward[privilegeReward.length-1]; privilegeReward[privilegeReward.length-1] = temp; int[] tempArray = Arrays.copyOf(privilegeReward, privilegeReward.length - 1); sTrialSettingTmp.setBombReward(tempArray); sTrialSetting = sTrialSettingTmp; } private int id; /** * 次元炸弹id */ private int[][] bombId; private int[] privilegeReward; private int[] bombReward; private int[] bossPosition; private int[] transportPoint; private int[] transportPortion; private int boxPointId; private int[] treasureProbability; //回春散 private int[] healingId; private int gameBoomCount; private int baseBuff; public int getId() { return id; } public int[][] getBombId() { return bombId; } public int[] getPrivilegeReward() { return privilegeReward; } public int[] getBombReward() { return bombReward; } public void setBombReward(int[] bombReward) { this.bombReward = bombReward; } public int[] getBossPosition() { return bossPosition; } public int[] getTransportPoint() { return transportPoint; } public int[] getTransportPortion() { return transportPortion; } public int getBoxPointId() { return boxPointId; } public int[] getTreasureProbability() { return treasureProbability; } public int[] getHealingId() { return healingId; } public int getBaseBuff() { return baseBuff; } public int getGameBoomCount() { return gameBoomCount; } }