|
|
|
@ -60,7 +60,7 @@ public class Mine extends AbstractGameObject {
@@ -60,7 +60,7 @@ public class Mine extends AbstractGameObject {
|
|
|
|
|
public boolean hasProduced = false; |
|
|
|
|
|
|
|
|
|
public int liveTime; |
|
|
|
|
public Boolean fullHour = true; |
|
|
|
|
public Boolean firstThirty = true; |
|
|
|
|
|
|
|
|
|
public static ArrayList<Mine> ChinaMines = new ArrayList<>(); |
|
|
|
|
public static ArrayList<Mine> EuroMines = new ArrayList<>(); |
|
|
|
@ -123,17 +123,9 @@ public class Mine extends AbstractGameObject {
@@ -123,17 +123,9 @@ public class Mine extends AbstractGameObject {
|
|
|
|
|
|
|
|
|
|
public static void SetTimes(){ |
|
|
|
|
EuroMines.get(0).liveTime = 12; |
|
|
|
|
EuroMines.get(0).fullHour = true; |
|
|
|
|
|
|
|
|
|
EuroMines.get(1).liveTime = 12; |
|
|
|
|
EuroMines.get(1).fullHour = false; |
|
|
|
|
|
|
|
|
|
EuroMines.get(2).liveTime = 12; |
|
|
|
|
EuroMines.get(2).fullHour = false; |
|
|
|
|
|
|
|
|
|
EuroMines.get(3).liveTime = 12; |
|
|
|
|
EuroMines.get(3).fullHour = true; |
|
|
|
|
|
|
|
|
|
EuroMines.get(4).liveTime = 13; |
|
|
|
|
EuroMines.get(5).liveTime = 13; |
|
|
|
|
EuroMines.get(6).liveTime = 13; |
|
|
|
@ -256,6 +248,27 @@ public class Mine extends AbstractGameObject {
@@ -256,6 +248,27 @@ public class Mine extends AbstractGameObject {
|
|
|
|
|
ChinaMines.add(serverMines.get(33)); |
|
|
|
|
AmericaMines.add(serverMines.get(34)); |
|
|
|
|
SetTimes(); |
|
|
|
|
for(Mine mine : EuroMines){ |
|
|
|
|
if(EuroMines.indexOf(mine) %2 == 0 ){ |
|
|
|
|
mine.firstThirty = true; |
|
|
|
|
} else{ |
|
|
|
|
mine.firstThirty = false; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
for(Mine mine : AmericaMines){ |
|
|
|
|
if(AmericaMines.indexOf(mine) %2 == 0 ){ |
|
|
|
|
mine.firstThirty = true; |
|
|
|
|
} else{ |
|
|
|
|
mine.firstThirty = false; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
for(Mine mine : ChinaMines){ |
|
|
|
|
if(ChinaMines.indexOf(mine) %2 == 0 ){ |
|
|
|
|
mine.firstThirty = true; |
|
|
|
|
} else{ |
|
|
|
|
mine.firstThirty = false; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
e.printStackTrace(); |
|
|
|
|
} |
|
|
|
|