Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Npc.cpp
Go to the documentation of this file.
1/*
2Olympe Engine V2 2025
3Nicolas Chereau
4nchereau@gmail.com
5
6Purpose:
7- Class representing a Non-Player Character (NPC) in the game, derived from GameObject.
8
9*/
10
11#include "Npc.h"
12#include "ObjectFactory.h"
15{
16 // Create a new Npc instance each time (not static)
17 Npc* npc = new Npc();
18 npc->name = "Npc";
20 return npc;
21}
ComponentTypeID GetComponentTypeID_Static()
Definition ECS_Entity.h:56
Definition Npc.h:15
static Object * Create()
Definition Npc.cpp:14
static bool FactoryRegistered
Definition Npc.h:22
Npc()=default
bool Register(const std::string &className, CreatorFunction creator)
Enregistre une fonction de cr�ation pour un nom de classe donn�.
static ObjectFactory & Get()
ObjectComponent * AddComponent(const std::string &className, Object *owner)