Esempio n. 1
0
    private void initExploring()
    {
        Explore explore         = new Explore();
        Explore mountainExplore = new Explore();

        exploreActions = new Queue <Explore>();
        //TODO a mountain climbing explore

        exploreActions.Enqueue(explore);
        exploreActions.Enqueue(mountainExplore);

        //Post conditions are that it will have a path to a resource
        //in the code we do NOT change the state based on these conditions
        //this is only for the planner to know the benefits of exploring
        explore.addPostCond(State.hasPathToWood, true);
        explore.addPostCond(State.hasPathToGrass, true);
        explore.addPostCond(State.hasPathToStone, true);
        explore.addPostCond(State.needsBridge, true);

        mountainExplore.addPreCond(State.hasMtnKit, true);
        mountainExplore.addPostCond(State.hasPathToWind, true);
    }