private int GetNumOfCondition(List <Need> needs, NeedCondition condition) { int num = 0; foreach (Need need in needs) { if (need.CurrentCondition == condition) { num++; } } return(num); }
public NeedBehavior(NeedCondition needCondition) { this.Condition = needCondition; }