![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
#include <AI_Npc.h>
Inheritance diagram for AI_Npc:
Collaboration diagram for AI_Npc:Public Member Functions | |
| AI_Npc () | |
| virtual | ~AI_Npc () override |
| virtual void | SetOwner (Object *_owner) override |
| virtual void | Process () override |
| virtual void | OnEvent (const Message &msg) override |
Public Member Functions inherited from AIComponent | |
| AIComponent ()=default | |
| virtual | ~AIComponent () override=default |
| virtual ComponentType | GetComponentType () const override |
Public Member Functions inherited from ObjectComponent | |
| ObjectComponent ()=default | |
| virtual | ~ObjectComponent ()=default |
| Object * | GetEntity () const |
| virtual void | SetEntity (Object *_owner) |
| virtual void | Initialize () |
| virtual void | Render () |
| virtual void | RenderDebug () |
| Object * | GetOwner () const |
Public Member Functions inherited from Object | |
| Object () | |
| virtual | ~Object () |
| uint64_t | GetUID () const |
Static Public Member Functions | |
| static ObjectComponent * | Create (void) |
Static Public Attributes | |
| static bool | FactoryRegistered = ObjectFactory::Get().Register("AI_Npc", AI_Npc::Create) |
Private Types | |
| enum class | State { Idle , Patrolling , Chasing , Fleeing } |
Private Attributes | |
| State | m_currentState = State::Idle |
| std::mutex | m_mutex |
Additional Inherited Members | |
Public Attributes inherited from Object | |
| std::string | name = "unnamed_object" |
Protected Attributes inherited from ObjectComponent | |
| Object * | owner = nullptr |
| GameObject * | gao = nullptr |
Protected Attributes inherited from Object | |
| uint64_t | uid = 0 |
Static Protected Attributes inherited from ObjectComponent | |
| static float & | fDt = GameEngine::fDt |
|
strongprivate |
|
explicit |
Definition at line 15 of file AI_Npc.cpp.
Referenced by Create().
Here is the caller graph for this function:
|
overridevirtual |
Definition at line 21 of file AI_Npc.cpp.
|
static |
Definition at line 10 of file AI_Npc.cpp.
References AI_Npc().
Here is the call graph for this function:Reimplemented from AIComponent.
Definition at line 36 of file AI_Npc.cpp.
Reimplemented from AIComponent.
Reimplemented from AIComponent.
Definition at line 25 of file AI_Npc.cpp.
References GetComponentTypeID_Static(), ObjectComponent::owner, and SYSTEM_LOG.
Here is the call graph for this function:
|
static |
|
private |