/***************************************************************************/ public PlanningAction(ActionType actionType, Ingredients ingredient, World.WorldStateMask preconditions, World.WorldStateMask effects, World.WorldStateMask negativeEffects, float cost, string name) { mActionType = actionType; mIngredient = ingredient; mPreconditions = preconditions; mEffects = effects; mNegEffects = negativeEffects; mCost = cost; mName = name; }
public WorldState(WorldState w) { cPos = w.cPos; mask = w.mask; ingredientsKept = new List <Ingredients>(); finalRecipe = new List <Recipe>(); ingredientsVisited = new List <Ingredients>(); for (int i = 0; i < w.ingredientsVisited.Count; i++) { ingredientsVisited.Add(w.ingredientsVisited[i]); } for (int i = 0; i < w.ingredientsKept.Count; i++) { ingredientsKept.Add(w.ingredientsKept[i]); } for (int i = 0; i < w.finalRecipe.Count; i++) { finalRecipe.Add(w.finalRecipe[i]); } }