Toggle navigation
ivorium
iv_components
Example project
GitHub
Main Page
Modules
Classes
Files
File List
File Members
ivorium_graphics
Animation
Animation
AnimConnector.cpp
Go to the documentation of this file.
1
#include "
AnimConnector.hpp
"
2
#include "
AnimNode.hpp
"
3
4
namespace
iv
5
{
6
7
AnimConnector::AnimConnector
(
Instance
* inst ) :
8
cm( inst, this,
"AnimConnector"
),
9
inst( inst ),
10
_parent_changed( false ),
11
_child_arrived( false )
12
{
13
}
14
15
Instance
*
AnimConnector::instance
()
const
16
{
17
return
this->inst;
18
}
19
20
void
AnimConnector::Activate
()
21
{
22
this->
anim_eachParent
(
23
[&](
AnimNodeI
* parent )
24
{
25
parent->
Activate
();
26
}
27
);
28
}
29
30
void
AnimConnector::parentChanged_Set
()
31
{
32
this->_parent_changed =
true
;
33
}
34
35
bool
AnimConnector::parentChanged_Get
()
36
{
37
return
this->_parent_changed;
38
}
39
40
void
AnimConnector::parentChanged_Clear
()
41
{
42
this->_parent_changed =
false
;
43
}
44
45
void
AnimConnector::childArrived_Set
()
46
{
47
this->_child_arrived =
true
;
48
}
49
50
bool
AnimConnector::childArrived_Get
()
51
{
52
return
this->_child_arrived;
53
}
54
55
void
AnimConnector::childArrived_Clear
()
56
{
57
this->_child_arrived =
false
;
58
}
59
60
}