20 this.configureAnimation(
this, obj, objSetter,
time, animDuration, animStart, animEnd);
33 if (this.lastChild)
return this.lastChild.startTime + this.lastChild.duration;
39 float maxDura = this.duration;
40 if (this.lastChild) maxDura = maxDura - (this.lastChild.startTime + this.lastChild.duration);
41 float dura = durationTime;
42 if (0 >= dura || dura > maxDura) dura = maxDura;
48 if (this.lastChild)
return this.lastChild.startValue + this.lastChild.delta;
49 else return this.startValue;
54 if (
other.parent)
error(
"Can't add already added anim!");
55 if (
other.finished)
error(
"Can't add finished anim!");
63 l.nextSibling =
other;
67 this.currentChild =
other;
71 other.prevSibling = l;
73 this.lastChild =
other;
78 if (this.currentChild && this.currentChild.finished)
79 this.currentChild = this.currentChild.nextSibling;
81 if (this.currentChild)
83 this.currentChild.tick(this.currentChild, tickTime);
84 return this.currentChild.value;
87 return animStartValue + animDelta;
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
entity makeEasing(entity obj, void(entity, float) objSetter, float(float, float, float, float) func, float animStartTime, float animDuration, float animStartValue, float animEnd)
entity makeHostedKeyframe(entity obj, void(entity, float) objSetter, float animDuration, float animStart, float animEnd)
entity makeKeyframe(entity obj, void(entity, float) objSetter, float animDuration, float animStart, float animEnd)
float getNewChildStart(entity this)
float getNewChildDuration(entity this, float durationTime)
float getNewChildValue(entity this)
#define METHOD(cname, name, prototype)