2#include <game/framework/f_tree_mg.hpp>
3#include <game/framework/f_tree_nd.hpp>
4#include <game/framework/f_base.hpp>
15 while (curr !=
nullptr) {
26 if (parent !=
nullptr) {
33 while (curr !=
nullptr) {
43 if (parent !=
nullptr) {
50 while (curr !=
nullptr) {
cTreeNd_c * mpRootNode
The root node of the tree.
u8 mGroupType
The base's group type. Value is a GROUP_TYPE_e.
ProfileName mProfName
The base's profile name.
bool treeListProc()
Calls the process function on each base in the tree.
int(fBase_c::* mpProcFunc)()
The process function for the tree.
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.
fBase_c * mpOwner
The owner of this node.
fTrNdBa_c * getTreeNext() const
Gets the next node in preorder traversal order.
u16 ProfileName
The name of a profile. Value is a fProf::PROFILE_NAME_e.