mirror of
https://github.com/Nimac0/SDL_Minigame
synced 2026-01-12 23:33:41 +00:00
Compare commits
No commits in common. "df6a7ded337f719655e165d95ab0fc2fb248af35" and "63644b4759dacc938812444538869ed960fb7a6f" have entirely different histories.
df6a7ded33
...
63644b4759
8
Doxyfile
8
Doxyfile
@ -396,7 +396,7 @@ AUTOLINK_SUPPORT = YES
|
|||||||
# diagrams that involve STL classes more complete and accurate.
|
# diagrams that involve STL classes more complete and accurate.
|
||||||
# The default value is: NO.
|
# The default value is: NO.
|
||||||
|
|
||||||
BUILTIN_STL_SUPPORT = YES
|
BUILTIN_STL_SUPPORT = NO
|
||||||
|
|
||||||
# If you use Microsoft's C++/CLI language, you should set this option to YES to
|
# If you use Microsoft's C++/CLI language, you should set this option to YES to
|
||||||
# enable parsing support.
|
# enable parsing support.
|
||||||
@ -548,7 +548,7 @@ EXTRACT_PACKAGE = NO
|
|||||||
# included in the documentation.
|
# included in the documentation.
|
||||||
# The default value is: NO.
|
# The default value is: NO.
|
||||||
|
|
||||||
EXTRACT_STATIC = NO
|
EXTRACT_STATIC = YES
|
||||||
|
|
||||||
# If the EXTRACT_LOCAL_CLASSES tag is set to YES, classes (and structs) defined
|
# If the EXTRACT_LOCAL_CLASSES tag is set to YES, classes (and structs) defined
|
||||||
# locally in source files will be included in the documentation. If set to NO,
|
# locally in source files will be included in the documentation. If set to NO,
|
||||||
@ -858,7 +858,7 @@ WARNINGS = YES
|
|||||||
# will automatically be disabled.
|
# will automatically be disabled.
|
||||||
# The default value is: YES.
|
# The default value is: YES.
|
||||||
|
|
||||||
WARN_IF_UNDOCUMENTED = YES
|
WARN_IF_UNDOCUMENTED = NO
|
||||||
|
|
||||||
# If the WARN_IF_DOC_ERROR tag is set to YES, doxygen will generate warnings for
|
# If the WARN_IF_DOC_ERROR tag is set to YES, doxygen will generate warnings for
|
||||||
# potential errors in the documentation, such as documenting some parameters in
|
# potential errors in the documentation, such as documenting some parameters in
|
||||||
@ -1143,7 +1143,7 @@ FORTRAN_COMMENT_AFTER = 72
|
|||||||
# also VERBATIM_HEADERS is set to NO.
|
# also VERBATIM_HEADERS is set to NO.
|
||||||
# The default value is: NO.
|
# The default value is: NO.
|
||||||
|
|
||||||
SOURCE_BROWSER = NO
|
SOURCE_BROWSER = YES
|
||||||
|
|
||||||
# Setting the INLINE_SOURCES tag to YES will include the body of functions,
|
# Setting the INLINE_SOURCES tag to YES will include the body of functions,
|
||||||
# multi-line macros, enums or list initialized variables directly into the
|
# multi-line macros, enums or list initialized variables directly into the
|
||||||
|
|||||||
@ -7,33 +7,22 @@
|
|||||||
#include "Constants.h"
|
#include "Constants.h"
|
||||||
#include "Entity.h"
|
#include "Entity.h"
|
||||||
|
|
||||||
/*!
|
|
||||||
*
|
|
||||||
* \brief Is responsible for managing all entities
|
|
||||||
* \details The manager class handles update and draw calls collectively for all entities, and provides functionality to get all or a subset of all entities
|
|
||||||
* \sa Entity
|
|
||||||
* \sa Entity::GroupLabel
|
|
||||||
* \sa Entity::TeamLabel
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
class Manager
|
class Manager
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
void update(); //!< \sa Entity::update()
|
void update();
|
||||||
void draw(); //!< \sa Entity::draw()
|
void draw();
|
||||||
//! Disables all functionality of entities marked for destruction
|
|
||||||
//! \sa Entity::destroy()
|
|
||||||
void refresh();
|
void refresh();
|
||||||
|
|
||||||
void addToGroup(Entity* mEntity, Group mGroup); //!< \todo `friend` to Entity
|
void addToGroup(Entity* mEntity, Group mGroup);
|
||||||
std::vector<Entity*>& getGroup(Group mGroup); //!< \returns std::vector containing all entities in group Entity::GroupLabel
|
std::vector<Entity*>& getGroup(Group mGroup);
|
||||||
|
|
||||||
void addToTeam(Entity* mEntity, Team mTeam); //!< \todo `friend` to Entity
|
void addToTeam(Entity* mEntity, Team mTeam);
|
||||||
std::vector<Entity*>& getTeam(Team mTeam); //!< \returns std::vector containing all entities in team Entity::TeamLabel
|
std::vector<Entity*>& getTeam(Team mTeam);
|
||||||
|
|
||||||
std::vector<Entity*> getAll(); //!< \returns std::vector containing all entities
|
std::vector<Entity*> getAll();
|
||||||
|
|
||||||
Entity& addEntity(); //!< Creates and returns a new, empty entity
|
Entity& addEntity();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::vector<std::unique_ptr<Entity>> entities;
|
std::vector<std::unique_ptr<Entity>> entities;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user