forked from jacyara/GenESyS-Reborn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Event.cpp
45 lines (35 loc) · 869 Bytes
/
Event.cpp
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
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: Event.cpp
* Author: cancian
*
* Created on 21 de Junho de 2018, 19:41
*/
#include "Event.h"
Event::Event(double time, Entity* entity, ModelComponent* component) {
_time = time;
_entity = entity;
_component = component;
}
Event::Event(const Event& orig) {
}
Event::~Event() {
}
std::string Event::show() {
return "time="+std::to_string(_time)+
",entity="+std::to_string(_entity->getId())+
",comp=\""+_component->getName()+"\""; //+std::to_string(_component->getId())+"}";
}
double Event::getTime() const {
return _time;
}
ModelComponent* Event::getComponent() const {
return _component;
}
Entity* Event::getEntity() const {
return _entity;
}