Olympe Engine
2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Source
_deprecated
Npc.h
Go to the documentation of this file.
1
/*
2
Olympe Engine V2 2025
3
Nicolas Chereau
4
nchereau@gmail.com
5
6
Purpose:
7
- Class representing a Non-Player Character (NPC) in the game, derived from GameObject.
8
9
10
*/
11
#pragma once
12
#include "
GameObject.h
"
13
class
Npc
:
14
public
GameObject
15
{
16
public
:
17
18
Npc
() =
default
;
19
virtual
~Npc
()
override
=
default
;
20
virtual
EntityType
GetEntityType
()
const override
{
return
EntityType::NPC
; }
21
22
static
bool
FactoryRegistered
;
23
static
Object
*
Create
();
24
};
25
GameObject.h
EntityType
EntityType
Definition
GameObject.h:22
EntityType::NPC
@ NPC
GameObject
Definition
GameObject.h:33
Npc
Definition
Npc.h:15
Npc::GetEntityType
virtual EntityType GetEntityType() const override
Definition
Npc.h:20
Npc::Create
static Object * Create()
Definition
Npc.cpp:14
Npc::FactoryRegistered
static bool FactoryRegistered
Definition
Npc.h:22
Npc::Npc
Npc()=default
Npc::~Npc
virtual ~Npc() override=default
Object
Definition
Object.h:32
Generated on Tue Feb 17 2026 13:49:10 for Olympe Engine by
1.9.8