Simlify and improve BT visualization
This commit is contained in:
@@ -203,6 +203,11 @@ BzBTNode *bzBTNodeNext(const BzBTNode *node) {
|
||||
return node->next;
|
||||
}
|
||||
|
||||
const BzBTNode *bzBTNodeStateGetNode(const BzBTNodeState *state) {
|
||||
BZ_ASSERT(state);
|
||||
return state->node;
|
||||
}
|
||||
|
||||
const BzBTNodeState *bzBTNodeStateNext(const BzBTNodeState *state) {
|
||||
BZ_ASSERT(state);
|
||||
return state->next;
|
||||
|
||||
@@ -92,6 +92,8 @@ BzBTNodeType bzBTGetNodeType(const BzBTNode *node);
|
||||
BzBTNode *bzBTNodeChild(const BzBTNode *node);
|
||||
BzBTNode *bzBTNodeNext(const BzBTNode *node);
|
||||
|
||||
const BzBTNode *bzBTNodeStateGetNode(const BzBTNodeState *state);
|
||||
|
||||
const BzBTNodeState *bzBTNodeStateNext(const BzBTNodeState *state);
|
||||
bool bzBTNodeMatchesState(const BzBTNode *node, const BzBTNodeState *state);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user