NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
|
#include <game/framework/f_tree_mg_ptmf.hpp>
A base tree made of fTrNdBa_c nodes, with a reference to a process function.
Definition at line 11 of file f_tree_mg_ptmf.hpp.
Public Member Functions | |
fTrMgPTMF_c (int(fBase_c::*procFunc)()) | |
Constructs a new tree. | |
bool | walkPack () |
Calls the process function on each base in the tree. | |
Public Member Functions inherited from fTrMgBa_c | |
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. | |
Private Attributes | |
int(fBase_c::* | mpProcFunc )() |
The process function for the tree. | |
Additional Inherited Members | |
Protected Attributes inherited from cTreeMg_c | |
cTreeNd_c * | mpRootNode |
The root node of the tree. | |
|
inline |
Constructs a new tree.
procFunc | The process function, or nullptr . |
Definition at line 16 of file f_tree_mg_ptmf.hpp.
bool fTrMgPTMF_c::walkPack | ( | ) |
Calls the process function on each base in the tree.
Definition at line 7 of file f_tree.cpp.
|
private |
The process function for the tree.
Definition at line 23 of file f_tree_mg_ptmf.hpp.