7#ifndef BABA_IS_AUTO_RULE_HPP
8#define BABA_IS_AUTO_RULE_HPP
42 std::vector<RuleCondition> ruleConditions = {});
50 std::tuple<Object, Object, Object>
objects;
Object class.
Definition Object.hpp:47
Rule class.
Definition Rule.hpp:34
bool operator==(const Rule &rhs) const
std::vector< RuleCondition > conditions
Optional conditions restricting which subject instances match.
Definition Rule.hpp:53
std::tuple< Object, Object, Object > objects
The subject, operator, and predicate objects.
Definition Rule.hpp:50
Rule(Object obj1, Object obj2, Object obj3, std::vector< RuleCondition > ruleConditions={})
ObjectType
An enumerator for identifying the object.
Definition GameEnums.hpp:14
ObjectType op
Definition Rule.hpp:19
bool negated
Definition Rule.hpp:21
bool operator==(const RuleCondition &rhs) const
std::vector< ObjectType > targets
Definition Rule.hpp:20