The base entity class.
Definition Entity.hpp:41
Definition Component.hpp:117
Definition Application.hpp:19
constexpr auto withComponents() noexcept
A predicate that checks if the entity has all of the given Cs components.
Definition EntityPredicate.hpp:47
NamePredicate withName(String name)
A predicate that checks if the entity is named name.
Definition EntityPredicate.hpp:99
auto move(Vector3 position)
Moves a entity to the given position.
Definition Helpers.hpp:22
ParentPredicate withParent(const Entity &parent) noexcept
A predicate that checks if the entity has parent as it's parent entity.
Definition EntityPredicate.hpp:79
auto parent(const Entity &parent)
Sets the entity parent.
Definition Helpers.hpp:52
constexpr auto predicate(Callable &&callable) noexcept
Helper function to create a new predicate from a lambda.
Definition Predicate.hpp:390
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25
constexpr auto withComponent() noexcept
A predicate that checks if the entity has all of the given Cs components.
Definition EntityPredicate.hpp:41
A predicate that checks if the given entity has all components in Cs.
Definition EntityPredicate.hpp:24
bool operator()(const Entity &entity) const noexcept
Executes the predicate.
Definition EntityPredicate.hpp:29
Definition Component.hpp:346
Definition EntityPredicate.hpp:81
bool operator()(const Entity &entity) const noexcept
Executes the predicate.
Definition EntityPredicate.hpp:93
const String name
The name to be checked against.
Definition EntityPredicate.hpp:83
NamePredicate(String name)
Creates a new NamePredicate instance.
Definition EntityPredicate.hpp:87
A predicate that checks if the entity has parent as it's parent entity.
Definition EntityPredicate.hpp:60
ParentPredicate(const Entity parent)
Creates a new ParentPredicate instance.
Definition EntityPredicate.hpp:66
const Entity parent
The parent to be checked against.
Definition EntityPredicate.hpp:62
bool operator()(const Entity &entity) const noexcept
Executes the predicate.
Definition EntityPredicate.hpp:72
A type that predicate types must extend to allow automatic operator overloading.
Definition Predicate.hpp:19