public interface Identifiable extends Feature
Modifier and Type | Method and Description |
---|---|
void |
addListener(IdentifiableListener listener)
Add an identifiable listener.
|
void |
destroy()
Declare as removable.
|
Integer |
getId()
Get the ID (
null will be returned once removed after a call to destroy() ). |
void |
notifyDestroyed()
Notify effective destruction, and allow to recycle destroyed ID.
|
void |
removeListener(IdentifiableListener listener)
Remove an identifiable listener.
|
checkListener, prepare
getFeature, getFeatures, getFeaturesType, hasFeature
void addListener(IdentifiableListener listener)
listener
- The listener reference.void removeListener(IdentifiableListener listener)
listener
- The listener reference.Integer getId()
null
will be returned once removed after a call to destroy()
).void destroy()
notifyDestroyed()
should be called when recycle can be performed.void notifyDestroyed()
Copyright © 2017 Byron 3D Games Studio. All rights reserved.