public class MdxWorld
extends com.artemis.World
World
to allow for interpolating and rendering of System
sModifier 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
InterpolatingEntitySystem s |
void |
removeWorldListener(WorldListener listener)
Removes a
WorldListener from MdxWorld notifications |
void |
render(Graphics g)
Invokes render on all
RenderingEntitySystem s |
void |
setAlpha(float alpha)
Sets the interpolation alpha
|
compositionId, create, createEntity, dispose, edit, getAspectSubscriptionManager, getComponentManager, getDelta, getEntity, getEntityManager, getInjector, getInvocationStrategy, getMapper, getRegistered, getRegistered, getSystem, getSystems, inject, inject, process, setDelta, setInvocationStrategy
public MdxWorld(com.artemis.WorldConfiguration configuration)
configuration
- The configuration to be appliedpublic void interpolate()
InterpolatingEntitySystem
spublic void render(Graphics g)
RenderingEntitySystem
sg
- The Graphics
s instancepublic int create()
create
in class com.artemis.World
public com.artemis.Entity createEntity()
createEntity
in class com.artemis.World
public void deleteEntity(com.artemis.Entity e)
deleteEntity
in class com.artemis.World
public void delete(int entityId)
delete
in class com.artemis.World
public 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
-