|
|
|
@ -9,9 +9,11 @@
@@ -9,9 +9,11 @@
|
|
|
|
|
package engine.gameManager; |
|
|
|
|
|
|
|
|
|
import engine.loot.WorkOrder; |
|
|
|
|
import engine.objects.Item; |
|
|
|
|
import engine.objects.PlayerCharacter; |
|
|
|
|
import org.pmw.tinylog.Logger; |
|
|
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
|
|
import java.util.concurrent.BlockingQueue; |
|
|
|
|
import java.util.concurrent.DelayQueue; |
|
|
|
|
import java.util.concurrent.atomic.AtomicInteger; |
|
|
|
@ -22,6 +24,7 @@ public enum ForgeManager implements Runnable {
@@ -22,6 +24,7 @@ public enum ForgeManager implements Runnable {
|
|
|
|
|
|
|
|
|
|
private static final BlockingQueue<WorkOrder> workOrders = new DelayQueue(); |
|
|
|
|
public static final AtomicInteger wordOrderCounter = new AtomicInteger(0); |
|
|
|
|
public static HashMap<Item, WorkOrder> oven = new HashMap<Item, WorkOrder>(); |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void run() { |
|
|
|
|