src/infinity/ecs/core/EntityManager.java
/**
	 * Creates a new, empty Entity with a unique ID.
	 * @return The created Entity.
	 */
Creates a new, empty Entity with a unique ID.
@return The created Entity.
Creates a new empty Entity with a unique ID . @return The created Entity .
public Entity createEntity() {
		int id = _idPool.getId();
		Entity entity = new Entity(id, this);
		_entities.set(id, entity);
		_children.set(id, new ArrayList<Entity>());
		_components.set(id, new IndexedCollection<Component>());
		_componentMasks.set(id, new ComponentMask());
		if (_msgEndpoint != null)
			_msgEndpoint.send(new EntityCreatedMessage(entity));
		return entity;
	}
public Entity createEntity ( ) { int id = _idPool . getId ( ) ; Entity entity = new Entity ( id , this ) ; _entities . set ( id , entity ) ; _children . set ( id , new ArrayList < Entity > ( ) ) ; _components . set ( id , new IndexedCollection < Component > ( ) ) ; _componentMasks . set ( id , new ComponentMask ( ) ) ; if ( _msgEndpoint != null ) _msgEndpoint . send ( new EntityCreatedMessage ( entity ) ) ; return entity ; }
Creates a new, empty Entity with a unique ID.
Creates a new empty Entity with a unique ID .