FlixelBasicGroupable
View sourceinterface
org.flixelgdx.group.FlixelBasicGroupable
public interface FlixelBasicGroupable<T extends IFlixelBasic> extends FlixelGroupable<T>
A FlixelGroupable whose members are IFlixelBasic instances. Engine code (overlap checks, debug traversal, FlixelBasicGroup) can depend on this marker and the helpers below without forcing generic FlixelGroup users to extend FlixelBasic.
For lifecycle guidance (kill/revive/destroy), see FlixelBasic.
Methods
removeMember(T, boolean)
public default void removeMember(T member, boolean destroy)
Removes the member from the group; if destroy is true, also calls FlixelDestroyable.destroy() on it after removal.
Parameters:
| Name | Description |
|---|---|
member | The member to remove. |
destroy | If true, call FlixelDestroyable.destroy() after unlinking. |
getFirstDead()
public default T getFirstDead()
Returns the first non-null member with exists == false, or null.