forked from MagicBane/Server
Project cleanup pre merge.
This commit is contained in:
@@ -12,68 +12,65 @@ package engine.objects;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
|
||||
public class MobBaseStats {
|
||||
public class MobBaseStats {
|
||||
|
||||
private final int baseStr;
|
||||
private final int baseInt;
|
||||
private final int baseCon;
|
||||
private final int baseSpi;
|
||||
private final int baseDex;
|
||||
public static MobBaseStats mbs = null;
|
||||
public static MobBaseStats mbs = null;
|
||||
private final int baseStr;
|
||||
private final int baseInt;
|
||||
private final int baseCon;
|
||||
private final int baseSpi;
|
||||
private final int baseDex;
|
||||
|
||||
|
||||
/**
|
||||
* ResultSet Constructor
|
||||
*/
|
||||
public MobBaseStats(ResultSet rs) throws SQLException {
|
||||
this.baseStr = rs.getInt("Strength");
|
||||
this.baseInt = rs.getInt("Intelligence");
|
||||
this.baseCon = rs.getInt("Constitution");
|
||||
this.baseSpi = rs.getInt("Spirit");
|
||||
this.baseDex = rs.getInt("Dexterity");
|
||||
}
|
||||
/**
|
||||
* ResultSet Constructor
|
||||
*/
|
||||
public MobBaseStats(ResultSet rs) throws SQLException {
|
||||
this.baseStr = rs.getInt("Strength");
|
||||
this.baseInt = rs.getInt("Intelligence");
|
||||
this.baseCon = rs.getInt("Constitution");
|
||||
this.baseSpi = rs.getInt("Spirit");
|
||||
this.baseDex = rs.getInt("Dexterity");
|
||||
}
|
||||
|
||||
/**
|
||||
* Generic Constructor
|
||||
*/
|
||||
/**
|
||||
* Generic Constructor
|
||||
*/
|
||||
|
||||
public MobBaseStats() {
|
||||
this.baseStr = 0;
|
||||
this.baseInt = 0;
|
||||
this.baseCon = 0;
|
||||
this.baseSpi = 0;
|
||||
this.baseDex = 0;
|
||||
}
|
||||
public int getBaseStr() {
|
||||
return baseStr;
|
||||
}
|
||||
public MobBaseStats() {
|
||||
this.baseStr = 0;
|
||||
this.baseInt = 0;
|
||||
this.baseCon = 0;
|
||||
this.baseSpi = 0;
|
||||
this.baseDex = 0;
|
||||
}
|
||||
|
||||
|
||||
public int getBaseInt() {
|
||||
return baseInt;
|
||||
}
|
||||
|
||||
|
||||
public int getBaseCon() {
|
||||
return baseCon;
|
||||
}
|
||||
|
||||
|
||||
public int getBaseSpi() {
|
||||
return baseSpi;
|
||||
}
|
||||
|
||||
|
||||
public int getBaseDex() {
|
||||
return baseDex;
|
||||
}
|
||||
|
||||
public static MobBaseStats GetGenericStats(){
|
||||
if (mbs != null)
|
||||
return mbs;
|
||||
public static MobBaseStats GetGenericStats() {
|
||||
if (mbs != null)
|
||||
return mbs;
|
||||
mbs = new MobBaseStats();
|
||||
return mbs;
|
||||
}
|
||||
return mbs;
|
||||
}
|
||||
|
||||
public int getBaseStr() {
|
||||
return baseStr;
|
||||
}
|
||||
|
||||
public int getBaseInt() {
|
||||
return baseInt;
|
||||
}
|
||||
|
||||
public int getBaseCon() {
|
||||
return baseCon;
|
||||
}
|
||||
|
||||
public int getBaseSpi() {
|
||||
return baseSpi;
|
||||
}
|
||||
|
||||
public int getBaseDex() {
|
||||
return baseDex;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user