FlixelKillable
View sourceinterface
org.flixelgdx.functional.FlixelKillable
public interface FlixelKillable
Flixel-style kill and revive.
A killed object should not run normal updates or draws, but can be revived later without reallocating. See FlixelBasic.kill() and FlixelBasic.revive().
Methods
isKilled()
public boolean isKilled()
Returns: true when this instance is killed (disabled) in the Flixel sense.
setKilled(boolean)
public void setKilled(boolean killed)
Parameters:
| Name | Description |
|---|---|
killed | true to FlixelKillable.kill(), false to FlixelKillable.revive(). |
toggleKilled()
public void toggleKilled()
kill()
public void kill()
revive()
public void revive()