public class Achievement extends Object
| Type | Property and Description |
|---|---|
javafx.beans.property.ReadOnlyBooleanProperty |
achieved |
| Constructor and Description |
|---|
Achievement(String name,
String description)
Constructs a new achievement with given name and description.
|
| Modifier and Type | Method and Description |
|---|---|
javafx.beans.property.ReadOnlyBooleanProperty |
achievedProperty() |
void |
bind(javafx.beans.binding.BooleanBinding binding)
Binds achievement to given binding (condition).
|
void |
bind(javafx.beans.property.IntegerProperty property,
int value)
Bind achievement condition to given property.
|
String |
getDescription()
Returns description.
|
String |
getName() |
boolean |
isAchieved() |
String |
toString() |
public javafx.beans.property.ReadOnlyBooleanProperty achievedProperty
isAchieved()public boolean isAchieved()
public javafx.beans.property.ReadOnlyBooleanProperty achievedProperty()
isAchieved()public void bind(javafx.beans.binding.BooleanBinding binding)
binding - condition on which achievement is unlockedpublic void bind(javafx.beans.property.IntegerProperty property,
int value)
property - the propertyvalue - the value at which the achievement is unlockedpublic String getName()
public String getDescription()
Copyright © 2016. All rights reserved.