|
|
|
@ -66,6 +66,8 @@ public class Mine extends AbstractGameObject {
@@ -66,6 +66,8 @@ public class Mine extends AbstractGameObject {
|
|
|
|
|
public static ArrayList<Mine> ChinaMines = new ArrayList<>(); |
|
|
|
|
public static ArrayList<Mine> EuroMines = new ArrayList<>(); |
|
|
|
|
public static ArrayList<Mine> AmericaMines = new ArrayList<>(); |
|
|
|
|
|
|
|
|
|
public boolean wasOpened = false; |
|
|
|
|
/** |
|
|
|
|
* ResultSet Constructor |
|
|
|
|
*/ |
|
|
|
@ -349,6 +351,16 @@ public class Mine extends AbstractGameObject {
@@ -349,6 +351,16 @@ public class Mine extends AbstractGameObject {
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
e.printStackTrace(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
for(Mine mine : Mine.getMines()){ |
|
|
|
|
int minute = 0; |
|
|
|
|
if (mine.firstThirty == false) |
|
|
|
|
minute = 30; |
|
|
|
|
LocalDateTime openTime = LocalDateTime.now().withHour(mine.liveTime).withMinute(minute).withSecond(0); |
|
|
|
|
LocalDateTime closeTime = openTime.plusMinutes(30); |
|
|
|
|
if(LocalDateTime.now().isAfter(closeTime)) |
|
|
|
|
mine.wasOpened = true; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* |
|
|
|
@ -585,6 +597,8 @@ public class Mine extends AbstractGameObject {
@@ -585,6 +597,8 @@ public class Mine extends AbstractGameObject {
|
|
|
|
|
if(isAc) { |
|
|
|
|
ZergMechanicThread.startZergThreadMine(this); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.wasOpened = true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public boolean validForMine(Resource r) { |
|
|
|
|