Refactor to remove abstraction

This commit is contained in:
2023-05-21 17:00:17 -04:00
parent e203945ea3
commit 4d08857de1
2 changed files with 200 additions and 146 deletions
+2 -3
View File
@@ -34,7 +34,6 @@ import engine.workthreads.DestroyCityThread;
import engine.workthreads.TransferCityThread;
import org.pmw.tinylog.Logger;
import java.net.UnknownHostException;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.time.LocalDateTime;
@@ -98,9 +97,9 @@ public class City extends AbstractWorldObject {
* ResultSet Constructor
*/
public City(ResultSet rs) throws SQLException, UnknownHostException {
public City(ResultSet rs) throws SQLException {
super(rs);
try{
try {
this.cityName = rs.getString("name");
this.motto = rs.getString("motto");
this.isNpc = rs.getByte("isNpc");