|
|
@ -29,13 +29,13 @@ import java.util.concurrent.atomic.AtomicInteger; |
|
|
|
public enum ForgeManager implements Runnable { |
|
|
|
public enum ForgeManager implements Runnable { |
|
|
|
|
|
|
|
|
|
|
|
// MB Dev notes:
|
|
|
|
// MB Dev notes:
|
|
|
|
// Class handles all forge rolling mechanics for Magicbane.
|
|
|
|
// Class implements forge rolling mechanics for Magicbane.
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// .submit(workOrder) may be called from any thread: (ItemProductionMsgHandler).
|
|
|
|
// .submit(workOrder) may be called from any thread: (ItemProductionMsgHandler).
|
|
|
|
// Concurrency is managed by the same lock used by the warehouse (city.cityTransactionLock).
|
|
|
|
// Concurrency is managed by the same lock used by the warehouse (city.cityTransactionLock).
|
|
|
|
// WorkOrders are persisted then reconstituted at bootstrap using table dyn.workorders.
|
|
|
|
// WorkOrders are persisted then reconstituted at bootstrap using table dyn.workorders.
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// p.s. replaces garbage code that looked like it was written by a mental patient with face boils.
|
|
|
|
// Replaces garbage code that looked as if written by a mental patient with face boils.
|
|
|
|
|
|
|
|
|
|
|
|
FORGE_MANAGER; |
|
|
|
FORGE_MANAGER; |
|
|
|
|
|
|
|
|
|
|
|