Yet Another Game Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
entity.h
Go to the documentation of this file.
1 
9 #ifndef YAGE_ENGINE_ENTITY_H
10 #define YAGE_ENGINE_ENTITY_H
11 
12 #include <vector>
13 
14 namespace yage
15 {
16 
17 typedef unsigned EntityHandle;
18 
19 class Space;
20 
29 class Entity
30 {
31 public:
37  Entity(EntityHandle handle);
38 
44  EntityHandle getHandle() const;
45 
46 private:
50  EntityHandle handle_;
51 };
52 
53 } // namespace yage
54 
55 #endif
unsigned EntityHandle
Definition: entity.h:17
Entity convenience class.
Definition: entity.h:29
Entity(EntityHandle handle)
Creates an instance of an Entity with a handle that is associated to it.
Definition: entity.cpp:16
EntityHandle getHandle() const
Handle getter, as the user will only interact with the id itself.
Definition: entity.cpp:18
Space that keeps track of all the entities, componenets and runs the systems on the data to update th...
Definition: space.h:26