63 void Execute(std::unique_ptr<BTEditorCommand>
cmd);
116 void Undo()
override;
137 void Undo()
override;
163 void Undo()
override;
183 void Undo()
override;
202 void Undo()
override;
225 void Undo()
override;
Data-driven behavior tree system for AI decision making.
BTNodeType
Behavior tree node types.
ComponentTypeID GetComponentTypeID_Static()
Command to add a node to the tree.
std::string GetDescription() const override
Get a human-readable description of the command.
void Undo() override
Undo the command.
BehaviorTreeAsset * m_tree
void Execute() override
Execute the command.
Manages undo/redo stacks for editor commands.
std::vector< std::unique_ptr< BTEditorCommand > > m_undoStack
std::string GetUndoDescription() const
Get description of the next undo command.
bool CanRedo() const
Check if redo is available.
void Execute(std::unique_ptr< BTEditorCommand > cmd)
Execute a command and add it to the undo stack.
void Undo()
Undo the last command.
bool CanUndo() const
Check if undo is available.
static const size_t kMaxStackSize
std::string GetRedoDescription() const
Get description of the next redo command.
std::vector< std::unique_ptr< BTEditorCommand > > m_redoStack
void Clear()
Clear all commands.
void Redo()
Redo the last undone command.
Base class for all editor commands.
virtual std::string GetDescription() const =0
Get a human-readable description of the command.
virtual ~BTEditorCommand()=default
virtual void Execute()=0
Execute the command.
virtual void Undo()=0
Undo the command.
Command to connect two nodes.
std::string GetDescription() const override
Get a human-readable description of the command.
BehaviorTreeAsset * m_tree
void Execute() override
Execute the command.
void Undo() override
Undo the command.
Command to delete a node from the tree.
void Undo() override
Undo the command.
std::vector< Connection > m_savedConnections
void Execute() override
Execute the command.
std::string GetDescription() const override
Get a human-readable description of the command.
BehaviorTreeAsset * m_tree
Command to disconnect two nodes.
void Undo() override
Undo the command.
std::string GetDescription() const override
Get a human-readable description of the command.
BehaviorTreeAsset * m_tree
void Execute() override
Execute the command.
Command to edit a node parameter.
std::string GetDescription() const override
Get a human-readable description of the command.
void Undo() override
Undo the command.
void Execute() override
Execute the command.
BehaviorTreeAsset * m_tree
std::string GetDescription() const override
Get a human-readable description of the command.
void Undo() override
Undo the command.
BehaviorTreeAsset * m_tree
void Execute() override
Execute the command.
< Provides AssetID and INVALID_ASSET_ID
Represents a single node in a behavior tree.