baba-is-auto
C++17 Baba Is You simulator
Loading...
Searching...
No Matches
baba_is_auto Namespace Reference

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)
 

Typedef Documentation

◆ Position

using baba_is_auto::Position = typedef std::pair<std::size_t, std::size_t>

A zero-based (x, y) map position.

Enumeration Type Documentation

◆ Direction

enum class baba_is_auto::Direction
strong

An enumerator for identifying the direction.

Enumerator
NONE 
UP 
DOWN 
LEFT 
RIGHT 

◆ ObjectType

enum class baba_is_auto::ObjectType
strong

An enumerator for identifying the object.

Enumerator
NOUN_TYPE 
OP_TYPE 
PROPERTY_TYPE 
ICON_TYPE 

◆ PlayState

enum class baba_is_auto::PlayState
strong

An enumerator for identifying the play state.

Enumerator
INVALID 
PLAYING 
WON 
LOST 

◆ RuleDirection

enum class baba_is_auto::RuleDirection
strong

An enumerator for identifying the direction of rule.

Enumerator
HORIZONTAL 
VERTICAL 

Function Documentation

◆ ConvertIconToText()

constexpr ObjectType baba_is_auto::ConvertIconToText ( ObjectType  type)
constexpr

Converts icon type to text type.

Parameters
typeThe icon type to convert.
Returns
The converted text type.

◆ ConvertTextToIcon()

constexpr ObjectType baba_is_auto::ConvertTextToIcon ( ObjectType  type)
constexpr

Converts text type to icon type.

Parameters
typeThe text type to convert.
Returns
The converted icon type.

◆ IsNounType()

constexpr bool baba_is_auto::IsNounType ( ObjectType  type)
constexpr

Checks type is noun type.

Parameters
typeThe object type.
Returns
The flag that indicates it is noun type.

◆ IsOpType()

constexpr bool baba_is_auto::IsOpType ( ObjectType  type)
constexpr

Checks type is op type.

Parameters
typeThe object type.
Returns
The flag that indicates it is op type.

◆ IsPropertyType()

constexpr bool baba_is_auto::IsPropertyType ( ObjectType  type)
constexpr

Checks type is property type.

Parameters
typeThe object type.
Returns
The flag that indicates it is property type.

◆ IsTextType()

constexpr bool baba_is_auto::IsTextType ( ObjectType  type)
constexpr

Checks type is text type.

Parameters
typeThe object type.
Returns
The flag that indicates it is text type.

◆ IsVerbType()

constexpr bool baba_is_auto::IsVerbType ( ObjectType  type)
constexpr

Checks type is verb type.

Parameters
typeThe object type.
Returns
The flag that indicates it is verb type.