public class SailorsState extends Object implements ISailorState
| Type | Property and Description |
|---|---|
javafx.beans.property.IntegerProperty |
numberOfSailors |
| Modifier and Type | Field and Description |
|---|---|
private javafx.beans.property.IntegerProperty |
nbSailors |
private javafx.beans.property.BooleanProperty |
present |
| Constructor and Description |
|---|
SailorsState() |
| Modifier and Type | Method and Description |
|---|---|
void |
fire()
Fire a single sailor.
|
int |
getNumberOfSailors()
Gets the value of the property numberOfSailors.
|
void |
hire()
Hire a single sailor.
|
boolean |
isPresent()
Indicates if sailors are present
|
javafx.beans.property.IntegerProperty |
numberOfSailorsProperty() |
void |
setNumberOfSailors(int number)
Sets the value of the property numberOfSailors.
|
numberOfSailorsProperty in interface ISailorStateprivate final javafx.beans.property.IntegerProperty nbSailors
private final javafx.beans.property.BooleanProperty present
public int getNumberOfSailors()
getNumberOfSailors in interface ISailorspublic void setNumberOfSailors(int number)
setNumberOfSailors in interface ISailorStatepublic void hire()
ISailorStatehire in interface ISailorStatepublic javafx.beans.property.IntegerProperty numberOfSailorsProperty()
numberOfSailorsProperty in interface ISailorStatepublic void fire()
ISailorStatefire in interface ISailorStateCopyright © 2011-2015 Sahits GmbH. All Rights Reserved.