AnimConnector.cpp
Go to the documentation of this file.
1 #include "AnimConnector.hpp"
2 #include "AnimNode.hpp"
3 
4 namespace iv
5 {
6 
8  cm( inst, this, "AnimConnector" ),
9  inst( inst ),
10  _parent_changed( false ),
11  _child_arrived( false )
12 {
13 }
14 
16 {
17  return this->inst;
18 }
19 
21 {
22  this->anim_eachParent(
23  [&]( AnimNodeI * parent )
24  {
25  parent->Activate();
26  }
27  );
28 }
29 
31 {
32  this->_parent_changed = true;
33 }
34 
36 {
37  return this->_parent_changed;
38 }
39 
41 {
42  this->_parent_changed = false;
43 }
44 
46 {
47  this->_child_arrived = true;
48 }
49 
51 {
52  return this->_child_arrived;
53 }
54 
56 {
57  this->_child_arrived = false;
58 }
59 
60 }