|
|
@ -9,6 +9,7 @@ |
|
|
|
package engine.gameManager; |
|
|
|
package engine.gameManager; |
|
|
|
|
|
|
|
|
|
|
|
import engine.loot.WorkOrder; |
|
|
|
import engine.loot.WorkOrder; |
|
|
|
|
|
|
|
import engine.mbEnums; |
|
|
|
import engine.objects.Item; |
|
|
|
import engine.objects.Item; |
|
|
|
import engine.objects.PlayerCharacter; |
|
|
|
import engine.objects.PlayerCharacter; |
|
|
|
import org.pmw.tinylog.Logger; |
|
|
|
import org.pmw.tinylog.Logger; |
|
|
@ -88,6 +89,8 @@ public enum ForgeManager implements Runnable { |
|
|
|
workOrder.workOrderID = wordOrderCounter.incrementAndGet(); |
|
|
|
workOrder.workOrderID = wordOrderCounter.incrementAndGet(); |
|
|
|
workOrder.completionTime = System.currentTimeMillis() + workOrder.rollingDuration; |
|
|
|
workOrder.completionTime = System.currentTimeMillis() + workOrder.rollingDuration; |
|
|
|
workOrder.slotCount = calcAvailableSlots(workOrder); |
|
|
|
workOrder.slotCount = calcAvailableSlots(workOrder); |
|
|
|
|
|
|
|
workOrder.production_cost = calcProductionCost(workOrder); |
|
|
|
|
|
|
|
workOrder.rollingDuration = ForgeManager.calcRollingDuration(workOrder); |
|
|
|
|
|
|
|
|
|
|
|
// Single item rolls are total_to_produce of 0;
|
|
|
|
// Single item rolls are total_to_produce of 0;
|
|
|
|
|
|
|
|
|
|
|
@ -144,4 +147,10 @@ public enum ForgeManager implements Runnable { |
|
|
|
|
|
|
|
|
|
|
|
return availableSlots; |
|
|
|
return availableSlots; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static HashMap<mbEnums.ResourceType, Integer> calcProductionCost(WorkOrder workOrder) { |
|
|
|
|
|
|
|
HashMap<mbEnums.ResourceType, Integer> production_cost = new HashMap<>(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return production_cost; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|