ICog, IConvoy, ICrayer, IGroupableVessel, IHolk, IShip, IShipGroup, ISnaikkapublic interface INavigableVessel
| Modifier and Type | Method | Description |
|---|---|---|
void |
damage(int damage,
boolean destroyWeapon) |
Damage the ship
|
int |
getCapacity() |
Available capacity of the ship, this represent the free storage in barrels
|
java.util.Optional<ICaptain> |
getCaptian() |
Retrieve the captain of the ship.
|
double |
getCurrentSpeed() |
Current top speed of the ship.
|
int |
getDamage() |
Retrieve the damage of the ship in percentage [0,100]
|
int |
getLoadableSpace() |
Retrieve the total amount of space that is available to store stuff.
|
javafx.beans.binding.IntegerBinding |
getLoadBinding() |
Retrieve the amount of load in barrels that is loaded in actual wares (no wappen or crew)
|
java.util.Set<IWare> |
getLoadedWares() |
Retrieve a list of all loaded wares
|
javafx.geometry.Point2D |
getLocation() |
Retrieve the location of the ship.
|
java.lang.String |
getName() |
Retrieve the name of the of the ship
|
int |
getNumberOfSailors() |
Retrieve the number of sailors on the ship.
|
IShipOwner |
getOwner() |
Retrieve the owner of the ship.
|
boolean |
getPirateFlag() |
Indicate if the vessel has hissed the pirate flag (Jolly Roger)
and the vessel therefore should be considered a pirate vessel.
|
int |
getSize() |
Total capacity of the ship in barrels.
|
double |
getTopSpeed() |
Retrieve the speed of the vessel in kilometer per hour
|
java.lang.String |
getUuid() |
Retrieve a universal unique identifier for the vessel.
|
AmountablePrice<IWare> |
getWare(IWare ware) |
Retrieve the amount of ware loaded
|
int |
getWeaponAmount(IWeapon weaponType) |
Retrieve the amount of weapons on the ship
|
int |
load(IWare ware,
int amount,
int avgPrice) |
Load the ware in the specified amount onto the ship.
|
javafx.beans.property.BooleanProperty |
pirateFlagProperty() |
Property defining the pirate activit y of the vessel.
|
void |
setLocation(javafx.geometry.Point2D location) |
Set the location of the ship.
|
void |
togglePirateFlag() |
Hiss or lower the pirate flag (Jolly Roger).
|
int |
unload(IWare ware,
int amount) |
Unload the specified quantity of the ware.
|
int getSize()
int getCapacity()
java.lang.String getName()
java.util.Set<IWare> getLoadedWares()
int load(IWare ware, int amount, int avgPrice)
ware - to be loadedamount - of items the wareavgPrice - average price of one item of the wareint unload(IWare ware, int amount)
ware - to be unloadedamount - amount of items of ware to unloadint getDamage()
void damage(int damage,
boolean destroyWeapon)
damage - amount of damage that is inflicteddestroyWeapon - flag indicating if weapons may be destroyed.javafx.beans.binding.IntegerBinding getLoadBinding()
AmountablePrice<IWare> getWare(IWare ware)
ware - for which to retrieve price and amountint getNumberOfSailors()
java.util.Optional<ICaptain> getCaptian()
javafx.geometry.Point2D getLocation()
void setLocation(javafx.geometry.Point2D location)
location - of the shipIShipOwner getOwner()
int getWeaponAmount(IWeapon weaponType)
weaponType - SWORD | BOW | CROSSBOW | MUSKETint getLoadableSpace()
double getTopSpeed()
double getCurrentSpeed()
java.lang.String getUuid()
boolean getPirateFlag()
javafx.beans.property.BooleanProperty pirateFlagProperty()
void togglePirateFlag()
Copyright © 2011-2018 Sahits GmbH. All Rights Reserved.