-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Added All Node
- Loading branch information
Showing
17 changed files
with
795 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import Composite from "./Composite"; | ||
import Node from "../Node"; | ||
import { Agent } from "../../Agent"; | ||
import Attribute from "../../attributes/Attribute"; | ||
import { BehaviourTreeOptions } from "../../BehaviourTreeOptions"; | ||
/** | ||
* An ALL node. | ||
* The child nodes are executed concurrently until all child nodes move to a completed state. | ||
*/ | ||
export default class All extends Composite { | ||
/** | ||
* @param attributes The node attributes. | ||
* @param options The behaviour tree options. | ||
* @param children The child nodes. | ||
*/ | ||
constructor(attributes: Attribute[], options: BehaviourTreeOptions, children: Node[]); | ||
/** | ||
* Called when the node is being updated. | ||
* @param agent The agent. | ||
*/ | ||
protected onUpdate(agent: Agent): void; | ||
/** | ||
* Gets the name of the node. | ||
*/ | ||
getName: () => string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.