forked from MagicBane/Server
Project cleanup pre merge.
This commit is contained in:
@@ -19,54 +19,53 @@ import java.util.HashMap;
|
||||
|
||||
public class RuneBaseEffect extends AbstractGameObject {
|
||||
|
||||
private byte type;
|
||||
private String name;
|
||||
private short amount;
|
||||
private int runeBaseID;
|
||||
public static HashMap<Integer, ArrayList<RuneBaseEffect>> RuneIDBaseEffectMap = new HashMap<>();
|
||||
private byte type;
|
||||
private String name;
|
||||
private short amount;
|
||||
private int runeBaseID;
|
||||
|
||||
public static HashMap<Integer,ArrayList<RuneBaseEffect>> RuneIDBaseEffectMap = new HashMap<>();
|
||||
/**
|
||||
* ResultSet Constructor
|
||||
*/
|
||||
public RuneBaseEffect(ResultSet rs) throws SQLException {
|
||||
super(rs);
|
||||
this.type = rs.getByte("type");
|
||||
this.name = rs.getString("name");
|
||||
this.amount = rs.getShort("amount");
|
||||
this.runeBaseID = rs.getInt("runeID");
|
||||
}
|
||||
/**
|
||||
* ResultSet Constructor
|
||||
*/
|
||||
public RuneBaseEffect(ResultSet rs) throws SQLException {
|
||||
super(rs);
|
||||
this.type = rs.getByte("type");
|
||||
this.name = rs.getString("name");
|
||||
this.amount = rs.getShort("amount");
|
||||
this.runeBaseID = rs.getInt("runeID");
|
||||
}
|
||||
|
||||
/*
|
||||
* Getters
|
||||
*/
|
||||
/*
|
||||
* Getters
|
||||
*/
|
||||
|
||||
public int getType() {
|
||||
return this.type;
|
||||
}
|
||||
public static void LoadRuneBaseEffects() {
|
||||
//cache runebase effects.
|
||||
DbManager.RuneBaseEffectQueries.GET_ALL_RUNEBASE_EFFECTS();
|
||||
//store runebase effects in new hashmap.
|
||||
RuneBaseEffect.RuneIDBaseEffectMap = DbManager.RuneBaseEffectQueries.LOAD_BASEEFFECTS_FOR_RUNEBASE();
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
public int getType() {
|
||||
return this.type;
|
||||
}
|
||||
|
||||
public short getAmount() {
|
||||
return this.amount;
|
||||
}
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public short getAmount() {
|
||||
return this.amount;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateDatabase() {
|
||||
@Override
|
||||
public void updateDatabase() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public int getRuneBaseID() {
|
||||
return runeBaseID;
|
||||
}
|
||||
|
||||
public static void LoadRuneBaseEffects(){
|
||||
//cache runebase effects.
|
||||
DbManager.RuneBaseEffectQueries.GET_ALL_RUNEBASE_EFFECTS();
|
||||
//store runebase effects in new hashmap.
|
||||
RuneBaseEffect.RuneIDBaseEffectMap = DbManager.RuneBaseEffectQueries.LOAD_BASEEFFECTS_FOR_RUNEBASE();
|
||||
}
|
||||
public int getRuneBaseID() {
|
||||
return runeBaseID;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user