-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathRelease.cpp
36 lines (27 loc) · 863 Bytes
/
Release.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
/*
* 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: Release.cpp
* Author: cancian
*
* Created on 21 de Agosto de 2018, 16:17
*/
#include "Release.h"
#include "Model.h"
Release::Release(Model* model) : ModelComponent(model) {
_name = "Release "+std::to_string(Util::_S_generateNewIdOfType(typeid(this).name()));
}
Release::Release(const Release& orig) : ModelComponent(orig) {
}
Release::~Release() {
}
std::string Release::show(){
return ModelComponent::show()+ ",resourceName="+this->_resourceName+", quantity="+this->_quantity+",...";
}
void Release::_execute(Entity* entity) {
/* TODO +: not implemented yet */
_model->sendEntityToComponent(entity, this->getNextComponents()->first(), 0.0);
}