58 void Execute(std::unique_ptr<BTEditorCommand>
cmd);
111 void Undo()
override;
132 void Undo()
override;
158 void Undo()
override;
178 void Undo()
override;
197 void Undo()
override;
220 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_redoStack
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.
std::vector< std::unique_ptr< BTEditorCommand > > m_undoStack
static const size_t kMaxStackSize
std::string GetRedoDescription() const
Get description of the next redo command.
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.
DeleteNodeCommand - Command to delete a node from graph.
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
MoveNodeCommand - Command to move a node's position.
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.
Represents a single node in a behavior tree.