diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2018-04-30 23:00:50 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2018-04-30 23:00:50 +0100 |
commit | f338b4d15b57770d922e187b7a57d25fbf379b62 (patch) | |
tree | 68a9b14e9dd0dcec798bbce473f5cc8971d3be96 /yage/entity/entity.h | |
parent | 8745306ddc2db08d52caf1c3c456c0bc43a062b7 (diff) | |
download | YAGE-f338b4d15b57770d922e187b7a57d25fbf379b62.tar.gz YAGE-f338b4d15b57770d922e187b7a57d25fbf379b62.zip |
Adding support for entity component systems.
Diffstat (limited to 'yage/entity/entity.h')
-rw-r--r-- | yage/entity/entity.h | 36 |
1 files changed, 1 insertions, 35 deletions
diff --git a/yage/entity/entity.h b/yage/entity/entity.h index e6742893..097c1fa2 100644 --- a/yage/entity/entity.h +++ b/yage/entity/entity.h @@ -14,41 +14,7 @@ namespace yage { -typedef unsigned EntityHandle; - -class Space; - -/** - * Entity convenience class. It contains handles to where the entity is in the - * entity manager of the space, and a pointer back to the space itself. - * - * This class cannot be instantiated outside of a Space and should only be - * instantiated through an entity manager, as otherwise the handle will not have - * a meaning. - */ -class Entity -{ -public: - /** - * Creates an instance of an Entity with a handle that is associated to it. - * This handle refers to the position of he Entity in the list that is held - * by the EntityManager, and therefore the id is enough to refer to it. - */ - Entity(EntityHandle handle); - - /** - * Handle getter, as the user will only interact with the id itself. The - * handle is the unique identifier that the user can use to refer to the - * entity. - */ - EntityHandle getHandle() const; - -private: - /** - * Entity handle for the entity manager. - */ - EntityHandle handle_; -}; +typedef unsigned int Handle; } // namespace yage |