remove ItemBase variables
This commit is contained in:
@@ -9,7 +9,6 @@
|
|||||||
|
|
||||||
package engine.objects;
|
package engine.objects;
|
||||||
|
|
||||||
import engine.Enum;
|
|
||||||
import engine.gameManager.DbManager;
|
import engine.gameManager.DbManager;
|
||||||
import org.pmw.tinylog.Logger;
|
import org.pmw.tinylog.Logger;
|
||||||
|
|
||||||
@@ -24,17 +23,11 @@ public class ItemBase {
|
|||||||
|
|
||||||
public final int uuid;
|
public final int uuid;
|
||||||
private final int modTable;
|
private final int modTable;
|
||||||
private final short percentRequired;
|
|
||||||
private final float speed;
|
|
||||||
private final float range;
|
|
||||||
|
|
||||||
public ItemBase(ResultSet rs) throws SQLException {
|
public ItemBase(ResultSet rs) throws SQLException {
|
||||||
|
|
||||||
this.uuid = rs.getInt("ID");
|
this.uuid = rs.getInt("ID");
|
||||||
this.modTable = rs.getInt("modTable");
|
this.modTable = rs.getInt("modTable");
|
||||||
this.percentRequired = rs.getShort("percentRequired");
|
|
||||||
this.speed = rs.getFloat("speed");
|
|
||||||
this.range = rs.getFloat("range");
|
|
||||||
|
|
||||||
ItemTemplate template = ItemTemplate.templates.get(this.getUUID());
|
ItemTemplate template = ItemTemplate.templates.get(this.getUUID());
|
||||||
|
|
||||||
@@ -75,16 +68,4 @@ public class ItemBase {
|
|||||||
return uuid;
|
return uuid;
|
||||||
}
|
}
|
||||||
|
|
||||||
public float getSpeed() {
|
|
||||||
return speed;
|
|
||||||
}
|
|
||||||
|
|
||||||
public float getRange() {
|
|
||||||
return range;
|
|
||||||
}
|
|
||||||
|
|
||||||
public short getPercentRequired() {
|
|
||||||
return percentRequired;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user