4 #include <EntityFamily.hpp>
6 #include <SFML/System.hpp>
53 virtual void update(
const sf::Time deltaTime) = 0;
62 virtual std::map<int, std::shared_ptr<Entity>>
getEntities()
const;
65 std::shared_ptr<EntityFamily> _family;
66 std::map<int, std::shared_ptr<Entity>> _entities;
A class representing a system that processes groups of Entity in an EntityEngine.
Definition: EntitySystem.hpp:18
virtual void update(const sf::Time deltaTime)=0
Performs any operations necessary in routine processing.
virtual std::map< int, std::shared_ptr< Entity > > getEntities() const
Get the Entities in the system.
EntitySystem(const std::shared_ptr< EntityFamily > &family)
Construct a new EntitySystem that acts on a specified family.
EntitySystem()
Construct a new default EntitySystem.
virtual void engineEntityAdded(const std::shared_ptr< Entity > &entity)
Performs any operations required after an entity has been added to an EntityEngine the system is a pa...