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

Go to the source code of this file.

Macros

#define STATE_FUNC_DECLARE(class, name)
 Declares a state.
 
#define STATE_VIRTUAL_FUNC_DECLARE(class, name)
 Declares a virtual state.
 
#define STATE_DEFINE(class, name)
 Defines a state.
 
#define STATE_VIRTUAL_DEFINE(class, name)
 Defines a virtual state.
 
#define STATE_BASE_VIRTUAL_DEFINE(class, name)
 

Macro Definition Documentation

◆ STATE_FUNC_DECLARE

#define STATE_FUNC_DECLARE ( class,
name )

Declares a state.

Parameters
classThe class name.
nameThe state name.

Definition at line 12 of file s_State.hpp.

◆ STATE_VIRTUAL_FUNC_DECLARE

#define STATE_VIRTUAL_FUNC_DECLARE ( class,
name )

Declares a virtual state.

Parameters
classThe class name.
nameThe state name.

Definition at line 22 of file s_State.hpp.

◆ STATE_DEFINE

#define STATE_DEFINE ( class,
name )

Defines a state.

Parameters
classThe class name.
nameThe state name.

Definition at line 32 of file s_State.hpp.

◆ STATE_VIRTUAL_DEFINE

#define STATE_VIRTUAL_DEFINE ( class,
name )

Defines a virtual state.

Parameters
classThe class name.
nameThe state name.

Definition at line 42 of file s_State.hpp.

◆ STATE_BASE_VIRTUAL_DEFINE

#define STATE_BASE_VIRTUAL_DEFINE ( class,
name )
Value:
template <typename T> \
const sStateIDIf_c &baseID_##name() { \
return T::StateID_##name; \
} \
template <> \
const sStateIDIf_c &baseID_##name<sStateID_c>() { \
return sStateID::null; \
}
The interface for state IDs.
sStateID_c null
A null state instance.

Definition at line 49 of file s_State.hpp.