numberOfSailorsPropertynumberOfSailorsPropertyfitness, name, shipUpgradeLevel| Constructor and Description |
|---|
Holk(EShipUpgrade upgradeLevel,
String name,
Properties shipConfiguration)
Constructor initializing the name and the upgrade level
|
Holk(String name,
Properties shipConfiguration)
Constructor for a Crayer without any upgrade
|
| Modifier and Type | Method and Description |
|---|---|
void |
damage(Object damage)
Damage the ship
|
int |
getDamage()
Retrieve the damage of the ship in percentage [0,100]
|
EShipType |
getShipType()
Retrieve the type of the ship.
|
void |
repair()
Repair the damage
|
addPassenger, clearLoadedWares, getCapacity, getLoad, getLoadBinding, getLoadedWares, getMaxNumberOfSailors, getNumberOfSailors, getOwner, getUpgradeSpaceReduction, getValue, getWare, getWeaponAmount, hasWeapons, isUpgradable, leavePassanger, load, move, numberOfSailorsProperty, setCaptain, setNumberOfSailors, unload, upgradeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPassenger, getCapacity, getCaptian, getLoad, getLoadBinding, getLoadedWares, getLocation, getMaxNumberOfSailors, getMinNumberOfSailors, getName, getNumberOfSailors, getOccupiedSpace, getOwner, getPassenger, getShipUpgradeLevel, getShipWeaponsLocation, getSize, getUpgradeSpaceReduction, getValue, getWare, getWeaponAmount, hasWeapons, isAvailable, isPiratingShip, isUpgradable, leavePassanger, load, move, numberOfSailorsProperty, setAvailable, setCaptain, setLocation, setName, setNumberOfSailors, setOccupiedSpace, setOwner, unload, upgradepublic Holk(EShipUpgrade upgradeLevel, String name, Properties shipConfiguration)
upgradeLevel - name - ships nameshipConfiguration - configuration propertiespublic Holk(String name, Properties shipConfiguration)
name - ships nameshipConfiguration - configuration propertiespublic int getDamage()
IShippublic void repair()
IShippublic EShipType getShipType()
IShipgetShipType in interface IShipCopyright © 2011-2015 Sahits GmbH. All Rights Reserved.