Files
ss/include/f/f_list_nd_prio.h
T
2023-10-06 07:49:50 -04:00

35 lines
971 B
C++

#pragma once
// This file was ported from https://github.com/NSMBW-Community/NSMBW-Decomp/blob/master/include/dol/framework/f_list_nd_prio.hpp
#include "types.h"
#include "f/f_profile.h"
#include "f/f_list_nd.h"
/// @brief A list node with priority fields for an order in a list.
/// @note Unofficial name.
class fLiNdPrio_c : public fLiNdBa_c {
public:
/// @brief Constructs a new list node.
/// @param owner The node's owner.
fLiNdPrio_c(fBase_c *owner) : fLiNdBa_c(owner), mOrder(0), mNewOrder(0) {}
fLiNdPrio_c *getPrev() const {
return (fLiNdPrio_c *) fLiNdBa_c::getPrev();
}
fLiNdPrio_c *getNext() const {
return (fLiNdPrio_c *) fLiNdBa_c::getNext();
}
u16 getOrder() const {
return mOrder;
}
u16 getNewOrder() const {
return mNewOrder;
}
u16 mOrder; ///< The priority of this node.
u16 mNewOrder; ///< The priority the node should change to if it differs from ::mOrder.
};