CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::ParentPredicate Struct Reference

A predicate that checks if the entity has parent as it's parent entity. More...

#include <CeresEngine/Entity/EntityPredicate.hpp>

Inheritance diagram for CeresEngine::ParentPredicate:
CeresEngine::Predicate< ParentPredicate >

Public Member Functions

 ParentPredicate (const Entity parent)
 Creates a new ParentPredicate instance.
 
bool operator() (const Entity &entity) const noexcept
 Executes the predicate.
 

Public Attributes

const Entity parent
 The parent to be checked against.
 

Detailed Description

A predicate that checks if the entity has parent as it's parent entity.

Constructor & Destructor Documentation

◆ ParentPredicate()

CeresEngine::ParentPredicate::ParentPredicate ( const Entity  parent)
inlineexplicit

Creates a new ParentPredicate instance.

Parameters
parentThe parent to be checked against

Member Function Documentation

◆ operator()()

bool CeresEngine::ParentPredicate::operator() ( const Entity entity) const
inlinenoexcept

Executes the predicate.

Parameters
entityThe entity to execute the predicate against
Returns
true if the entity parent is parent, false otherwise.

Member Data Documentation

◆ parent

const Entity CeresEngine::ParentPredicate::parent

The parent to be checked against.


The documentation for this struct was generated from the following file: