Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
ObjectComponent.cpp
Go to the documentation of this file.
1#include "ObjectComponent.h"
2#include "GameEngine.h"
3#include "GameObject.h"
4
6
8{
10 if (!_owner)
11 {
12 SYSTEM_LOG << "Error AIComponent::SetOwner called with null owner!\n";
13 return;
14 }
15 if (owner->GetObjectType() != ObjectType::Entity)
16 {
17 SYSTEM_LOG << "Error AIComponent::SetOwner called with non-Entity owner!\n";
18 return;
19 }
20}
21//-------------------------------------------------------------
23{
24 // Default ObjectComponent OnEvent - override in derived classes for specific handling
25}
26//-------------------------------------------------------------
31//-------------------------------------------------------------
36//-------------------------------------------------------------
41//-------------------------------------------------------------
46//-------------------------------------------------------------
51//-------------------------------------------------------------
56//-------------------------------------------------------------
ComponentTypeID GetComponentTypeID_Static()
Definition ECS_Entity.h:56
Core game engine class.
virtual void OnEvent(const Message &msg) override
virtual void SetOwner(Object *_owner) override
virtual void OnEvent(const Message &msg) override
static float fDt
Delta time between frames in seconds.
Definition GameEngine.h:120
virtual void OnEvent(const Message &msg) override
virtual void OnEvent(const Message &)
static float & fDt
virtual void SetOwner(Object *_owner)
virtual void OnEvent(const Message &msg) override
virtual void OnEvent(const Message &msg) override
virtual void OnEvent(const Message &msg) override
virtual void OnEvent(const Message &msg) override
#define SYSTEM_LOG