Skip to main content

IFlixelBasic

View source

interface

org.flixelgdx.functional.IFlixelBasic

public interface IFlixelBasic extends FlixelUpdatable, FlixelDrawable, FlixelDestroyable, FlixelKillable, FlixelVisible, Disposable, Poolable

Full FlixelBasic-style contract: per-frame update and draw hooks, existence and active flags, visibility, kill and revive, teardown, and libGDX Disposable / Poolable hooks. Extend FlixelBasic when you want the default field-based implementation, or implement this interface on your own type when you need a custom base class but still want to add instances to a FlixelState or FlixelBasicGroup.

See Also: FlixelBasic, FlixelBasicGroup

Methods

isExists()

public boolean isExists()

When false, groups and states skip this instance for automatic IFlixelBasic.update(...).

Returns: The current exists flag.


setExists(boolean)

public void setExists(boolean exists)

Parameters:

NameDescription
existsThe new exists flag.

isActive()

public boolean isActive()

When false, IFlixelBasic.update(...) is skipped even if IFlixelBasic.isExists() is true.

Returns: The current active flag.


setActive(boolean)

public void setActive(boolean active)

Parameters:

NameDescription
activeThe new active flag.