public class SelectableComponent extends BooleanComponent implements CopyableComponent<SelectableComponent>
valueProperty| Constructor and Description |
|---|
SelectableComponent(boolean value) |
| Modifier and Type | Method and Description |
|---|---|
SelectableComponent |
copy()
Copies this component.
|
void |
onAdded(Entity entity)
Called when component is added to an entity.
|
void |
onRemoved(Entity entity)
Called when component is removed from an entity.
|
getValue, read, setValue, toString, valueProperty, writegetEntitypublic void onAdded(Entity entity)
ComponentonAdded in interface ComponentonAdded in class AbstractComponententity - the entity to which this component was addedpublic void onRemoved(Entity entity)
ComponentonRemoved in interface ComponentonRemoved in class AbstractComponententity - the entity from which this component is removedpublic SelectableComponent copy()
CopyableComponentObject.clone().
The 'depth' of the copy should be determined by the user.copy in interface CopyableComponent<SelectableComponent>Copyright © 2017. All rights reserved.