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 void
fire()
Fire a single sailor.int
getNumberOfSailors()
Retrieve the numbers of sailors presentvoid
hire()
Hire a single sailor.boolean
isPresent()
Indicates if sailors are presentjavafx.beans.property.IntegerProperty
numberOfSailorsProperty()
void
setNumberOfSailors(int number)
Set the number of sailors
-
-
-
Method Detail
-
getNumberOfSailors
public int getNumberOfSailors()
Description copied from interface:ISailors
Retrieve the numbers of sailors present- Specified by:
getNumberOfSailors
in interfaceISailors
- Returns:
- number of sailors
-
setNumberOfSailors
public void setNumberOfSailors(int number)
Description copied from interface:ISailorState
Set the number of sailors- Specified by:
setNumberOfSailors
in interfaceISailorState
-
hire
public void hire()
Description copied from interface:ISailorState
Hire a single sailor.- Specified by:
hire
in interfaceISailorState
-
numberOfSailorsProperty
public javafx.beans.property.IntegerProperty numberOfSailorsProperty()
- Specified by:
numberOfSailorsProperty
in interfaceISailorState
-
fire
public void fire()
Description copied from interface:ISailorState
Fire a single sailor.- Specified by:
fire
in interfaceISailorState
-
-