Search in sources :

Example 1 with CollectMineral

use of ecgberht.BehaviourTrees.Recollection.CollectMineral in project Ecgberht by Jabbo16.

the class Ecgberht method initCollectTree.

private void initCollectTree() {
    CollectGas cg = new CollectGas("Collect Gas", gs);
    CollectMineral cm = new CollectMineral("Collect Mineral", gs);
    FreeWorker fw = new FreeWorker("No Union", gs);
    Selector collectResources = new Selector("Collect Melted Cash", cg, cm);
    Sequence collect = new Sequence("Collect", fw, collectResources);
    collectTree = new BehavioralTree("Recollection Tree");
    collectTree.addChild(collect);
}
Also used : CollectGas(ecgberht.BehaviourTrees.Recollection.CollectGas) FreeWorker(ecgberht.BehaviourTrees.Recollection.FreeWorker) Sequence(org.iaie.btree.task.composite.Sequence) CollectMineral(ecgberht.BehaviourTrees.Recollection.CollectMineral) BehavioralTree(org.iaie.btree.BehavioralTree) Selector(org.iaie.btree.task.composite.Selector)

Aggregations

CollectGas (ecgberht.BehaviourTrees.Recollection.CollectGas)1 CollectMineral (ecgberht.BehaviourTrees.Recollection.CollectMineral)1 FreeWorker (ecgberht.BehaviourTrees.Recollection.FreeWorker)1 BehavioralTree (org.iaie.btree.BehavioralTree)1 Selector (org.iaie.btree.task.composite.Selector)1 Sequence (org.iaie.btree.task.composite.Sequence)1