public abstract class Manager extends Object implements EntityObserver
| Modifier and Type | Field and Description |
|---|---|
protected World |
world
The world associated with this manager.
|
| Constructor and Description |
|---|
Manager() |
| Modifier and Type | Method and Description |
|---|---|
void |
added(Entity e)
Called when an entity the observer is interested in is added.
|
void |
added(ImmutableBag<Entity> entities) |
void |
changed(Entity e)
Called when an entity the observer is interested in has changed.
|
void |
changed(ImmutableBag<Entity> entities) |
void |
deleted(Entity e)
Called when an entity the observer is interested in is deleted.
|
void |
deleted(ImmutableBag<Entity> entities) |
void |
disabled(Entity e)
Called when an entity the observer is interested in has been disabled.
|
protected void |
dispose()
see
World.dispose() |
void |
enabled(Entity e)
Called when an entity the observer is interested in has been
(re)enabled.
|
protected World |
getWorld()
Get the world associated with the manager.
|
protected void |
initialize()
Called when the world initializes.
|
protected void |
setWorld(World world)
Set the world associated with the manager.
|
protected World world
protected void initialize()
Override to implement custom behavior at initialization.
protected void setWorld(World world)
world - the world to setprotected World getWorld()
public void added(Entity e)
EntityObserveradded in interface EntityObservere - the added entitypublic void changed(Entity e)
EntityObserverchanged in interface EntityObservere - the changed entitypublic void deleted(Entity e)
EntityObserverdeleted in interface EntityObservere - the deleted entitypublic void disabled(Entity e)
EntityObserverdisabled in interface EntityObservere - the disabled entitypublic void enabled(Entity e)
EntityObserverenabled in interface EntityObservere - the (re)enabled entitypublic final void added(ImmutableBag<Entity> entities)
added in interface EntityObserverpublic final void changed(ImmutableBag<Entity> entities)
changed in interface EntityObserverpublic final void deleted(ImmutableBag<Entity> entities)
deleted in interface EntityObserverprotected void dispose()
World.dispose()Copyright © 2014. All Rights Reserved.