7#ifndef BABA_IS_AUTO_GAME_ENUMS_HPP
8#define BABA_IS_AUTO_GAME_ENUMS_HPP
17#include "NounType.def"
25#include "PropertyType.def"
29#include "IconType.def"
62 return (type == ObjectType::IS || type == ObjectType::HAS ||
63 type == ObjectType::MAKE);
79 const auto typeVal =
static_cast<int>(type);
82 if (typeVal <= iconTypeVal)
87 const int convertedVal = typeVal - iconTypeVal;
96 const auto typeVal =
static_cast<int>(type);
99 if (typeVal > iconTypeVal)
104 const int convertedVal = typeVal + iconTypeVal;
constexpr bool IsTextType(ObjectType type)
Definition GameEnums.hpp:36
constexpr bool IsOpType(ObjectType type)
Definition GameEnums.hpp:52
constexpr bool IsVerbType(ObjectType type)
Definition GameEnums.hpp:60
ObjectType
An enumerator for identifying the object.
Definition GameEnums.hpp:14
constexpr bool IsPropertyType(ObjectType type)
Definition GameEnums.hpp:69
constexpr ObjectType ConvertIconToText(ObjectType type)
Definition GameEnums.hpp:77
constexpr ObjectType ConvertTextToIcon(ObjectType type)
Definition GameEnums.hpp:94
PlayState
An enumerator for identifying the play state.
Definition GameEnums.hpp:110
constexpr bool IsNounType(ObjectType type)
Definition GameEnums.hpp:44
Direction
An enumerator for identifying the direction.
Definition GameEnums.hpp:119