/// <summary> /// Is the crafter ready to craft? /// </summary> /// <returns>True if it is.</returns> public virtual bool ReadyToCraft() { var pendingRequests = orderProcessor.PendingRequests(); bool readyToCraft = pendingRequests == null; if (pendingRequests != null && pendingRequests.Count() == 0) { readyToCraft = true; } return(crafterStatus == CrafterStatus.Filling && readyToCraft); }
public bool ReadyToPrint() { return(printerStatus == CrafterStatus.Filling && orderProcessor.PendingRequests() == null); }