public bool IsTaskAssigned(Task task) { return Minions.Any(minion => minion.Tasks.Contains(task)); }
public bool IsFeasible(Task task, List<CreatureAI> agents ) { return agents.Any(agent => task.IsFeasible(agent.Creature)); }
public bool TaskIsAssigned(Task goal) { return TaskQueue.SelectMany(assignment => assignment.Value).Any(t => t.Name == goal.Name); ; }
protected bool Equals(Task other) { return string.Equals(Name, other.Name); }