Package | Description |
---|---|
com.artemis |
Core Artemis classes.
|
com.artemis.managers |
Manager implementations.
|
com.artemis.systems |
Entity systems.
|
com.artemis.utils |
Helper classes.
|
Modifier and Type | Method and Description |
---|---|
Entity |
World.createEntity()
Create and return a new or reused entity instance.
|
Entity |
World.createEntity(Archetype archetype)
Create and return an
Entity wrapping a new or reused entity instance. |
protected Entity |
EntityManager.createEntityInstance()
Create a new entity.
|
Entity |
EntityEdit.getEntity()
Get target entity of entity edits.
|
Entity |
World.getEntity(int entityId)
Get entity with the specified id.
|
protected Entity |
EntityManager.getEntity(int entityId)
Resolves entity id to the unique entity instance.
|
Modifier and Type | Method and Description |
---|---|
Bag<Entity> |
EntitySystem.getEntities()
Gets the entities processed by this system.
|
Modifier and Type | Method and Description |
---|---|
void |
Manager.added(Entity e)
Called when entity gets added to world.
|
A |
BaseComponentMapper.create(Entity entity)
Create component for this entity.
|
void |
Manager.deleted(Entity e)
Called when entity gets deleted from world.
|
void |
World.deleteEntity(Entity e)
Delete the entity from the world.
|
boolean |
Entity.equals(Entity o)
id equality
|
A |
BaseComponentMapper.get(Entity e)
Fast but unsafe retrieval of a component for this entity.
|
A |
BaseComponentMapper.getSafe(Entity entity,
A fallback)
Fast and safe retrieval of a component for this entity.
|
boolean |
BaseComponentMapper.has(Entity e)
Checks if the entity has this type of component.
|
void |
EntitySystem.inserted(Entity e)
Called if entity has come into scope for this system, e.g
created or a component was added to it.
|
boolean |
Aspect.isInterested(Entity e)
Returns whether this Aspect would accept the given Entity.
|
void |
BaseComponentMapper.remove(Entity entity)
Remove component from entity.
|
void |
EntitySystem.removed(Entity e)
Called if entity has gone out of scope of this system, e.g deleted
or had one of it's components removed.
|
A |
BaseComponentMapper.set(Entity entity,
boolean value)
Create or remove a component from an entity.
|
void |
EntityTransmuter.transmute(Entity e)
Apply on target entity.
|
Modifier and Type | Method and Description |
---|---|
Entity |
TagManager.getEntity(String tag)
Get the entity tagged with the given tag.
|
Entity |
UuidEntityManager.getEntity(UUID uuid) |
Modifier and Type | Method and Description |
---|---|
ImmutableBag<Entity> |
GroupManager.getEntities(String group)
Get all entities that belong to the provided group.
|
ImmutableBag<Entity> |
PlayerManager.getEntitiesOfPlayer(String player)
Get all entities belonging to a player.
|
Modifier and Type | Method and Description |
---|---|
void |
GroupManager.add(Entity e,
String... groups)
Set the group of the entity.
|
void |
GroupManager.add(Entity e,
String group)
Set the group of the entity.
|
void |
GroupManager.add(Entity e,
String g1,
String g2)
Set the group of the entity.
|
void |
GroupManager.add(Entity e,
String g1,
String g2,
String g3)
Set the group of the entity.
|
void |
UuidEntityManager.deleted(Entity e) |
void |
PlayerManager.deleted(Entity e)
Deleted entities are removed from their player.
|
ImmutableBag<String> |
GroupManager.getGroups(Entity e)
Get all groups the entity belongs to.
|
String |
PlayerManager.getPlayer(Entity e)
Get the player an entity is associated with.
|
String |
TagManager.getTag(Entity entity)
Get the tag the given entity is tagged with.
|
UUID |
UuidEntityManager.getUuid(Entity e) |
boolean |
GroupManager.isInAnyGroup(Entity e)
Checks if the entity belongs to any group.
|
boolean |
GroupManager.isInGroup(Entity e,
String group)
Check if the entity is in the supplied group.
|
void |
TagManager.register(String tag,
Entity e)
Tag an entity.
|
void |
GroupManager.remove(Entity e,
String... groups)
Removes the entity from the specified groups
|
void |
GroupManager.remove(Entity e,
String group)
Remove the entity from the specified group.
|
void |
GroupManager.remove(Entity e,
String g1,
String g2)
Removes the entity from the specified groups.
|
void |
GroupManager.remove(Entity e,
String g1,
String g2,
String g3)
Removes the entity from the specified groups.
|
void |
GroupManager.removeFromAllGroups(Entity e)
Remove the entity from all groups.
|
void |
PlayerManager.removeFromPlayer(Entity e)
Remove the association of an entity with a player.
|
void |
PlayerManager.setPlayer(Entity e,
String player)
Associate the entity with the specified player.
|
void |
UuidEntityManager.setUuid(Entity e,
UUID newUuid) |
void |
UuidEntityManager.updatedUuid(Entity e,
UUID newUuid) |
Modifier and Type | Method and Description |
---|---|
protected abstract float |
DelayedEntityProcessingSystem.getRemainingDelay(Entity e)
Return the delay until this entity should be processed.
|
void |
DelayedEntityProcessingSystem.inserted(Entity entity) |
protected abstract void |
EntityProcessingSystem.process(Entity e)
Process a entity this system is interested in.
|
protected abstract void |
IntervalEntityProcessingSystem.process(Entity e)
Process a entity this system is interested in.
|
protected abstract void |
DelayedEntityProcessingSystem.processDelta(Entity e,
float accumulatedDelta)
Process an entity this system is interested in.
|
protected abstract void |
DelayedEntityProcessingSystem.processExpired(Entity e) |
Modifier and Type | Method and Description |
---|---|
protected void |
IntervalEntityProcessingSystem.processEntities(Bag<Entity> entities) |
Modifier and Type | Method and Description |
---|---|
Entity |
EntityBuilder.build()
Assemble, add to world
|
Copyright © 2019. All rights reserved.