Esempio n. 1
0
 /// <summary>
 /// Sets the goal to inactive if it´s state is Failed
 /// </summary>
 protected void ReactivateIfFailed()
 {
     if (status == GoalProcessingState.Failed)
     {
         status = GoalProcessingState.Inactive;
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="owner">The ownwer of the goal</param>
 /// <remarks>All goals start in the inactive state</remarks>
 public Goal(T owner)
 {
     this.owner  = owner;
     this.status = GoalProcessingState.Inactive;
 }