mine changes

This commit is contained in:
2024-06-11 19:07:44 -05:00
parent bc8094c20c
commit 7e27838818
4 changed files with 189 additions and 74 deletions
+9
View File
@@ -51,6 +51,11 @@ public class Mine extends AbstractGameObject {
private int buildingID;
private MineProduction mineType;
public int openHour;
public int openMinute;
public int capSize;
public LocalDateTime liveTime;
/**
* ResultSet Constructor
*/
@@ -90,6 +95,10 @@ public class Mine extends AbstractGameObject {
this.production = Resource.valueOf(rs.getString("mine_resource"));
this.lastClaimer = null;
this.openHour = rs.getInt("mineLiveHour");
this.openMinute = rs.getInt("mineLiveMinute");
this.capSize = rs.getInt("capSize");
this.liveTime = LocalDateTime.now().withHour(this.openHour).withMinute(this.openMinute);
}