|
baba-is-auto
C++17 Baba Is You simulator
|
#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, Object > | objects |
| The subject, operator, and predicate objects. | |
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.
Constructs a rule.
| obj1 | A first object. |
| obj2 | A second object. |
| obj3 | A third object. |
| bool baba_is_auto::Rule::operator== | ( | const Rule & | rhs | ) | const |
Operator overloading for ==.
| rhs | A right side of Rule object. |
The subject, operator, and predicate objects.