public Collection<GameObject> getObjectsOfType(Class<?> gameObjType) {
		cleanDeadObjects();
		ArrayList<GameObject> resultList = new ArrayList<GameObject>();
		for (GameObject obj : this.getGameObjects()) {
			if (gameObjType.isInstance(obj))
				resultList.add(obj);
		}
		return resultList;
	}