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

Is responsible for managing all entities. More...

#include <Manager.h>

Public Member Functions

void update (uint_fast16_t diffTime)
 
void refresh ()
 
std::vector< Entity * > getAll ()
 Returns all entities currently loaded in the game.
 
EntityaddEntity ()
 Add a new entity to the game.
 
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

◆ addEntity()

Entity & Manager::addEntity ( )

Add a new entity to the game.

Creates and returns a new, empty entity

◆ getAll()

std::vector< Entity * > Manager::getAll ( )

Returns all entities currently loaded in the game.

Returns
std::vector containing all entities

◆ getGame()

GameInternal * Manager::getGame ( )
inline
Deprecated
Use VEGO_Game() instead

◆ 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: