NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
f_list_mg.hpp
1#pragma once
2#include <types.h>
4#include <dol/cLib/c_list.hpp>
6#include <dol/framework/f_list_nd.hpp>
7
8class fBase_c;
9
13class fLiMgBa_c : public cListMg_c {
14public:
15
22 int countNodeByProfName(ProfileName profName) const;
23
30 const fLiNdBa_c *searchNodeByID(fBaseID_e id) const;
31
32 inline fLiNdBa_c *getFirst() const {
33 return (fLiNdBa_c *) cListMg_c::getFirst();
34 }
35
36 inline fLiNdBa_c *getLast() const {
37 return (fLiNdBa_c *) cListMg_c::getLast();
38 }
39};
A doubly-linked list container. See cListNd_c.
Definition c_list.hpp:25
The base class for all scenes, actors and various other processes.
Definition f_base.hpp:117
A base list, made of fLiNdBa_c nodes.
Definition f_list_mg.hpp:13
int countNodeByProfName(ProfileName profName) const
Counts the number of bases using the given profile name.
Definition f_list.cpp:57
const fLiNdBa_c * searchNodeByID(fBaseID_e id) const
Searches for a base with the given ID.
Definition f_list.cpp:48
A base list node.
Definition f_list_nd.hpp:11
fBaseID_e
A unique identifier for each base.
Definition f_base_id.hpp:6
u16 ProfileName
The name of a profile. Value is a fProfile::PROFILE_NAME_e.
Definition f_profile.hpp:32