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

Rule class. More...

#include <Rule.hpp>

Public Member Functions

 Rule (Object obj1, Object obj2, Object obj3)
 
bool operator== (const Rule &rhs) const
 

Public Attributes

std::tuple< Object, Object, Objectobjects
 The subject, operator, and predicate objects.
 

Detailed Description

Rule class.

This class represents rule. The game centers around the manipulation of "rules"–represented by tiles with words written on them–in order to allow the titular character Baba (or some other object) to reach a specified goal.

Constructor & Destructor Documentation

◆ Rule()

baba_is_auto::Rule::Rule ( Object  obj1,
Object  obj2,
Object  obj3 
)

Constructs a rule.

Parameters
obj1A first object.
obj2A second object.
obj3A third object.

Member Function Documentation

◆ operator==()

bool baba_is_auto::Rule::operator== ( const Rule rhs) const

Operator overloading for ==.

Parameters
rhsA right side of Rule object.
Returns
The value that indicates two rules are equal.

Member Data Documentation

◆ objects

std::tuple<Object, Object, Object> baba_is_auto::Rule::objects

The subject, operator, and predicate objects.


The documentation for this class was generated from the following file: