| Modifier and Type | Method and Description |
|---|---|
void |
add(Entity<?>... entities)
Adds the given
Entity instances to this Group. |
void |
remove(Entity<?> entity)
Separates the given entity from this
Group. |
getAlpha, getId, getRotation, getScaleX, getScaleY, getX, getY, getZIndex, isVisible, setAlpha, setAlpha, setRotation, setRotation, setScale, setScale, setScaleX, setScaleX, setScaleY, setScaleY, setVisible, setX, setX, setY, setY, setZIndexpublic void remove(Entity<?> entity)
Group.entity - the Entity to be removed from this group, if it is part of it.public void add(Entity<?>... entities)
Entity instances to this Group.
The entities will be displayed within a container controlled by this Group.
entities - the Entity instances to be added to this group.java.lang.IllegalArgumentException - if at least one given Entity is already in a Group.