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

#include <game/framework/f_line_mg.hpp>

Inheritance diagram for fLiMgBaFu_c:
[legend]

Description

A base list made of fLiMgBa_c nodes, with a reference to a process function.

Definition at line 43 of file f_line_mg.hpp.

Public Member Functions

 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

Private Attributes

int(fBase_c::* mpProcFunc )()
 The process function for the list.

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

◆ fLiMgBaFu_c()

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

Constructs a new list.

Parameters
procFuncThe process function, or nullptr.

Definition at line 48 of file f_line_mg.hpp.

Member Function Documentation

◆ lineListProc()

bool fLiMgBaFu_c::lineListProc ( )

Calls the process function on each base in the list.

Returns
Always returns true.

Definition at line 30 of file f_line.cpp.

Member Data Documentation

◆ mpProcFunc

int(fBase_c::* fLiMgBaFu_c::mpProcFunc) ()
private

The process function for the list.

Definition at line 55 of file f_line_mg.hpp.