forked from Dzejrou/tdt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFactionHelper.hpp
More file actions
35 lines (31 loc) · 911 Bytes
/
Copy pathFactionHelper.hpp
File metadata and controls
35 lines (31 loc) · 911 Bytes
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
#pragma once
#include <cstdlib>
#include <string>
#include "Enums.hpp"
class EntitySystem;
/**
* Auxiliary namespace containing functions that help with the management
* of the faction component.
*/
namespace FactionHelper
{
/**
* Brief: Changes the FACTION of a given entity.
* Param: Reference to the entity system containing components.
* Param: ID of the entity.
* Param: The new faction.
*/
void set_faction(EntitySystem&, std::size_t, FACTION);
/**
* Brief: Returns the FACTION of a given entity.
* Param: Reference to the entity system containing components.
* Param: ID of the entity.
*/
FACTION get_faction(EntitySystem&, std::size_t);
/**
* Brief: Returns the FACTION name (a string) of a given entity.
* Param: Reference to the entity system containing components.
* Param: ID of the entity.
*/
const std::string& get_faction_name(EntitySystem&, std::size_t);
}