public class Lives extends java.lang.Object implements IComponent
| Type | Property and Description |
|---|---|
javafx.beans.property.SimpleObjectProperty<java.lang.Integer> |
lives
Get the lives property.
|
| Constructor and Description |
|---|
Lives()
Empty constructor that default to 0.
|
Lives(int lives)
Construct with an initial value.
|
| Modifier and Type | Method and Description |
|---|---|
void |
decrementLives()
Decrease number of lives by 1.
|
int |
getLives()
Gets the value of the property lives.
|
java.util.List<javafx.beans.property.SimpleObjectProperty<?>> |
getProperties()
Gets any properties this component holds.
|
void |
incrementLives()
Increase number of lives by 1.
|
javafx.beans.property.SimpleObjectProperty<java.lang.Integer> |
livesProperty()
Get the lives property.
|
void |
setLives(int lives)
Sets the value of the property lives.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetClassForComponentMap, getProperty, getProperty, getPropertyNamesAndClasses, removeBindingsclone, serialize, serializeToStringpublic javafx.beans.property.SimpleObjectProperty<java.lang.Integer> livesProperty
getLives(),
setLives(int)public Lives()
public Lives(int lives)
lives - the initial valuepublic javafx.beans.property.SimpleObjectProperty<java.lang.Integer> livesProperty()
getLives(),
setLives(int)public int getLives()
public void setLives(int lives)
public void decrementLives()
public void incrementLives()
public java.util.List<javafx.beans.property.SimpleObjectProperty<?>> getProperties()
IComponentgetProperties in interface IComponent