Browse Source

variable renamed

combat-2
MagicBot 9 months ago
parent
commit
993abfbf6f
  1. 6
      src/engine/gameManager/ForgeManager.java
  2. 2
      src/engine/loot/WorkOrder.java

6
src/engine/gameManager/ForgeManager.java

@ -18,8 +18,8 @@ public enum ForgeManager implements Runnable { @@ -18,8 +18,8 @@ public enum ForgeManager implements Runnable {
FORGE_MANAGER;
private final BlockingQueue<WorkOrder> workQueue = new DelayQueue();
public static final AtomicInteger workOrder = new AtomicInteger(0);
private final BlockingQueue<WorkOrder> workOrders = new DelayQueue();
public static final AtomicInteger wordOrderCounter = new AtomicInteger(0);
@Override
public void run() {
@ -28,7 +28,7 @@ public enum ForgeManager implements Runnable { @@ -28,7 +28,7 @@ public enum ForgeManager implements Runnable {
try {
WorkOrder workOrder = workQueue.take();
WorkOrder workOrder = workOrders.take();
// Fulfill workOrder

2
src/engine/loot/WorkOrder.java

@ -33,7 +33,7 @@ public class WorkOrder implements Delayed { @@ -33,7 +33,7 @@ public class WorkOrder implements Delayed {
public WorkOrder() {
this.workOrder = ForgeManager.workOrder.incrementAndGet();
this.workOrder = ForgeManager.wordOrderCounter.incrementAndGet();
this.completionTime = System.currentTimeMillis() + 10000;
}

Loading…
Cancel
Save