returns a clone of action */
| 107 | |
| 108 | /** returns a clone of action */ |
| 109 | Animate3D* Animate3D::clone() const |
| 110 | { |
| 111 | auto animate = const_cast<Animate3D*>(this); |
| 112 | auto copy = Animate3D::create(animate->_animation); |
| 113 | |
| 114 | copy->_absSpeed = _absSpeed; |
| 115 | copy->_weight = _weight; |
| 116 | copy->_elapsed = _elapsed; |
| 117 | copy->_start = _start; |
| 118 | copy->_last = _last; |
| 119 | copy->_playReverse = _playReverse; |
| 120 | copy->setDuration(animate->getDuration()); |
| 121 | copy->setOriginInterval(animate->getOriginInterval()); |
| 122 | return copy; |
| 123 | } |
| 124 | |
| 125 | /** returns a new action that performs the exactly the reverse action */ |
| 126 | Animate3D* Animate3D::reverse() const |
no test coverage detected