示例#1
0
        public override iThinkPlan progress(iThinkPlan Step, iThinkAction Action)
        {
            iThinkPlan          NewStep = new iThinkPlan(Step);
            List <iThinkAction> curActions;

            curActions = NewStep.getPlanActions();
            curActions.Add(Action);

            NewStep.setState(Action.applyEffects(Step.getState()));

            return(NewStep);
        }
        /*new progress function, where only the positive effects of actions will be applied */
        public virtual iThinkPlan progressPositive(iThinkPlan Step, iThinkAction Action)
        {
            iThinkPlan          NewStep = new iThinkPlan(Step);
            List <iThinkAction> curActions;

            curActions = NewStep.getPlanActions();
            curActions.Add(Action);

            NewStep.setState(Action.applyPositiveEffects(Step.getState()));

            return(NewStep);
        }
示例#3
0
		public override iThinkPlan progress( iThinkPlan Step, iThinkAction Action )
		{
			iThinkPlan NewStep = new iThinkPlan( Step );
			List<iThinkAction> curActions;

			curActions = NewStep.getPlanActions();
			curActions.Add( Action );

			NewStep.setState( Action.applyEffects( Step.getState() ) );

			return NewStep;
		}
		/*new progress function, where only the positive effects of actions will be applied */
		public virtual iThinkPlan progressPositive( iThinkPlan Step, iThinkAction Action )
		{
			iThinkPlan NewStep = new iThinkPlan( Step );
			List<iThinkAction> curActions;
			
			curActions = NewStep.getPlanActions();
			curActions.Add( Action );
			
			NewStep.setState( Action.applyPositiveEffects( Step.getState() ) );
			
			return NewStep;
		}
示例#5
0
		public void setPlan( iThinkPlan plan ) {
			state = new iThinkState(plan.getState());
			actions = new List<iThinkAction>( plan.getPlanActions() );
		}
示例#6
0
 public void setPlan(iThinkPlan plan)
 {
     state   = new iThinkState(plan.getState());
     actions = new List <iThinkAction>(plan.getPlanActions());
 }