MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / step

Method step

Source/GroupCommandObject.cpp:101–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101void GroupCommandObject::step(float dt)
102{
103 _elapsed += dt;
104 if (!_actionDone)
105 {
106 if (_action1)
107 {
108 _action1->step(dt);
109 if (_action2)
110 _action2->step(dt);
111 if (_action1->isDone())
112 {
113 _action1->stop();
114 _action1->release();
115 if (_action2)
116 {
117 _action2->stop();
118 _action2->release();
119 }
120 this->_actionDone = true;
121 }
122 }
123 else if(this->_elapsed >= this->_duration)
124 {
125 this->_actionDone = true;
126 }
127 }
128}

Callers 1

prepareMoveActionsMethod · 0.80

Calls 1

stopMethod · 0.80

Tested by

no test coverage detected