public class Health extends java.lang.Object implements IComponent
| Type | Property and Description |
|---|---|
javafx.beans.property.SimpleObjectProperty<java.lang.Double> |
health
Get the health property.
|
| Constructor and Description |
|---|
Health()
Empty constructor.
|
Health(double health)
Construct with an initial value.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getHealth()
Gets the value of the property health.
|
java.util.List<javafx.beans.property.SimpleObjectProperty<?>> |
getProperties()
Gets any properties this component holds.
|
javafx.beans.property.SimpleObjectProperty<java.lang.Double> |
healthProperty()
Get the health property.
|
void |
setHealth(double health)
Sets the value of the property health.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetClassForComponentMap, getProperty, getProperty, getPropertyNamesAndClasses, removeBindingsclone, serialize, serializeToStringpublic javafx.beans.property.SimpleObjectProperty<java.lang.Double> healthProperty
getHealth(),
setHealth(double)public Health()
public Health(double health)
health - the initial valuepublic javafx.beans.property.SimpleObjectProperty<java.lang.Double> healthProperty()
getHealth(),
setHealth(double)public double getHealth()
public void setHealth(double health)
public java.util.List<javafx.beans.property.SimpleObjectProperty<?>> getProperties()
IComponentgetProperties in interface IComponent