|
|
@ -15,10 +15,13 @@ import engine.gameManager.DbManager; |
|
|
|
import engine.job.AbstractScheduleJob; |
|
|
|
import engine.job.AbstractScheduleJob; |
|
|
|
import engine.net.DispatchMessage; |
|
|
|
import engine.net.DispatchMessage; |
|
|
|
import engine.net.client.msg.chat.ChatSystemMsg; |
|
|
|
import engine.net.client.msg.chat.ChatSystemMsg; |
|
|
|
|
|
|
|
import engine.objects.Bane; |
|
|
|
import engine.objects.City; |
|
|
|
import engine.objects.City; |
|
|
|
import engine.workthreads.ZergMechanicThread; |
|
|
|
import engine.workthreads.ZergMechanicThread; |
|
|
|
import org.pmw.tinylog.Logger; |
|
|
|
import org.pmw.tinylog.Logger; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import static engine.workthreads.ZergMechanicThread.startZergThreadBane; |
|
|
|
|
|
|
|
|
|
|
|
public class ActivateBaneJob extends AbstractScheduleJob { |
|
|
|
public class ActivateBaneJob extends AbstractScheduleJob { |
|
|
|
|
|
|
|
|
|
|
|
private final int cityUUID; |
|
|
|
private final int cityUUID; |
|
|
@ -70,9 +73,7 @@ public class ActivateBaneJob extends AbstractScheduleJob { |
|
|
|
DispatchMessage.dispatchMsgToAll(msg); |
|
|
|
DispatchMessage.dispatchMsgToAll(msg); |
|
|
|
|
|
|
|
|
|
|
|
if(city.getBane() != null) { |
|
|
|
if(city.getBane() != null) { |
|
|
|
Thread zergMechanicThread = new Thread(new ZergMechanicThread(city.getBane(), null)); |
|
|
|
startZergThreadBane(city.getBane()); |
|
|
|
zergMechanicThread.setName(city.getName() + "Bane"); |
|
|
|
|
|
|
|
zergMechanicThread.start(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|