Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Utility AI inclusion #97

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Utility AI inclusion #97

wants to merge 7 commits into from

Commits on Oct 27, 2015

  1. Configuration menu
    Copy the full SHA
    227d1c3 View commit details
    Browse the repository at this point in the history
  2. Random Selector - tidy start

    I've updated RandomSelector to set in a known state each time it
    starts(). Pre this fix I was finding it could attempt to run in a state
    of runningChild = null and currentChildIndex = children.size.
    felixvolz committed Oct 27, 2015
    Configuration menu
    Copy the full SHA
    5c3aec8 View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2015

  1. Pathfinder with TerminationCondition

    A flawed, first attempt at implementing  a pathfinder that will
    terminate upon the location of an active item type rather than a
    specific node.
    
    TerminationCondition will set the endNode. I havent got this working
    properly.
    
    One then needs to override Node equals operator
    
    IndexedAStarPathFinderWithTerminationCondition<Node> pathFinder = new
    IndexedAStarPathFinderWithTerminationCondition<Node>(graph){
    @OverRide
    public boolean isTerminationConditionSatisfied(Node current, Node
    target) {
    if (current.extraInfo != null) {
    if (current.extraInfo instanceof Trigger_Food) {
    Trigger_Food<MyActor> trig = (Trigger_Food<MyActor>) current.extraInfo;
    if(trig.isTriggerActive()){
    
    //clone, dont like but it works
    target.pos = current.pos;
    target.index = current.index;
    return true;
    }
    }
    }
    return false;
    
    }
    };
    felixvolz committed Nov 16, 2015
    Configuration menu
    Copy the full SHA
    b19a620 View commit details
    Browse the repository at this point in the history
  2. Pathfinder with TerminationCondition

    A flawed, first attempt at implementing  a pathfinder that will
    terminate upon the location of an active item type rather than a
    specific node.
    
    TerminationCondition will set the endNode. I havent got this working
    properly.
    
    One will then need to override Node equals operator.
    Example usage:
    
    IndexedAStarPathFinderWithTerminationCondition<Node> pathFinder = new
    IndexedAStarPathFinderWithTerminationCondition<Node>(graph){
    @OverRide
    public boolean isTerminationConditionSatisfied(Node current, Node
    target) {
    if (current.extraInfo != null) {
    if (current.extraInfo instanceof Trigger_Food) {
    Trigger_Food<MyActor> trig = (Trigger_Food<MyActor>) current.extraInfo;
    if(trig.isTriggerActive()){
    
    //clone, dont like but it works
    target.pos = current.pos;
    target.index = current.index;
    return true;
    }
    }
    }
    return false;
    
    }
    };
    felixvolz committed Nov 16, 2015
    Configuration menu
    Copy the full SHA
    db71d3c View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2017

  1. Configuration menu
    Copy the full SHA
    985af74 View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2017

  1. UtilityAI - initial commit

    felixvolz committed Nov 8, 2017
    Configuration menu
    Copy the full SHA
    df89f23 View commit details
    Browse the repository at this point in the history
  2. UtilityAI - initial commit

    felixvolz committed Nov 8, 2017
    Configuration menu
    Copy the full SHA
    b753ec9 View commit details
    Browse the repository at this point in the history