public interface INavigableVessel
| Modifier and Type | Method and Description |
|---|---|
void |
damage(int damage)
Damage the ship
|
int |
getCapacity()
Available capacity of the ship, this represent the free storage in barrels
|
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)
|
Set<IWare> |
getLoadedWares()
Retrieve a list of all loaded wares
|
javafx.geometry.Point2D |
getLocation()
Retrieve the location of the ship.
|
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
|
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.
|
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()
String getName()
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)
damage - javafx.beans.binding.IntegerBinding getLoadBinding()
AmountablePrice<IWare> getWare(IWare ware)
ware - int getNumberOfSailors()
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()
String getUuid()
boolean getPirateFlag()
void togglePirateFlag()
Copyright © 2011-2017 Sahits GmbH. All Rights Reserved.