NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
fLiMgBa_c Class Reference

#include <game/framework/f_line_mg.hpp>

Inheritance diagram for fLiMgBa_c:
[legend]

Description

A base list, made of fLiNdBa_c nodes.

Decompilation Note
The class name stands for "Line Manager (for) Bases".

Definition at line 13 of file f_line_mg.hpp.

Public Member Functions

int countNodeByProfName (ProfileName profName) const
 Counts the number of bases using the given profile name.
const fLiNdBaLink_csearchNodeByID (fBaseID_e id) const
 Searches for a base with the given ID.
fLiNdBaLink_cgetFirst () const
fLiNdBaLink_cgetLast () const
Public Member Functions inherited from cLineMg_c
 cLineMg_c ()
 Constructs a new list container.
bool insertLineNode (cLineNd_c *node, cLineNd_c *prevNode)
 Inserts a node after the given previous node.
bool removeLineNode (cLineNd_c *node)
 Removes a node from the list.
bool addLastLineNode (cLineNd_c *node)
 Adds a node to the end of the list.
bool addTopLineNode (cLineNd_c *node)
 Adds a node to the beginning of the list.
cLineNd_cgetFirst () const
cLineNd_cgetLast () const

Additional Inherited Members

Protected Attributes inherited from cLineMg_c
cLineNd_cmpFirst
 The first node in the list.
cLineNd_cmpLast
 The last node in the list.

Member Function Documentation

◆ countNodeByProfName()

int fLiMgBa_c::countNodeByProfName ( ProfileName profName) const

Counts the number of bases using the given profile name.

Parameters
profNameThe profile name.
Returns
How many bases were found.

Definition at line 61 of file f_line.cpp.

◆ searchNodeByID()

const fLiNdBaLink_c * fLiMgBa_c::searchNodeByID ( fBaseID_e id) const

Searches for a base with the given ID.

Parameters
idThe ID to search for.
Returns
The node belonging to such base, or nullptr.

Definition at line 47 of file f_line.cpp.

◆ getFirst()

fLiNdBaLink_c * fLiMgBa_c::getFirst ( ) const
inline

Definition at line 32 of file f_line_mg.hpp.

◆ getLast()

fLiNdBaLink_c * fLiMgBa_c::getLast ( ) const
inline

Definition at line 36 of file f_line_mg.hpp.