IAction DecideSeasonalActivity() { if (IsCollaborating) { return(_mandatoryAction); } else { ConsideredActions actions = new ConsideredActions(); foreach (IGoal goal in _goals) { if (!goal.IsComplete()) { // TODO: it should probably be an error case for a goal to still be here // for now, ignore List <string> dummy = new List <string>(); goal.AddActionPreferencesToList(actions, dummy); } } Log.AddRange(actions.Log()); return(actions.GetBestAction()); } }
IAction DecideSeasonalActivity() { if (IsCollaborating) { return _mandatoryAction; } else { ConsideredActions actions = new ConsideredActions(); foreach (IGoal goal in _goals) { if (!goal.IsComplete()) { // TODO: it should probably be an error case for a goal to still be here // for now, ignore List<string> dummy = new List<string>(); goal.AddActionPreferencesToList(actions, dummy); } } Log.AddRange(actions.Log()); return actions.GetBestAction(); } }