public class Defense extends java.lang.Object implements IComponent
| Type | Property and Description |
|---|---|
javafx.beans.property.SimpleObjectProperty<java.lang.Double> |
defense
Get the defense property.
|
| Constructor and Description |
|---|
Defense()
Construct to start defense at 0.
|
Defense(double defense)
Construct with initial value.
|
| Modifier and Type | Method and Description |
|---|---|
javafx.beans.property.SimpleObjectProperty<java.lang.Double> |
defenseProperty()
Get the defense property.
|
double |
getDefense()
Gets the value of the property defense.
|
java.util.List<javafx.beans.property.SimpleObjectProperty<?>> |
getProperties()
Gets any properties this component holds.
|
void |
setDefense(double defense)
Sets the value of the property defense.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetClassForComponentMap, getProperty, getProperty, getPropertyNamesAndClasses, removeBindingsclone, serialize, serializeToStringpublic javafx.beans.property.SimpleObjectProperty<java.lang.Double> defenseProperty
getDefense(),
setDefense(double)public Defense()
public Defense(double defense)
defense - the initial defense valuepublic javafx.beans.property.SimpleObjectProperty<java.lang.Double> defenseProperty()
getDefense(),
setDefense(double)public double getDefense()
public void setDefense(double defense)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.List<javafx.beans.property.SimpleObjectProperty<?>> getProperties()
IComponentgetProperties in interface IComponent