E
- The object type used.public abstract class HandlerObjectGame<E extends ObjectGame>
extends java.lang.Object
Constructor and Description |
---|
HandlerObjectGame()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(E object)
Add an object to the handler list.
|
E |
get(java.lang.Integer key)
Get the object from its key.
|
java.util.Collection<E> |
list()
Get the list reference of handled objects.
|
void |
remove(E object)
Add an object to the remove list.
|
void |
removeAll()
Remove all objects from the list.
|
void |
render(com.b3dgs.lionengine.Graphic g)
Render the objects.
|
int |
size()
Get the number of objects handled.
|
void |
update(double extrp)
Update the objects.
|
public void update(double extrp)
extrp
- The extrapolation value.public void render(com.b3dgs.lionengine.Graphic g)
g
- The graphics output.public void add(E object)
updateAdd()
at the begin of the update to add
them properly.object
- The object to add.public E get(java.lang.Integer key)
key
- The object key.public void remove(E object)
object
- The object to remove.public void removeAll()
public int size()
public java.util.Collection<E> list()