VEGO-Engine  0.1
Loading...
Searching...
No Matches
Manager Class Reference

Is responsible for managing all entities. More...

#include <Manager.h>

Public Member Functions

 Manager (GameInternal *game)
 
void update (uint_fast16_t diffTime)
 
void refresh ()
 
void addToGroup (Entity *mEntity, Group mGroup)
 
std::vector< Entity * > & getGroup (Group mGroup)
 
std::vector< Entity * > getAll ()
 
Entity & addEntity ()
 Creates and returns a new, empty entity.
 
GameInternal * getGame ()
 

Detailed Description

Is responsible for managing all entities.

The manager class handles update and draw calls collectively for all entities, and provides functionality to get all or a subset of all entities

See also
Entity
Entity::GroupLabel
Entity::TeamLabel

Member Function Documentation

◆ addToGroup()

void Manager::addToGroup ( Entity * mEntity,
Group mGroup )
Todo
friend to Entity

◆ getAll()

std::vector< Entity * > Manager::getAll ( )
Returns
std::vector containing all entities

◆ getGroup()

std::vector< Entity * > & Manager::getGroup ( Group mGroup)
Returns
std::vector containing all entities in group Entity::GroupLabel

◆ refresh()

void Manager::refresh ( )

Disables all functionality of entities marked for destruction

See also
Entity::destroy()

◆ update()

void Manager::update ( uint_fast16_t diffTime)

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