forked from Dzejrou/tdt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLimitedLifeSpanHelper.hpp
More file actions
43 lines (38 loc) · 1.08 KB
/
Copy pathLimitedLifeSpanHelper.hpp
File metadata and controls
43 lines (38 loc) · 1.08 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
#pragma once
#include <Ogre.h>
#include <cstdlib>
class EntitySystem;
/**
* Auxiliary namespace containing functions that help with the management of
* the limited life span component.
*/
namespace LimitedLifeSpanHelper
{
/**
* Brief: Sets the life span of a given entity.
* Param: Entity system containing the entity.
* Param: ID of the entity.
* Param: The new life span.
*/
void set_max_time(EntitySystem&, std::size_t, Ogre::Real);
/**
* Brief: Returns the life span of a given entity.
* Param: Entity system containing the entity.
* Param: ID of the entity.
*/
Ogre::Real get_max_time(EntitySystem&, std::size_t);
/**
*
* Brief: Returns the life time of a given entity.
* Param: Entity system containing the entity.
* Param: ID of the entity.
*/
Ogre::Real get_curr_time(EntitySystem&, std::size_t);
/**
* Brief: Advances the life time of a given entity by a given value.
* Param: Entity system containing the entity.
* Param: ID of the entity.
* Param: The value to advance by.
*/
void advance_curr_time(EntitySystem&, std::size_t, Ogre::Real);
}