public abstract class BasicAttachmentManager extends java.lang.Object implements IAttachmentManager
Abstract implementation of an IAttachmentManager.
Constructor and Description |
---|
BasicAttachmentManager() |
Modifier and Type | Method and Description |
---|---|
abstract IAttachment |
allocate()
Create a new instance of IAttachment.
|
void |
destroy(IAttachment attach)
Frees an instance of IAttachment.
|
java.util.List<IAttachment> |
getAttachments()
Getter for the list of active attachments.
|
void |
update()
Called when the attachment should update its logic.
|
public abstract IAttachment allocate()
IAttachmentManager
Create a new instance of IAttachment.
allocate
in interface IAttachmentManager
IAttachmentManager.allocate()
public void destroy(IAttachment attach)
IAttachmentManager
Frees an instance of IAttachment.
destroy
in interface IAttachmentManager
attach
- an IAttachment to freeIAttachmentManager.destroy(IAttachment)
public void update()
IAttachmentManager
Called when the attachment should update its logic.
update
in interface IAttachmentManager
IAttachmentManager.update()
public java.util.List<IAttachment> getAttachments()