mirror of
https://github.com/Nimac0/SDL_Minigame
synced 2026-01-12 22:23:43 +00:00
Compare commits
2 Commits
63644b4759
...
df6a7ded33
| Author | SHA1 | Date | |
|---|---|---|---|
| df6a7ded33 | |||
| 162645ed1c |
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 = NO
|
BUILTIN_STL_SUPPORT = YES
|
||||||
|
|
||||||
# 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 = YES
|
EXTRACT_STATIC = NO
|
||||||
|
|
||||||
# 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 = NO
|
WARN_IF_UNDOCUMENTED = YES
|
||||||
|
|
||||||
# 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 = YES
|
SOURCE_BROWSER = NO
|
||||||
|
|
||||||
# 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,22 +7,33 @@
|
|||||||
#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();
|
void update(); //!< \sa Entity::update()
|
||||||
void draw();
|
void draw(); //!< \sa Entity::draw()
|
||||||
|
//! Disables all functionality of entities marked for destruction
|
||||||
|
//! \sa Entity::destroy()
|
||||||
void refresh();
|
void refresh();
|
||||||
|
|
||||||
void addToGroup(Entity* mEntity, Group mGroup);
|
void addToGroup(Entity* mEntity, Group mGroup); //!< \todo `friend` to Entity
|
||||||
std::vector<Entity*>& getGroup(Group mGroup);
|
std::vector<Entity*>& getGroup(Group mGroup); //!< \returns std::vector containing all entities in group Entity::GroupLabel
|
||||||
|
|
||||||
void addToTeam(Entity* mEntity, Team mTeam);
|
void addToTeam(Entity* mEntity, Team mTeam); //!< \todo `friend` to Entity
|
||||||
std::vector<Entity*>& getTeam(Team mTeam);
|
std::vector<Entity*>& getTeam(Team mTeam); //!< \returns std::vector containing all entities in team Entity::TeamLabel
|
||||||
|
|
||||||
std::vector<Entity*> getAll();
|
std::vector<Entity*> getAll(); //!< \returns std::vector containing all entities
|
||||||
|
|
||||||
Entity& addEntity();
|
Entity& addEntity(); //!< Creates and returns a new, empty entity
|
||||||
|
|
||||||
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