public class MdxWorld
extends com.artemis.World
World to allow for interpolating and rendering of Systems| Modifier and Type | Field and Description |
|---|---|
float |
alpha |
| Constructor and Description |
|---|
MdxWorld(com.artemis.WorldConfiguration configuration)
Creates a new world
|
| Modifier and Type | Method and Description |
|---|---|
void |
addWorldListener(WorldListener listener)
Adds a
WorldListener to be notified of MdxWorld events |
int |
create() |
com.artemis.Entity |
createEntity() |
void |
delete(int entityId) |
void |
deleteEntity(com.artemis.Entity e) |
float |
getAlpha()
Returns the interpolation alpha
|
void |
interpolate()
Invokes interpolate on all
InterpolatingEntitySystems |
void |
removeWorldListener(WorldListener listener)
Removes a
WorldListener from MdxWorld notifications |
void |
render(Graphics g)
Invokes render on all
RenderingEntitySystems |
void |
setAlpha(float alpha)
Sets the interpolation alpha
|
create, createEntity, createFactory, dispose, edit, getAspectSubscriptionManager, getComponentManager, getDelta, getEntity, getEntityManager, getInjector, getInvocationStrategy, getManager, getMapper, getSystem, getSystems, inject, inject, process, setDelta, setInvocationStrategypublic MdxWorld(com.artemis.WorldConfiguration configuration)
configuration - The configuration to be appliedpublic void interpolate()
InterpolatingEntitySystemspublic void render(Graphics g)
RenderingEntitySystemsg - The Graphicss instancepublic int create()
create in class com.artemis.Worldpublic com.artemis.Entity createEntity()
createEntity in class com.artemis.Worldpublic void deleteEntity(com.artemis.Entity e)
deleteEntity in class com.artemis.Worldpublic void delete(int entityId)
delete in class com.artemis.Worldpublic void addWorldListener(WorldListener listener)
WorldListener to be notified of MdxWorld eventslistener - The WorldListener to be addedpublic void removeWorldListener(WorldListener listener)
WorldListener from MdxWorld notificationslistener - The WorldListener to be removedpublic float getAlpha()
public void setAlpha(float alpha)
alpha -