| 99 | } |
| 100 | |
| 101 | void 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 | } |
no test coverage detected