Exemplo n.º 1
0
    public WorldStateSet ApplyEffects(WorldStateSet worldState)
    {
        WorldStateSet appliedWorldState = (WorldStateSet)worldState.Clone();

        foreach (WorldStateSymbol effect in Effects)
        {
            appliedWorldState[effect] = true;
        }
        return(appliedWorldState);
    }
Exemplo n.º 2
0
    public WorldStateSet GetEffectedWorldState(WorldStateSet worldState)
    {
        WorldStateSet appliedWorldState = (WorldStateSet)worldState.Clone();

        foreach (WorldStateSymbol effect in GoalWorldstates.Keys)
        {
            appliedWorldState[effect] = true;
        }
        return(appliedWorldState);
    }