public class EntitySystem extends java.lang.Object implements IEntitySystem
| Constructor and Description |
|---|
EntitySystem() |
| Modifier and Type | Method and Description |
|---|---|
IEntity |
addEntity(IEntity entity)
Adds an entity.
|
boolean |
containsID(java.lang.String id)
Check whether this system contains an entity with provided ID.
|
IEntity |
createEntity()
Creates an entity.
|
java.util.Collection<IEntity> |
getAllEntities()
Get all entites in the system.
|
IEntity |
getEntity(java.lang.String i)
Get an entity based on its id.
|
java.lang.String |
getName()
Gets the Entity Systems name
|
boolean |
isEmpty()
Checks if any entities are in this system.
|
boolean |
removeEntity(java.lang.String id)
Remove entity with this ID.
|
void |
setName(java.lang.String name)
Names the entity System
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddEntities, addEntities, clear, containsEntity, createEntityFromDefault, createEntityFromLoad, getAllComponents, getAllComponentsOfType, getAllIDS, getAllNames, getComponentOfEntity, getEntitiesWithComponent, getEntitiesWithComponents, getEntitiesWithComponents, getEntitiesWithName, removeAllBindingsFromComponentspublic IEntity createEntity()
IEntitySystemcreateEntity in interface IEntitySystempublic IEntity addEntity(IEntity entity)
IEntitySystemaddEntity in interface IEntitySystementity - the entity to be addedpublic IEntity getEntity(java.lang.String i)
IEntitySystemgetEntity in interface IEntitySystemi - of the entitypublic java.util.Collection<IEntity> getAllEntities()
IEntitySystemgetAllEntities in interface IEntitySystempublic boolean containsID(java.lang.String id)
IEntitySystemcontainsID in interface IEntitySystemid - to checkpublic boolean removeEntity(java.lang.String id)
IEntitySystemremoveEntity in interface IEntitySystemid - to removepublic java.lang.String getName()
IEntitySystemgetName in interface IEntitySystempublic void setName(java.lang.String name)
IEntitySystemsetName in interface IEntitySystemname - with the namepublic boolean isEmpty()
IEntitySystemisEmpty in interface IEntitySystem