public AnimatedObject(int id, int rotation, int type, int posxplus1, int posxplus1yplus1, int pos, int posyplus1, int animationId, boolean flag) {
		this.id = id;
		this.type = type;
		this.rotation = rotation;
		this.pos = pos;
		this.posxplus1 = posxplus1;
		this.posxplus1yplus1 = posxplus1yplus1;
		this.posyplus1 = posyplus1;
		if (animationId != -1) {
			sequence = Sequence.sequenceCache[animationId];
			anInt1599 = 0;
			anInt1608 = Client.loopCycle;
			if (flag && sequence.frameStep != -1) {
				anInt1599 = (int) (Math.random() * sequence.length);
				anInt1608 -= (int) (Math.random() * sequence.getFrameLength(anInt1599));
			}
		}
		ObjectDefinition objectDefinition = ObjectDefinition.forId(id);
		varbitFileId = objectDefinition.varbitFileId;
		anInt1602 = objectDefinition.anInt749;
		childIds = objectDefinition.childIds;
	}