| Type | Property and Description |
|---|---|
javafx.beans.property.IntegerProperty |
numberOfSailors |
javafx.beans.property.ObjectProperty<IShip> |
parentShip
Property holding the parent ship in case of a grouping (convoy or group).
|
javafx.beans.binding.BooleanBinding |
passengerPresent
Binding indicating if a passenger is present.
|
pirateFlagProperty| Modifier and Type | Method and Description |
|---|---|
void |
addPassenger(IPerson passanger)
Move a passenger to the ship.
|
int |
getDistanceInKmForOneHealthPointReduction()
Retrieve the distance in km the ship has to travel under normal conditions, for it's health to be reduced by one.
|
int |
getMaxNumberOfSailors()
Retrieve the maximum of sailors that can be put on the ship.
|
int |
getMinNumberOfSailors()
Retrieve the minimum of sailors needed to operate the ship.
|
int |
getOccupiedSpace() |
int |
getOccupiedSpaceByWeapons()
Retrieve the amount of space used for the weapons.
|
Optional<IPerson> |
getPassenger()
Retrieve the passenger on the ship.
|
EShipType |
getShipType()
Retrieve the type of the ship.
|
EShipUpgrade |
getShipUpgradeLevel()
Retrieve the upgrade level of the ship.
|
int |
getUpgradeSpaceReduction()
Retrieve the reduction of the load capacity based on the upgrade level.
|
int |
getValue()
Retrieve the current value of the ship without its cargo
|
List<IWeaponSlot> |
getWeaponSlots()
Retrieve the weaponslots and in the order from back to front.
|
boolean |
isAvailable()
Indicate if the ship is available.
|
boolean |
isUpgradable()
Check if the ship can be upgraded
|
void |
leavePassenger()
Passenger leave ship.
|
javafx.beans.property.IntegerProperty |
numberOfSailorsProperty() |
javafx.beans.property.ObjectProperty<IShip> |
parentShipProperty()
Property holding the parent ship in case of a grouping (convoy or group).
|
javafx.beans.binding.BooleanBinding |
passengerPresentProperty()
Binding indicating if a passenger is present.
|
void |
repair()
Repair the damage
|
void |
setAvailable(boolean available)
Set the available flag on the ship.
|
void |
setCaptain(ICaptain captain)
Set the captain on the ship
|
void |
setName(String name)
Set the ships name
|
void |
setNumberOfSailors(int nbSailors)
Set the number of sailors.
|
void |
setOccupiedSpace(int space) |
void |
setOwner(IShipOwner player)
Define the owner of the ship
|
void |
setWeaponSlots(List<IWeaponSlot> shipWeaponsLocation)
Set the ships weapons location.
|
void |
updateHandweapon(int delta)
Update the amount of handweapons on board.
|
void |
upgrade()
Upgrade the ship if it is upgradable
|
damage, getCapacity, getCaptian, getCurrentSpeed, getDamage, getLoadableSpace, getLoadBinding, getLoadedWares, getLocation, getName, getNumberOfSailors, getOwner, getPirateFlag, getSize, getTopSpeed, getUuid, getWare, getWeaponAmount, load, pirateFlagProperty, setLocation, togglePirateFlag, unloadjavafx.beans.property.IntegerProperty numberOfSailorsProperty
setNumberOfSailors(int)javafx.beans.binding.BooleanBinding passengerPresentProperty
javafx.beans.property.ObjectProperty<IShip> parentShipProperty
boolean isUpgradable()
void upgrade()
void setName(String name)
name - void repair()
int getUpgradeSpaceReduction()
int getValue()
void setNumberOfSailors(int nbSailors)
nbSailors - .javafx.beans.property.IntegerProperty numberOfSailorsProperty()
setNumberOfSailors(int)int getMinNumberOfSailors()
int getMaxNumberOfSailors()
void setCaptain(ICaptain captain)
captain - void addPassenger(IPerson passanger)
passanger - void leavePassenger()
Optional<IPerson> getPassenger()
EShipType getShipType()
void setOwner(IShipOwner player)
player - EShipUpgrade getShipUpgradeLevel()
List<IWeaponSlot> getWeaponSlots()
boolean isAvailable()
void setAvailable(boolean available)
available - int getOccupiedSpace()
void setOccupiedSpace(int space)
javafx.beans.binding.BooleanBinding passengerPresentProperty()
void setWeaponSlots(List<IWeaponSlot> shipWeaponsLocation)
shipWeaponsLocation - int getDistanceInKmForOneHealthPointReduction()
javafx.beans.property.ObjectProperty<IShip> parentShipProperty()
void updateHandweapon(int delta)
delta - difference to be changed.int getOccupiedSpaceByWeapons()
Copyright © 2011-2018 Sahits GmbH. All Rights Reserved.