Exemple #1
0
        private static Task RequestPersonalTask(Dwarf d)
        {
            if (d.SkipPersonalForOneTask)
                return null;
            if (d.NeedFood())
            {
                Task getFood = new GetFoodTask();
                return getFood;
            }
            else if (d.NeedTool())
            {
                Task getTool = new GetToolTask();
                return getTool;
            }
            else if (d.NeedCloth())
            {
            }

            return null;
        }