Ejemplo n.º 1
0
 public joshstatetree(joshstatetree root, float total, HashSet <KeyValuePair <string, object> > state, joshgoapaction act)
 {
     parent     = root;
     totalcost  = total;
     worldstate = state;
     action     = act;
 }
Ejemplo n.º 2
0
    public HashSet <joshgoapaction> actionSubset(HashSet <joshgoapaction> actions, joshgoapaction removeMe)
    {
        HashSet <joshgoapaction> subset = new HashSet <joshgoapaction> ();

        foreach (joshgoapaction a in actions)
        {
            if (!a.Equals(removeMe))
            {
                subset.Add(a);
            }
        }
        return(subset);
    }