| Modifier and Type | Method | 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() |
Retrieve the occupied space
|
int |
getOccupiedSpaceByWeapons() |
Retrieve the amount of space used for the weapons.
|
java.util.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
|
java.util.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() |
Retrieve the number of sailors as IntegerProperty.
|
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(java.lang.String name) |
Set the ships name
|
void |
setNumberOfSailors(int nbSailors) |
Set the number of sailors.
|
void |
setOccupiedSpace(int space) |
Set the occupied space
|
void |
setOwner(IShipOwner player) |
Define the owner of the ship
|
void |
setWeaponSlots(java.util.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, unloadboolean isUpgradable()
void upgrade()
void setName(java.lang.String name)
name - of the shipvoid repair()
int getUpgradeSpaceReduction()
int getValue()
void setNumberOfSailors(int nbSailors)
nbSailors - number of sailors.javafx.beans.property.IntegerProperty numberOfSailorsProperty()
int getMinNumberOfSailors()
int getMaxNumberOfSailors()
void setCaptain(ICaptain captain)
captain - to be assigned to the shipvoid addPassenger(IPerson passanger)
passanger - going oon board.void leavePassenger()
java.util.Optional<IPerson> getPassenger()
EShipType getShipType()
void setOwner(IShipOwner player)
player - owner of the ship.EShipUpgrade getShipUpgradeLevel()
java.util.List<IWeaponSlot> getWeaponSlots()
boolean isAvailable()
void setAvailable(boolean available)
available - true if the ship is avalableint getOccupiedSpace()
void setOccupiedSpace(int space)
space - in barrels.javafx.beans.binding.BooleanBinding passengerPresentProperty()
void setWeaponSlots(java.util.List<IWeaponSlot> shipWeaponsLocation)
shipWeaponsLocation - list of IWeaponSlots.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.