|
|
@ -119,42 +119,53 @@ public class Mine extends AbstractGameObject { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static void SetTimes(){ |
|
|
|
public static void SetTimes(){ |
|
|
|
EuroMines.get(0).liveTime = 16; |
|
|
|
try { |
|
|
|
EuroMines.get(1).liveTime = 16; |
|
|
|
EuroMines.get(0).liveTime = 16; |
|
|
|
EuroMines.get(2).liveTime = 16; |
|
|
|
EuroMines.get(1).liveTime = 16; |
|
|
|
EuroMines.get(3).liveTime = 16; |
|
|
|
EuroMines.get(2).liveTime = 16; |
|
|
|
EuroMines.get(4).liveTime = 16; |
|
|
|
EuroMines.get(3).liveTime = 16; |
|
|
|
EuroMines.get(5).liveTime = 16; |
|
|
|
EuroMines.get(4).liveTime = 16; |
|
|
|
EuroMines.get(6).liveTime = 16; |
|
|
|
EuroMines.get(5).liveTime = 16; |
|
|
|
ChinaMines.get(0).liveTime = 10; |
|
|
|
EuroMines.get(6).liveTime = 16; |
|
|
|
ChinaMines.get(1).liveTime = 10; |
|
|
|
}catch(Exception e){ |
|
|
|
ChinaMines.get(2).liveTime = 10; |
|
|
|
|
|
|
|
ChinaMines.get(3).liveTime = 11; |
|
|
|
} |
|
|
|
ChinaMines.get(4).liveTime = 11; |
|
|
|
try{ |
|
|
|
ChinaMines.get(5).liveTime = 11; |
|
|
|
ChinaMines.get(0).liveTime = 10; |
|
|
|
ChinaMines.get(6).liveTime = 11; |
|
|
|
ChinaMines.get(1).liveTime = 10; |
|
|
|
ChinaMines.get(7).liveTime = 11; |
|
|
|
ChinaMines.get(2).liveTime = 10; |
|
|
|
ChinaMines.get(8).liveTime = 11; |
|
|
|
ChinaMines.get(3).liveTime = 11; |
|
|
|
ChinaMines.get(9).liveTime = 11; |
|
|
|
ChinaMines.get(4).liveTime = 11; |
|
|
|
ChinaMines.get(10).liveTime = 12; |
|
|
|
ChinaMines.get(5).liveTime = 11; |
|
|
|
ChinaMines.get(11).liveTime = 12; |
|
|
|
ChinaMines.get(6).liveTime = 11; |
|
|
|
ChinaMines.get(12).liveTime = 12; |
|
|
|
ChinaMines.get(7).liveTime = 11; |
|
|
|
ChinaMines.get(13).liveTime = 12; |
|
|
|
ChinaMines.get(8).liveTime = 11; |
|
|
|
AmericaMines.get(0).liveTime = 23; |
|
|
|
ChinaMines.get(9).liveTime = 11; |
|
|
|
AmericaMines.get(1).liveTime = 23; |
|
|
|
ChinaMines.get(10).liveTime = 12; |
|
|
|
AmericaMines.get(2).liveTime = 23; |
|
|
|
ChinaMines.get(11).liveTime = 12; |
|
|
|
AmericaMines.get(3).liveTime = 0; |
|
|
|
ChinaMines.get(12).liveTime = 12; |
|
|
|
AmericaMines.get(4).liveTime = 0; |
|
|
|
ChinaMines.get(13).liveTime = 12; |
|
|
|
AmericaMines.get(5).liveTime = 0; |
|
|
|
}catch(Exception e){ |
|
|
|
AmericaMines.get(6).liveTime = 0; |
|
|
|
|
|
|
|
AmericaMines.get(7).liveTime = 0; |
|
|
|
} |
|
|
|
AmericaMines.get(8).liveTime = 0; |
|
|
|
try{ |
|
|
|
AmericaMines.get(9).liveTime = 0; |
|
|
|
AmericaMines.get(0).liveTime = 23; |
|
|
|
AmericaMines.get(10).liveTime = 1; |
|
|
|
AmericaMines.get(1).liveTime = 23; |
|
|
|
AmericaMines.get(11).liveTime = 1; |
|
|
|
AmericaMines.get(2).liveTime = 23; |
|
|
|
AmericaMines.get(12).liveTime = 1; |
|
|
|
AmericaMines.get(3).liveTime = 0; |
|
|
|
//AmericaMines.get(13).liveTime = 1;
|
|
|
|
AmericaMines.get(4).liveTime = 0; |
|
|
|
|
|
|
|
AmericaMines.get(5).liveTime = 0; |
|
|
|
|
|
|
|
AmericaMines.get(6).liveTime = 0; |
|
|
|
|
|
|
|
AmericaMines.get(7).liveTime = 0; |
|
|
|
|
|
|
|
AmericaMines.get(8).liveTime = 0; |
|
|
|
|
|
|
|
AmericaMines.get(9).liveTime = 0; |
|
|
|
|
|
|
|
AmericaMines.get(10).liveTime = 1; |
|
|
|
|
|
|
|
AmericaMines.get(11).liveTime = 1; |
|
|
|
|
|
|
|
AmericaMines.get(12).liveTime = 1; |
|
|
|
|
|
|
|
AmericaMines.get(13).liveTime = 1; |
|
|
|
|
|
|
|
}catch(Exception e){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
int count = 1; |
|
|
|
int count = 1; |
|
|
|
for(Mine mine : EuroMines){ |
|
|
|
for(Mine mine : EuroMines){ |
|
|
@ -175,11 +186,12 @@ public class Mine extends AbstractGameObject { |
|
|
|
count ++; |
|
|
|
count ++; |
|
|
|
if(count == 5) |
|
|
|
if(count == 5) |
|
|
|
count = 1; |
|
|
|
count = 1; |
|
|
|
|
|
|
|
if(BuildingManager.getBuilding(mine.buildingID) != null) { |
|
|
|
Building mineTower = BuildingManager.getBuilding(mine.buildingID); |
|
|
|
Building mineTower = BuildingManager.getBuilding(mine.buildingID); |
|
|
|
if(mineTower != null){ |
|
|
|
if (mineTower != null) { |
|
|
|
mineTower.setMaxHitPoints(5000 * mine.capSize); |
|
|
|
mineTower.setMaxHitPoints(5000 * mine.capSize); |
|
|
|
mineTower.setCurrentHitPoints((float) 5000 * mine.capSize); |
|
|
|
mineTower.setCurrentHitPoints((float) 5000 * mine.capSize); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -202,10 +214,12 @@ public class Mine extends AbstractGameObject { |
|
|
|
if(count == 5) |
|
|
|
if(count == 5) |
|
|
|
count = 1; |
|
|
|
count = 1; |
|
|
|
|
|
|
|
|
|
|
|
Building mineTower = BuildingManager.getBuilding(mine.buildingID); |
|
|
|
if(BuildingManager.getBuilding(mine.buildingID) != null) { |
|
|
|
if(mineTower != null){ |
|
|
|
Building mineTower = BuildingManager.getBuilding(mine.buildingID); |
|
|
|
mineTower.setMaxHitPoints(5000 * mine.capSize); |
|
|
|
if (mineTower != null) { |
|
|
|
mineTower.setCurrentHitPoints((float) 5000 * mine.capSize); |
|
|
|
mineTower.setMaxHitPoints(5000 * mine.capSize); |
|
|
|
|
|
|
|
mineTower.setCurrentHitPoints((float) 5000 * mine.capSize); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -228,10 +242,12 @@ public class Mine extends AbstractGameObject { |
|
|
|
if(count == 5) |
|
|
|
if(count == 5) |
|
|
|
count = 1; |
|
|
|
count = 1; |
|
|
|
|
|
|
|
|
|
|
|
Building mineTower = BuildingManager.getBuilding(mine.buildingID); |
|
|
|
if(BuildingManager.getBuilding(mine.buildingID) != null) { |
|
|
|
if(mineTower != null){ |
|
|
|
Building mineTower = BuildingManager.getBuilding(mine.buildingID); |
|
|
|
mineTower.setMaxHitPoints(5000 * mine.capSize); |
|
|
|
if (mineTower != null) { |
|
|
|
mineTower.setCurrentHitPoints((float) 5000 * mine.capSize); |
|
|
|
mineTower.setMaxHitPoints(5000 * mine.capSize); |
|
|
|
|
|
|
|
mineTower.setCurrentHitPoints((float) 5000 * mine.capSize); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|