Example usage for com.badlogic.gdx.ai.btree BehaviorTree setObject

List of usage examples for com.badlogic.gdx.ai.btree BehaviorTree setObject

Introduction

In this page you can find the example usage for com.badlogic.gdx.ai.btree BehaviorTree setObject.

Prototype

public void setObject(E object) 

Source Link

Document

Sets the blackboard object of this behavior tree.

Usage

From source file:com.mygdx.game.Player.player.java

public player(BehaviorTree<player> btree) {
    this.btree = btree;
    if (btree != null)
        btree.setObject(this);

}

From source file:io.piotrjastrzebski.bte.desktop.dog.Dog.java

License:Apache License

public Dog(String name, BehaviorTree<Dog> btree) {
    this.name = name;
    this.brainLog = name + " brain";
    this.behaviorTree = btree;
    if (btree != null)
        btree.setObject(this);
}