forked from Dzejrou/tdt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAIHelper.hpp
More file actions
44 lines (39 loc) · 1.23 KB
/
Copy pathAIHelper.hpp
File metadata and controls
44 lines (39 loc) · 1.23 KB
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
#pragma once
#include <string>
#include <cstdlib>
#include "Enums.hpp"
class EntitySystem;
/**
* Namespace containing auxiliary functions that help with the management of
* the ai component.
*/
namespace AIHelper
{
/**
* Brief: Changes the blueprint table name of a given entity.
* Param: Reference to the entity system containing components.
* Param: ID of the entity.
* Param: Name of the new blueprint table.
*/
void set_blueprint(EntitySystem&, std::size_t, const std::string&);
/**
* Brief: Returns name of the blueprint table of a given entity (i.e. the table containing
* it's init, update and finnish methods).
* Param: Reference to the entity system containing components.
* Param: ID of the entity.
*/
const std::string& get_blueprint(EntitySystem&, std::size_t);
/**
* Brief: Changes the state of a given entity.
* Param: Reference to the entity system containing components.
* Param: ID of the entity.
* Param: New state.
*/
void set_state(EntitySystem&, std::size_t, ENTITY_STATE);
/**
* Brief: Returns the state a given entity is in.
* Param: Reference to the entity system containing components.
* Param: ID of the entity.
*/
ENTITY_STATE get_state(EntitySystem&, std::size_t);
}