import Decorator from "./Decorator"; import Node from "../Node"; import { Agent } from "../../Agent"; import Attribute from "../../attributes/Attribute"; import { BehaviourTreeOptions } from "../../BehaviourTreeOptions"; /** * A Flip node. * This node wraps a single child and will flip the state of the child state. */ export default class Flip extends Decorator { /** * @param attributes The node attributes. * @param options The behaviour tree options. * @param child The child node. */ constructor(attributes: Attribute[], options: BehaviourTreeOptions, child: 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; }