-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIEntity.hpp
47 lines (38 loc) · 912 Bytes
/
IEntity.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
** EPITECH PROJECT, 2024
** arcade-shared
** File description:
** IEntity
*/
#pragma once
#include <vector>
#include <memory>
namespace shared::games {
class IGame;
namespace entity {
class IEntity;
/// @brief Entity pointer
typedef std::shared_ptr<IEntity> EntityPtr;
/// @brief Entities map pointers
typedef std::vector<EntityPtr> EntitiesMap;
}
namespace components {
class IComponent;
/// @brief Components map pointers
typedef std::vector<std::shared_ptr<IComponent>> ComponentsMap;
}
}
/**
* @brief Interface of an entity
*
*/
class shared::games::entity::IEntity {
public:
virtual ~IEntity() = default;
/**
* @brief Get the components of the entity
*
* @return Components of the entity
*/
virtual const components::ComponentsMap &getComponents(void) const noexcept = 0;
};