24 #if defined(_WIN32) && defined(HR_ENGINE_SHARED) 26 # define MR_DllDeclare __declspec( dllexport ) 28 # define MR_DllDeclare __declspec( dllimport ) 31 # define MR_DllDeclare 51 constexpr
Nav(
dir_t dir = NEUTRAL) noexcept : dir(dir) { }
52 constexpr
Nav(
const Nav&) noexcept =
default;
53 constexpr
Nav(
Nav&&) noexcept =
default;
55 Nav &operator=(
const Nav&) noexcept =
default;
56 Nav &operator=(
Nav&&) noexcept =
default;
73 case Nav::UP: os <<
"UP";
break;
79 default: os <<
"Unknown(" << nav.
AsDigital() <<
")";
#define MR_DllDeclare
Definition: Nav.h:31
constexpr dir_t AsDigital() const noexcept
Converts this direction into one of the cardinal directions.
Definition: Nav.h:63
std::ostream & operator<<(std::ostream &os, const ControlAction< T > &action)
Definition: ControlAction.h:70
constexpr Nav(dir_t dir=NEUTRAL) noexcept
Definition: Nav.h:51
A navigation direction.
Definition: Nav.h:45
Definition: Announcement.h:24
dir_t dir
Definition: Nav.h:66
dir_t
Definition: Nav.h:48