10 if (other.parent)
error(
"Can't add already added anim!");
12 if (other.isFinished(other))
error(
"Can't add finished anim!");
18 if (l) l.nextSibling =
other;
21 other.prevSibling = l;
22 other.nextSibling =
NULL;
23 this.lastChild =
other;
28 if (other.parent !=
this)
error(
"Can't remove from wrong AnimHost!");
32 entity n = other.nextSibling;
33 entity p = other.prevSibling;
35 if (p) p.nextSibling = n;
38 if (n) n.prevSibling = p;
39 else this.lastChild = p;
49 this.removeAnim(
this, tmp);
61 this.removeAnim(
this, tmp);
75 if (e.object == obj) e.stopAnim(e);
87 if (e.object == obj) e.resumeAnim(e);
122 this.removeAnim(
this, tmp);
#define METHOD(cname, name, prototype)