| Type | Property and Description |
|---|---|
javafx.beans.property.IntegerProperty |
numberOfSailors |
| Modifier and Type | Method and Description |
|---|---|
void |
addPassenger(IPerson passanger)
Move a passenger to the ship.
|
void |
damage(Object damage)
Damage the ship
|
int |
getCapacity()
Available capacity of the ship, this represent the free storage in barrels
|
com.google.common.base.Optional<ICaptain> |
getCaptian()
Retrieve the captain of the ship.
|
int |
getDamage()
Retrieve the damage of the ship in percentage [0,100]
|
int |
getLoad()
Deprecated.
|
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.
|
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.
|
String |
getName()
Retrieve the name of the of the ship
|
int |
getNumberOfSailors()
Retrieve the number of sailors on the ship.
|
int |
getOccupiedSpace() |
IPlayer |
getOwner()
Retrieve the owner of the ship.
|
com.google.common.base.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.
|
IShipWeaponsLocation |
getShipWeaponsLocation() |
int |
getSize()
Total capacity of the ship in barrels
|
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
|
AmountablePrice<IWare> |
getWare(IWare ware)
Retrieve the amount of ware loaded
|
int |
getWeaponAmount(IWeapon weaponType)
Retrieve the amount of weapons on the ship
|
boolean |
hasWeapons()
check if weapons are on board
|
boolean |
isAvailable()
Indicate if the ship is available.
|
boolean |
isPiratingShip()
Flag indicating if the pirate flag is set.
|
boolean |
isUpgradable()
Check if the ship can be upgraded
|
void |
leavePassanger()
Passenger leave ship.
|
int |
load(IWare ware,
int amount,
int avgPrice)
Load the ware in the specified amount onto the ship.
|
void |
move(IWeapon weaponType,
int amount)
Move weapons in or out.
|
javafx.beans.property.IntegerProperty |
numberOfSailorsProperty() |
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 |
setLocation(javafx.geometry.Point2D location)
Set the location of 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(IPlayer player)
Define the owner of the ship
|
int |
unload(IWare ware,
int amount)
Unload the specified quantity of the ware.
|
void |
upgrade()
Upgrade the ship if it is upgradable
|
int getSize()
int getCapacity()
boolean isUpgradable()
void upgrade()
String getName()
void setName(String name)
name - 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(Object damage)
damage - void repair()
int getUpgradeSpaceReduction()
@Deprecated int getLoad()
javafx.beans.binding.IntegerBinding getLoadBinding()
AmountablePrice<IWare> getWare(IWare ware)
ware - boolean hasWeapons()
int getValue()
int getNumberOfSailors()
void setNumberOfSailors(int nbSailors)
nbSailors - .javafx.beans.property.IntegerProperty numberOfSailorsProperty()
int getMinNumberOfSailors()
int getMaxNumberOfSailors()
com.google.common.base.Optional<ICaptain> getCaptian()
void setCaptain(ICaptain captain)
captain - void move(IWeapon weaponType, int amount)
weaponType - SWORD | BOW | CROSSBOW | MUSKETamount - int getWeaponAmount(IWeapon weaponType)
weaponType - SWORD | BOW | CROSSBOW | MUSKETvoid addPassenger(IPerson passanger)
passanger - void leavePassanger()
com.google.common.base.Optional<IPerson> getPassenger()
javafx.geometry.Point2D getLocation()
void setLocation(javafx.geometry.Point2D location)
location - of the shipIPlayer getOwner()
boolean isPiratingShip()
EShipType getShipType()
void setOwner(IPlayer player)
player - EShipUpgrade getShipUpgradeLevel()
IShipWeaponsLocation getShipWeaponsLocation()
boolean isAvailable()
void setAvailable(boolean available)
available - int getOccupiedSpace()
void setOccupiedSpace(int space)
Copyright © 2011-2015 Sahits GmbH. All Rights Reserved.