|
|
@ -66,6 +66,8 @@ public class Mine extends AbstractGameObject { |
|
|
|
public static ArrayList<Mine> ChinaMines = new ArrayList<>(); |
|
|
|
public static ArrayList<Mine> ChinaMines = new ArrayList<>(); |
|
|
|
public static ArrayList<Mine> EuroMines = new ArrayList<>(); |
|
|
|
public static ArrayList<Mine> EuroMines = new ArrayList<>(); |
|
|
|
public static ArrayList<Mine> AmericaMines = new ArrayList<>(); |
|
|
|
public static ArrayList<Mine> AmericaMines = new ArrayList<>(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public boolean wasOpened = false; |
|
|
|
/** |
|
|
|
/** |
|
|
|
* ResultSet Constructor |
|
|
|
* ResultSet Constructor |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -349,6 +351,16 @@ public class Mine extends AbstractGameObject { |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
e.printStackTrace(); |
|
|
|
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 { |
|
|
|
if(isAc) { |
|
|
|
if(isAc) { |
|
|
|
ZergMechanicThread.startZergThreadMine(this); |
|
|
|
ZergMechanicThread.startZergThreadMine(this); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.wasOpened = true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public boolean validForMine(Resource r) { |
|
|
|
public boolean validForMine(Resource r) { |
|
|
|