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

92 lines
1.9 KiB
Java
Raw Normal View History

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;
2020-06-01 21:03:48 +08:00
private int[] bossPosition;
2020-06-02 10:57:56 +08:00
private int[] transportPoint;
2020-06-01 21:03:48 +08:00
private int[] transportPortion;
private int boxPointId;
2020-06-02 10:57:56 +08:00
private int[] treasureProbability;
//回春散
private int[] healingId;
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;
}
2020-06-01 21:03:48 +08:00
public int[] getBossPosition() {
return bossPosition;
}
2020-06-02 10:57:56 +08:00
public int[] getTransportPoint() {
2020-06-01 21:03:48 +08:00
return transportPoint;
}
public int[] getTransportPortion() {
return transportPortion;
}
public int getBoxPointId() {
return boxPointId;
}
2020-06-02 10:57:56 +08:00
public int[] getTreasureProbability() {
return treasureProbability;
}
public int[] getHealingId() {
return healingId;
}
}