NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
|
#include <game/framework/f_tree_mg.hpp>
A base tree, made of fTrNdBa_c nodes.
Definition at line 11 of file f_tree_mg.hpp.
Public Member Functions | |
const fTrNdBa_c * | searchNodeByProfName (ProfileName profName, const fTrNdBa_c *parent) const |
Searches for a base with a given profile name, optionally under a given parent. | |
const fTrNdBa_c * | searchNodeByGroupType (u8 groupType, const fTrNdBa_c *parent) const |
Searches for a base with a given group type, optionally under a given parent. | |
Public Member Functions inherited from cTreeMg_c | |
cTreeMg_c () | |
Constructs a new tree container. | |
bool | addTreeNode (cTreeNd_c *node, cTreeNd_c *parent) |
Adds a node to the tree, either to the root node or to a specified parent node. | |
bool | removeTreeNode (cTreeNd_c *node) |
Removes a node from the tree. | |
Additional Inherited Members | |
Protected Attributes inherited from cTreeMg_c | |
cTreeNd_c * | mpRootNode |
The root node of the tree. | |
const fTrNdBa_c * fTrMgBa_c::searchNodeByProfName | ( | ProfileName | profName, |
const fTrNdBa_c * | parent ) const |
Searches for a base with a given profile name, optionally under a given parent.
profName | The profile name. |
parent | The parent node to start searching from, or nullptr to use the tree's root node. |
nullptr
if none was found. Definition at line 24 of file f_tree.cpp.
Searches for a base with a given group type, optionally under a given parent.
groupType | The group type. Value is a fBase_c::GROUP_TYPE_e. |
parent | The parent node to start searching from, or nullptr to use the tree's root node. |
nullptr
if none was found. Definition at line 41 of file f_tree.cpp.