Simple C++ Game
Public Member Functions | List of all members
EntityFamily Class Referenceabstract

An abstract class that allows for the definition of a class of entity. More...

#include <EntityFamily.hpp>

Inheritance diagram for EntityFamily:
Inheritance graph
[legend]

Public Member Functions

virtual bool isInFamily (const Entity &entity) const =0
 Evaluates if an entity is "in the family" by meeting the criteria of the class the family represents. More...
 

Detailed Description

An abstract class that allows for the definition of a class of entity.

Member Function Documentation

◆ isInFamily()

virtual bool EntityFamily::isInFamily ( const Entity entity) const
pure virtual

Evaluates if an entity is "in the family" by meeting the criteria of the class the family represents.

Parameters
entityThe entity to evaluate if it is in the family.
Returns
true if the entity is in the family.
false if the entity is not in the family.

Implemented in ComponentFamily.


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