Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
 public bool ReadyToPrint()
 {
     return(printerStatus == CrafterStatus.Filling && orderProcessor.PendingRequests() == null);
 }