public interface Recyclable extends Feature
Allows to recycle a Featurable
and all its Feature
when using
Factory.create(com.b3dgs.lionengine.Media)
or Factory.create(com.b3dgs.lionengine.Media, Class)
.
Should be used if object creation is too much time consuming, and only if reuse can be intensive (such as effects or bullets).
Modifier and Type | Method and Description |
---|---|
void |
recycle()
Recycle feature, to make it ready for reuse.
|
checkListener, prepare
getFeature, getFeatures, getFeaturesType, hasFeature
Copyright © 2017 Byron 3D Games Studio. All rights reserved.