#ifdef INTERFACE
-CLASS(Easing) EXTENDS(Animation)
+CLASS(Easing, Animation)
METHOD(Easing, calcValue, float(entity, float, float, float, float))
METHOD(Easing, setMath, void(entity, float(float, float, float, float)))
ATTRIB(Easing, math, float(float, float, float, float), easingLinear)
entity makeEasing(entity obj, void(entity, float) objSetter, float(float, float, float, float) func, float animStartTime, float animDuration, float animStartValue, float animEnd)
{
entity me;
- me = spawnEasing();
+ me = NEW(Easing);
me.configureAnimation(me, obj, objSetter, animStartTime, animDuration, animStartValue, animEnd);
me.setMath(me, func);
return me;