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

97 lines
2.0 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;
/**
*
*/
private int dailyReset;
/**
*
*/
private int rebornTimes;
/**
* id
*/
private int[][] bombId;
private int[] privilegeReward;
private int[] bombReward;
2020-06-01 21:03:48 +08:00
private int[] bossPosition;
private int transportPoint;
private int[] transportPortion;
private int boxPointId;
public int getId() {
return id;
}
public int getDailyReset() {
return dailyReset;
}
public int getRebornTimes() {
return rebornTimes;
}
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;
}
public int getTransportPoint() {
return transportPoint;
}
public int[] getTransportPortion() {
return transportPortion;
}
public int getBoxPointId() {
return boxPointId;
}
}