MCPcopy Create free account
hub / github.com/axmolengine/axmol / clone

Method clone

core/3d/Animate3D.cpp:109–123  ·  view source on GitHub ↗

returns a clone of action */

Source from the content-addressed store, hash-verified

107
108/** returns a clone of action */
109Animate3D* 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 */
126Animate3D* Animate3D::reverse() const

Callers 3

loadFromCacheMethod · 0.45
setMaterialMethod · 0.45
genMaterialMethod · 0.45

Calls 4

createFunction · 0.85
setOriginIntervalMethod · 0.80
setDurationMethod · 0.45
getDurationMethod · 0.45

Tested by

no test coverage detected