public WorldStateSet ApplyEffects(WorldStateSet worldState) { WorldStateSet appliedWorldState = (WorldStateSet)worldState.Clone(); foreach (WorldStateSymbol effect in Effects) { appliedWorldState[effect] = true; } return(appliedWorldState); }
public WorldStateSet GetEffectedWorldState(WorldStateSet worldState) { WorldStateSet appliedWorldState = (WorldStateSet)worldState.Clone(); foreach (WorldStateSymbol effect in GoalWorldstates.Keys) { appliedWorldState[effect] = true; } return(appliedWorldState); }