blob: ec3fea126914a743ae976666a9a2379e2c686559 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#ifndef S_FSTATEMGR_H
#define S_FSTATEMGR_H
// clang-format off
#include "s/s_FStateID.hpp"
#include "s/s_StateMgr.hpp"
#include "s/s_FState.hpp"
#include "s/s_FStateFct.hpp"
#include "s/s_StateIDChk.hpp"
// clang-format on
// Note: Ported from https://github.com/NSMBW-Community/NSMBW-Decomp/tree/master/include/dol/sLib
// See include/s/README.txt for changes made
/// @brief A wrapper for sStateMgr_c that uses sFStateFct_c and sStateIDChk_c.
/// @tparam T The class that this state belongs to.
/// @tparam Method The method to use for the state manager.
/// @ingroup state
template <class T, class Method>
class sFStateMgr_c : public sStateMgr_c<T, Method, sFStateFct_c, sStateIDChk_c> {
public:
sFStateMgr_c(T &owner)
: sStateMgr_c<T, Method, sFStateFct_c, sStateIDChk_c>(owner) {}
sFStateMgr_c(T &owner, const sStateIDIf_c &initializeState)
: sStateMgr_c<T, Method, sFStateFct_c, sStateIDChk_c>(owner, initializeState) {}
};
#endif
|