7#ifndef BABA_IS_AUTO_NOUN_HPP
8#define BABA_IS_AUTO_NOUN_HPP
54 explicit Object(std::vector<ObjectType> types);
127 std::vector<ObjectInstance> m_instances;
Object class.
Definition Object.hpp:47
ObjectInstance * GetInstance(ObjectID id)
bool isRule
Whether this object is part of an active rule.
Definition Object.hpp:124
Object(std::vector< ObjectType > types)
const std::vector< ObjectInstance > & GetInstances() const
bool operator==(const Object &rhs) const
void Add(ObjectType type)
bool HasPropertyType() const
void Add(const ObjectInstance &instance)
void Add(ObjectType type, Direction direction, ObjectID id)
void Remove(ObjectType type)
Object()=default
Default constructor.
const ObjectInstance * GetInstance(ObjectID id) const
std::vector< ObjectType > GetTypes() const
bool HasType(ObjectType type) const
std::uint64_t ObjectID
Definition Object.hpp:17
ObjectType
An enumerator for identifying the object.
Definition GameEnums.hpp:14
Direction
An enumerator for identifying the direction.
Definition GameEnums.hpp:142
Object instance struct.
Definition Object.hpp:26
Direction direction
Definition Object.hpp:29
ObjectType type
Definition Object.hpp:28