Class SailorsState
- java.lang.Object
-
- ch.sahits.game.openpatrician.model.people.impl.SailorsState
-
- All Implemented Interfaces:
IPerson,ISailors,ISailorState
public class SailorsState extends java.lang.Object implements ISailorState
-
-
Constructor Summary
Constructors Constructor Description SailorsState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfire()Fire a single sailor.intgetNumberOfSailors()Retrieve the numbers of sailors presentvoidhire()Hire a single sailor.booleanisPresent()Indicates if sailors are presentjavafx.beans.property.IntegerPropertynumberOfSailorsProperty()voidsetNumberOfSailors(int number)Set the number of sailors
-
-
-
Method Detail
-
getNumberOfSailors
public int getNumberOfSailors()
Description copied from interface:ISailorsRetrieve the numbers of sailors present- Specified by:
getNumberOfSailorsin interfaceISailors- Returns:
- number of sailors
-
setNumberOfSailors
public void setNumberOfSailors(int number)
Description copied from interface:ISailorStateSet the number of sailors- Specified by:
setNumberOfSailorsin interfaceISailorState
-
hire
public void hire()
Description copied from interface:ISailorStateHire a single sailor.- Specified by:
hirein interfaceISailorState
-
numberOfSailorsProperty
public javafx.beans.property.IntegerProperty numberOfSailorsProperty()
- Specified by:
numberOfSailorsPropertyin interfaceISailorState
-
fire
public void fire()
Description copied from interface:ISailorStateFire a single sailor.- Specified by:
firein interfaceISailorState
-
-