Browse Source

Comment cleanup

combat-2
MagicBot 8 months ago
parent
commit
b3b115e9ba
  1. 8
      src/engine/gameManager/ForgeManager.java

8
src/engine/gameManager/ForgeManager.java

@ -32,10 +32,13 @@ public enum ForgeManager implements Runnable {
// Class implements 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 same lock used for 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.
// Forge window (ManageNPCMsg) uses item.upgradeDate to serialize completion time.
// //
// Replaces garbage code that looked as if written by a mental patient with face boils. // Replaces garbage code that looked as if written by a mental patient with face boils.
//
// @TODO Reuse same set of virtual items for each workOrder cycle.
FORGE_MANAGER; FORGE_MANAGER;
@ -52,8 +55,7 @@ public enum ForgeManager implements Runnable {
while (true) { while (true) {
// .forge is a delayQueue (blocking priority queue using an epoc sort) // workOrders are popped then processed once completion time has passed.
// workOrders are popped and processed when their completion time has passed.
try { try {
workOrder = forge.take(); workOrder = forge.take();

Loading…
Cancel
Save