|
baba-is-auto
C++17 Baba Is You simulator
|
Classes | |
| class | Game |
| Game class. More... | |
| class | IAgent |
| IAgent class. More... | |
| class | Map |
| Map class. More... | |
| class | Object |
| Object class. More... | |
| class | Preprocess |
| Preprocess class. More... | |
| class | RandomAgent |
| RandomAgent class. More... | |
| class | Rule |
| Rule class. More... | |
| class | RuleManager |
| RuleManager class. More... | |
Typedefs | |
| using | Position = std::pair< std::size_t, std::size_t > |
| A zero-based (x, y) map position. | |
Enumerations | |
| enum class | ObjectType { NOUN_TYPE , X , OP_TYPE , X , PROPERTY_TYPE , X , ICON_TYPE , X } |
| An enumerator for identifying the object. More... | |
| enum class | PlayState { INVALID , PLAYING , WON , LOST } |
| An enumerator for identifying the play state. More... | |
| enum class | Direction { NONE , UP , DOWN , LEFT , RIGHT } |
| An enumerator for identifying the direction. More... | |
| enum class | RuleDirection { HORIZONTAL , VERTICAL } |
| An enumerator for identifying the direction of rule. More... | |
Functions | |
| constexpr bool | IsTextType (ObjectType type) |
| constexpr bool | IsNounType (ObjectType type) |
| constexpr bool | IsOpType (ObjectType type) |
| constexpr bool | IsVerbType (ObjectType type) |
| constexpr bool | IsPropertyType (ObjectType type) |
| constexpr ObjectType | ConvertIconToText (ObjectType type) |
| constexpr ObjectType | ConvertTextToIcon (ObjectType type) |
| using baba_is_auto::Position = typedef std::pair<std::size_t, std::size_t> |
A zero-based (x, y) map position.
|
strong |
|
strong |
|
strong |
|
strong |
|
constexpr |
Converts icon type to text type.
| type | The icon type to convert. |
|
constexpr |
Converts text type to icon type.
| type | The text type to convert. |
|
constexpr |
Checks type is noun type.
| type | The object type. |
|
constexpr |
Checks type is op type.
| type | The object type. |
|
constexpr |
Checks type is property type.
| type | The object type. |
|
constexpr |
Checks type is text type.
| type | The object type. |
|
constexpr |
Checks type is verb type.
| type | The object type. |