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

#include <game/framework/f_line_mg.hpp>

Inheritance diagram for fLiMgBaFuPr_c:
[legend]

Description

A base list like fLiMgBa_c, but with fLiNdBaPr_c nodes for priority-based ordering.

Definition at line 60 of file f_line_mg.hpp.

Public Member Functions

 fLiMgBaFuPr_c (int(fBase_c::*procFunc)())
 Constructs a new list.
bool insertLineNodePriority (fLiNdBaPr_c *node)
 Adds a node to the list, according to its priority.
fLiNdBaPr_cgetFirst () const
fLiNdBaPr_cgetLast () const
Public Member Functions inherited from fLiMgBaFu_c
 fLiMgBaFu_c (int(fBase_c::*procFunc)())
 Constructs a new list.
bool lineListProc ()
 Calls the process function on each base in the list.
Public Member Functions inherited from fLiMgBa_c
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.

Constructor & Destructor Documentation

◆ fLiMgBaFuPr_c()

fLiMgBaFuPr_c::fLiMgBaFuPr_c ( int(fBase_c::* procFunc )())
inline

Constructs a new list.

Parameters
procFuncThe process function, or nullptr.

Definition at line 65 of file f_line_mg.hpp.

Member Function Documentation

◆ insertLineNodePriority()

bool fLiMgBaFuPr_c::insertLineNodePriority ( fLiNdBaPr_c * node)

Adds a node to the list, according to its priority.

Parameters
nodeThe node to insert.
Returns
If the operation was successful.

Definition at line 5 of file f_line.cpp.

◆ getFirst()

fLiNdBaPr_c * fLiMgBaFuPr_c::getFirst ( ) const
inline

Definition at line 75 of file f_line_mg.hpp.

◆ getLast()

fLiNdBaPr_c * fLiMgBaFuPr_c::getLast ( ) const
inline

Definition at line 79 of file f_line_mg.hpp.