|
2D_Game_Engine
|
Go to the source code of this file.
Classes | |
| class | TagComponent |
| class | TextureComponent |
| class | AnimatedTextureComponent |
| class | RigidbodyComponent |
| class | BoxColliderComponent |
| class | CircleColliderComponent |
| class | LightComponent |
| class | NativeScriptComponent |
| class | TextComponent |
| class | Entity |
| class | ComponentManager< T, > |
Typedefs | |
| template<typename T > | |
| using | ComponentType |
Functions | |
| template<typename T , ComponentType< T > = 0> | |
| int | BinarySearch (std::vector< T > &v, uint32_t uid) |
| template<typename T , ComponentType< T > = 0> | |
| int | FirstGreaterThan (std::vector< T > &v, uint32_t uid) |
| template<typename T , ComponentType< T > = 0> | |
| void | RightShift (std::vector< T > &v, size_t idx) |
| float | Interpolate (float current, float previous) |
| std::ostream & | operator<< (std::ostream &os, const RigidbodyComponent::BodyType &type) |
| Entity * | BinarySearch (std::vector< Entity > &v, uint32_t uid) |
| b2BodyType | RigidbodyTypeToBox2DBody (RigidbodyComponent::BodyType bodyType) |
| RigidbodyComponent::BodyType | RigidbodyTypeFromBox2DBody (b2BodyType bodyType) |
Variables | |
| uint32_t | NEXT_UID |
| using ComponentType |
Definition at line 23 of file entity.hpp.
Search for the entity with the given uid.
Definition at line 341 of file entity.hpp.
|
inline |
Search for the component with the given uid.
Definition at line 40 of file entity.hpp.
|
inline |
Search for the first component with uid greater than the given uid.
Definition at line 58 of file entity.hpp.
|
inline |
Interpolate between the current and previous value using Window::Alpha
Definition at line 83 of file entity.hpp.
| std::ostream & operator<< | ( | std::ostream & | os, |
| const RigidbodyComponent::BodyType & | type ) |
Definition at line 198 of file entity.cpp.
|
inline |
Shift the elements of the vector to the right starting from the given index.
| idx | the index from which to start shifting |
Definition at line 75 of file entity.hpp.
|
inline |
Definition at line 446 of file entity.hpp.
|
inline |
Definition at line 431 of file entity.hpp.
|
extern |
Definition at line 485 of file sceneserializer.cpp.