|
|
|
@ -9,7 +9,6 @@
@@ -9,7 +9,6 @@
|
|
|
|
|
|
|
|
|
|
package engine.objects; |
|
|
|
|
|
|
|
|
|
import engine.Enum; |
|
|
|
|
import engine.gameManager.DbManager; |
|
|
|
|
import org.pmw.tinylog.Logger; |
|
|
|
|
|
|
|
|
@ -24,17 +23,11 @@ public class ItemBase {
@@ -24,17 +23,11 @@ public class ItemBase {
|
|
|
|
|
|
|
|
|
|
public final int uuid; |
|
|
|
|
private final int modTable; |
|
|
|
|
private final short percentRequired; |
|
|
|
|
private final float speed; |
|
|
|
|
private final float range; |
|
|
|
|
|
|
|
|
|
public ItemBase(ResultSet rs) throws SQLException { |
|
|
|
|
|
|
|
|
|
this.uuid = rs.getInt("ID"); |
|
|
|
|
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()); |
|
|
|
|
|
|
|
|
@ -75,16 +68,4 @@ public class ItemBase {
@@ -75,16 +68,4 @@ public class ItemBase {
|
|
|
|
|
return uuid; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public float getSpeed() { |
|
|
|
|
return speed; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public float getRange() { |
|
|
|
|
return range; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public short getPercentRequired() { |
|
|
|
|
return percentRequired; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|