#ifndef F_LIST_MANAGER_FUNC_H #define F_LIST_MANAGER_FUNC_H // This file was ported from // https://github.com/NSMBW-Community/NSMBW-Decomp/blob/master/include/dol/framework/f_list_mg_ptmf.hpp #include "common.h" #include "f/f_list_mg.h" #include "f/f_list_nd_prio.h" class fBase_c; /// @brief A list of fLiNdPrio_c nodes with a reference to a process function. /// @note Unofficial name. class fLiMgPTMF_c : public fLiMgBa_c { public: fLiMgPTMF_c(int (fBase_c::*procFunc)()) : mpProcFunc(procFunc) {} /* 802e2680 */ void addNode(fLiNdPrio_c *node); /* 802e26e0 */ bool walkPack(); fLiNdPrio_c *getFirst() const { return (fLiNdPrio_c *)fLiMgBa_c::getFirst(); } fLiNdPrio_c *getLast() const { return (fLiNdPrio_c *)fLiMgBa_c::getLast(); } private: int (fBase_c::*mpProcFunc)(); ///< The process function for the list. }; #endif