Exemple #1
0
        public override Statusgoal Process()
        {
            // Look for subgoals and execute if possible
            Statusgoal processState = ProcessAllSubgoals();

            // If everything is done -> activate again
            if (processState == Statusgoal.completed)
            {
                Activate();
            }


            return(State);
        }
        public override Statusgoal Process()
        {
            if (State == Statusgoal.inactive)
            {
                Activate();
            }

            Statusgoal processState = ProcessAllSubgoals();

            // If everything is done -> mark completed
            if (processState == Statusgoal.completed)
            {
                State = Statusgoal.completed;
            }
            return(State);
        }