예제 #1
0
    private int GetNumOfCondition(List <Need> needs, NeedCondition condition)
    {
        int num = 0;

        foreach (Need need in needs)
        {
            if (need.CurrentCondition == condition)
            {
                num++;
            }
        }
        return(num);
    }
예제 #2
0
 public NeedBehavior(NeedCondition needCondition)
 {
     this.Condition = needCondition;
 }