src/infinity/ecs/core/EntityManager.java
/**
	 * Removes the specified {@link Entity} from this {@link EntityManager} and also all
	 * Child-{@link Entity}s of the specified {@link Entity}.
	 * 
	 * @param entity The {@link Entity} which should be removed.
	 * @return true if the {@link Entity} was removed, otherwise false.
	 */
Removes the specified  Entity from this  EntityManager and also all
Child- Entitys of the specified  Entity.

@param entity The  Entity which should be removed.
@return true if the  Entity was removed, otherwise false.
Removes the specified Entity from this EntityManager and also all Child - Entitys of the specified Entity . @param entity The Entity which should be removed . @return true if the Entity was removed otherwise false .
public boolean removeEntity(Entity entity) {
		int eId = entity.getId();
		if (_entities.remove(eId)) {
			_components.remove(eId);
			_componentMasks.remove(eId);
			for (Entity child : _children.get(eId))
				removeEntity(child);
			_children.set(eId, null);
			if (_parents.remove(eId)) {
				List<Entity> tChilds = _children.get(eId);
				tChilds.remove(eId);
			}
			if (_msgEndpoint != null)
				_msgEndpoint.send(new EntityRemovedMessage(entity));
			return true;
		}
		return false;
	}
public boolean removeEntity ( Entity entity ) { int eId = entity . getId ( ) ; if ( _entities . remove ( eId ) ) { _components . remove ( eId ) ; _componentMasks . remove ( eId ) ; for ( Entity child : _children . get ( eId ) ) removeEntity ( child ) ; _children . set ( eId , null ) ; if ( _parents . remove ( eId ) ) { List < Entity > tChilds = _children . get ( eId ) ; tChilds . remove ( eId ) ; } if ( _msgEndpoint != null ) _msgEndpoint . send ( new EntityRemovedMessage ( entity ) ) ; return true ; } return false ; }
Removes the specified {@link Entity} from this {@link EntityManager} and also all
 Child-{@link Entity}s of the specified {@link Entity}.
Removes the specified { @link Entity } from this { @link EntityManager } and also all Child - { @link Entity } s of the specified { @link Entity } .