package com.bitdecay.jump.level;

import com.bitdecay.jump.BitBody;
import com.bitdecay.jump.annotation.CantInspect;
import com.bitdecay.jump.geom.BitPointInt;
import com.bitdecay.jump.geom.BitRectangle;
import com.fasterxml.jackson.annotation.JsonIgnore;

import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

public abstract class LevelObject {
	@CantInspect
	public BitRectangle rect;

	@CantInspect
	public String uuid = UUID.randomUUID().toString();

	public LevelObject() {
		// Here for JSON
	}

	public LevelObject(BitRectangle rect) {
		this.rect = rect;
	}

	@JsonIgnore
	public abstract BitBody buildBody();

	public abstract String name();

	public boolean selects(BitPointInt point) {
		return rect.contains(point);
	}

	public boolean selects(BitRectangle selectionRect) {
		return selectionRect.contains(rect);
	}
}

package com.bitdecay.jump.level;

import com.bitdecay.jump.BitBody;
import com.bitdecay.jump.annotation.CantInspect;
import com.bitdecay.jump.geom.BitPointInt;
import com.bitdecay.jump.geom.BitRectangle;
import com.fasterxml.jackson.annotation.JsonIgnore;

import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

public abstract class LevelObject {
	@CantInspect
	public BitRectangle rect;

	@CantInspect
	public final String uuid = UUID.randomUUID().toString();

	public LevelObject() {
		// Here for JSON
	}

	public LevelObject(BitRectangle rect) {
		this.rect = rect;
	}

	@JsonIgnore
	public abstract BitBody buildBody();

	public abstract String name();

	public boolean selects(BitPointInt point) {
		return rect.contains(point);
	}

	public boolean selects(BitRectangle selectionRect) {
		return selectionRect.contains(rect);
	}
}

--- 
+++ 
@@ -15,7 +15,7 @@
 	public BitRectangle rect;
 
 	@CantInspect
-	public final String uuid = UUID.randomUUID().toString();
+	public String uuid = UUID.randomUUID().toString();
 
 	public LevelObject() {
 		// Here for JSON
Remove final modifier from UUID so games can alter it if needed
