/// <summary> /// Sets the goal to inactive if it´s state is Failed /// </summary> protected void ReactivateIfFailed() { if (status == GoalProcessingState.Failed) { status = GoalProcessingState.Inactive; } }
/// <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; }