package de.fe1k.game9.components;

import de.fe1k.game9.utils.Bounding;
import de.nerogar.noise.util.Vector2f;

public class ComponentBounding extends Component {
	public static final int LAYER_NONE = 0;
	public static final int LAYER_MAP  = 1;
	public static final int LAYER_PLAYER = 1 << 1;
	public static final int LAYER_PARTICLES = 1 << 2;
	public static final int LAYER_ALL = ~0;

	public Bounding bounding;
	public int layerSelf;
	public int layerCollides;
	public ComponentBounding(Bounding bounding, int layerSelf, int layerCollides) {
		this.bounding = bounding;
		this.layerSelf = layerSelf;
		this.layerCollides = layerCollides;
	}
	public Bounding getTranslatedBounding() {
		return bounding.translated(new Vector2f(
				getOwner().getPosition().getX(),
				getOwner().getPosition().getY()
		));
	}
}

@@ -68,47 +68,8 @@
 ing;
-%0Aimport de.nerogar.noise.util.Vector2f;
 %0A%0Apu
@@ -673,26 +673,8 @@
 ted(
-new Vector2f(%0A%09%09%09%09
 getO
@@ -696,56 +696,8 @@
 ion(
-).getX(),%0A%09%09%09%09getOwner().getPosition().getY()%0A%09%09
 ));%0A

simplify getTranslatedBounding in ComponentBounding