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
10
#include <
baba-is-auto/Games/Object.hpp
>
11
12
#include <tuple>
13
14
namespace
baba_is_auto
15
{
23
class
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.hpp
baba_is_auto::Object
Object class.
Definition
Object.hpp:32
baba_is_auto::Rule
Rule class.
Definition
Rule.hpp:24
baba_is_auto::Rule::operator==
bool operator==(const Rule &rhs) const
baba_is_auto::Rule::objects
std::tuple< Object, Object, Object > objects
The subject, operator, and predicate objects.
Definition
Rule.hpp:38
baba_is_auto::Rule::Rule
Rule(Object obj1, Object obj2, Object obj3)
baba_is_auto
Definition
IAgent.hpp:14
Includes
baba-is-auto
Rules
Rule.hpp
Generated by
1.9.8