![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
#include <ObjectComponent.h>
Inheritance diagram for ObjectComponent:
Collaboration diagram for ObjectComponent:Public Member Functions | |
| ObjectComponent ()=default | |
| virtual | ~ObjectComponent ()=default |
| Object * | GetEntity () const |
| virtual void | SetEntity (Object *_owner) |
| virtual ComponentType | GetComponentType () const =0 |
| virtual void | Initialize () |
| virtual void | Process () |
| virtual void | Render () |
| virtual void | RenderDebug () |
| virtual void | OnEvent (const Message &) |
| virtual void | SetOwner (Object *_owner) |
| Object * | GetOwner () const |
Public Member Functions inherited from Object | |
| Object () | |
| virtual | ~Object () |
| uint64_t | GetUID () const |
Protected Attributes | |
| Object * | owner = nullptr |
| GameObject * | gao = nullptr |
Protected Attributes inherited from Object | |
| uint64_t | uid = 0 |
Static Protected Attributes | |
| static float & | fDt = GameEngine::fDt |
Additional Inherited Members | |
Public Attributes inherited from Object | |
| std::string | name = "unnamed_object" |
Definition at line 25 of file ObjectComponent.h.
|
explicitdefault |
|
virtualdefault |
|
pure virtual |
Implemented in PhysicsComponent, AIComponent, VisualComponent, AudioComponent, SystemComponent, ProcessusComponent, and GameObjectComponent.
|
inline |
Definition at line 31 of file ObjectComponent.h.
References owner.
|
inline |
Definition at line 55 of file ObjectComponent.h.
References owner.
Reimplemented in _Sprite, and AI_Player.
Definition at line 37 of file ObjectComponent.h.
Reimplemented from Object.
Reimplemented in AI_Npc, AI_Player, PhysicsComponent, AIComponent, VisualComponent, AudioComponent, SystemComponent, ProcessusComponent, and GameObjectComponent.
Definition at line 22 of file ObjectComponent.cpp.
Referenced by PhysicsComponent::OnEvent(), AIComponent::OnEvent(), VisualComponent::OnEvent(), AudioComponent::OnEvent(), SystemComponent::OnEvent(), ProcessusComponent::OnEvent(), and GameObjectComponent::OnEvent().
Here is the caller graph for this function:Reimplemented from Object.
Reimplemented in AI_Npc, AI_Player, PhysicsComponent, AIComponent, AudioComponent, SystemComponent, and ProcessusComponent.
Definition at line 40 of file ObjectComponent.h.
Reimplemented from Object.
Reimplemented in VisualComponent, and _Sprite.
Definition at line 43 of file ObjectComponent.h.
Reimplemented in AI_Player, and _Sprite.
Definition at line 44 of file ObjectComponent.h.
Definition at line 32 of file ObjectComponent.h.
References GetComponentTypeID_Static(), and owner.
Here is the call graph for this function:Reimplemented in AI_Npc, AI_Player, and AIComponent.
Definition at line 50 of file ObjectComponent.h.
References gao, GetComponentTypeID_Static(), and owner.
Referenced by ObjectFactory::AddComponent(), and AIComponent::SetOwner().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprotected |
Definition at line 59 of file ObjectComponent.h.
Referenced by AI_Player::Process().
|
protected |
Definition at line 60 of file ObjectComponent.h.
Referenced by AI_Player::Initialize(), AI_Player::OnEvent(), AI_Player::Process(), _Sprite::Render(), AI_Player::RenderDebug(), SetOwner(), and _Sprite::SetSprite().
Definition at line 58 of file ObjectComponent.h.
Referenced by GetEntity(), GetOwner(), SetEntity(), SetOwner(), AI_Npc::SetOwner(), and AIComponent::SetOwner().