NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
f_tree_mg.hpp
1#pragma once
2#include <types.h>
3#include <game/cLib/c_tree.hpp>
5
6class fTrNdBa_c;
7
8/// @brief A base tree, made of fTrNdBa_c nodes.
9/// @ingroup framework
10/// @decompnote{The class name stands for "Tree Manager (for) Bases".}
11class fTrMgBa_c : public cTreeMg_c {
12public:
13
14 /**
15 * @brief Searches for a base with a given profile name, optionally under a given parent.
16 *
17 * @param profName The profile name.
18 * @param parent The parent node to start searching from, or @p nullptr to use the tree's root node.
19 * @return The node of the first base matching this criteria, or @p nullptr if none was found.
20 */
21 const fTrNdBa_c *searchNodeByProfName(ProfileName profName, const fTrNdBa_c *parent) const;
22
23 /**
24 * @brief Searches for a base with a given group type, optionally under a given parent.
25 *
26 * @param groupType The group type. Value is a fBase_c::GROUP_TYPE_e.
27 * @param parent The parent node to start searching from, or @p nullptr to use the tree's root node.
28 * @return The node of the first base matching this criteria, or @p nullptr if none was found.
29 */
30 const fTrNdBa_c *searchNodeByGroupType(u8 groupType, const fTrNdBa_c *parent) const;
31};
cTreeMg_c()
Constructs a new tree container.
Definition c_tree.hpp:40
A base tree, made of fTrNdBa_c nodes.
Definition f_tree_mg.hpp:11
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.
Definition f_tree.cpp:24
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.
Definition f_tree.cpp:41
A base tree node.
Definition f_tree_nd.hpp:12
u16 ProfileName
The name of a profile. Value is a fProfile::PROFILE_NAME_e.
Definition f_profile.hpp:32