![]() |
Ember
|
Unified validation system for behavior trees. More...
#include <BehaviorTreeValidator.h>
Classes | |
| struct | ValidationIssue |
| struct | ValidationResult |
Public Types | |
| enum class | Severity { ERROR , WARNING } |
Public Member Functions | |
| BehaviorTreeValidator () | |
| BehaviorTreeValidator (const ParserConfig &config) | |
| ValidationResult | Validate (const BehaviorTree *tree) const |
| Validate a behavior tree against the parser profile. | |
Static Public Member Functions | |
| static ValidationResult | ValidateWithConfig (const BehaviorTree *tree, const ParserConfig &config) |
| Validate a behavior tree with profile override. | |
Private Member Functions | |
| void | ValidateTreeStructure (const BehaviorTree *tree, ValidationResult &result) const |
| void | ValidateNode (const Node *node, ValidationResult &result, std::vector< const Node * > &visited, const EmberCore::String &path) const |
| void | ValidateNodeType (const Node *node, ValidationResult &result, const EmberCore::String &path) const |
| void | ValidateNodeAttributes (const Node *node, ValidationResult &result, const EmberCore::String &path) const |
| void | ValidateChildCount (const Node *node, ValidationResult &result, const EmberCore::String &path) const |
| void | ValidateBlackboards (const BehaviorTree *tree, ValidationResult &result) const |
| EmberCore::String | BuildNodePath (const EmberCore::String &parent_path, const Node *node) const |
| bool | HasCycles (const Node *node, std::vector< const Node * > &visited) const |
Private Attributes | |
| ParserConfig | config_ |
Unified validation system for behavior trees.
Validates behavior trees against parser profile rules. Used by both parser (errors block loading) and save (warnings allow override).
Definition at line 18 of file BehaviorTreeValidator.h.
|
strong |
| Enumerator | |
|---|---|
| ERROR | |
| WARNING | |
Definition at line 20 of file BehaviorTreeValidator.h.
| EmberCore::BehaviorTreeValidator::BehaviorTreeValidator | ( | ) |
Definition at line 8 of file BehaviorTreeValidator.cpp.
|
explicit |
Definition at line 12 of file BehaviorTreeValidator.cpp.
|
private |
Definition at line 262 of file BehaviorTreeValidator.cpp.
|
private |
Definition at line 274 of file BehaviorTreeValidator.cpp.
| BehaviorTreeValidator::ValidationResult EmberCore::BehaviorTreeValidator::Validate | ( | const BehaviorTree * | tree | ) | const |
Validate a behavior tree against the parser profile.
Checks:
| tree | The tree to validate |
Definition at line 14 of file BehaviorTreeValidator.cpp.
|
private |
Definition at line 240 of file BehaviorTreeValidator.cpp.
|
private |
Definition at line 206 of file BehaviorTreeValidator.cpp.
|
private |
Definition at line 76 of file BehaviorTreeValidator.cpp.
|
private |
Definition at line 169 of file BehaviorTreeValidator.cpp.
|
private |
Definition at line 118 of file BehaviorTreeValidator.cpp.
|
private |
Definition at line 54 of file BehaviorTreeValidator.cpp.
|
static |
Validate a behavior tree with profile override.
| tree | The tree to validate |
| config | Profile to validate against |
Definition at line 48 of file BehaviorTreeValidator.cpp.
|
private |
Definition at line 97 of file BehaviorTreeValidator.h.