public DTree(DTEnemy agent) { this.agent = agent; RecoverLeaf = new DTLeaf(new DTRecover(agent)); EscapeLeaf = new DTLeaf(new DTEscape(agent)); ChaseLeaf = new DTLeaf(new DTChase(agent)); AttackLeaf = new DTLeaf(new DTAttack(agent)); //Left = new DTNode(agent.ChooseDefensiveStance, RecoverLeaf, EscapeLeaf); //Right = new DTNode(agent.ChooseOffensiveStance, ChaseLeaf, AttackLeaf); //Root = new DTNode(agent.ChooseCombatStance, Left, Right); }
public DTState(DTEnemy agent) { this.agent = agent; }