baba-is-auto
C++17 Baba Is You simulator
Loading...
Searching...
No Matches
Rule.hpp
Go to the documentation of this file.
1// Copyright (c) 2020-2026 Chris Ohk
2
3// I am making my contributions/submissions to this project solely in our
4// personal capacity and am not conveying any rights to any intellectual
5// property of any third parties.
6
7#ifndef BABA_IS_AUTO_RULE_HPP
8#define BABA_IS_AUTO_RULE_HPP
9
11
12#include <tuple>
13
14namespace baba_is_auto
15{
23class Rule
24{
25 public:
30 Rule(Object obj1, Object obj2, Object obj3);
31
35 bool operator==(const Rule& rhs) const;
36
38 std::tuple<Object, Object, Object> objects;
39};
40} // namespace baba_is_auto
41
42#endif
Object class.
Definition Object.hpp:32
Rule class.
Definition Rule.hpp:24
bool operator==(const Rule &rhs) const
std::tuple< Object, Object, Object > objects
The subject, operator, and predicate objects.
Definition Rule.hpp:38
Rule(Object obj1, Object obj2, Object obj3)
Definition IAgent.hpp:14