|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.sahits.game.openpatrician.model.ship.impl.Ship
ch.sahits.game.openpatrician.model.ship.impl.Snaikka
public class Snaikka
| Field Summary | |
|---|---|
private int |
size
Size in barrels |
| Fields inherited from class ch.sahits.game.openpatrician.model.ship.impl.Ship |
|---|
fitness, name, upgradeLevel |
| Constructor Summary | |
|---|---|
Snaikka(EShipUpgrade upgradeLevel,
String name,
int value)
Constructor initializing the name and the upgrade level |
|
Snaikka(String name,
int value)
Constructor for a Crayer without any upgrade |
|
| Method Summary | |
|---|---|
void |
damage(Object damage)
Damage the ship |
int |
getCapacity()
Available capacity of the ship, this represent the free storage in barrels |
int |
getDamage()
Retrieve the damage of the ship in percentage |
int |
getSize()
Total capacity of the ship in barrels |
int |
getUpgradeSpaceReduction()
Retrieve the reduction of the load capacity based on the upgrade level. |
void |
repair()
Repair the damage |
| Methods inherited from class ch.sahits.game.openpatrician.model.ship.impl.Ship |
|---|
clearLoadedWares, getLoad, getLoadedWares, getName, getValue, getWare, hasWeapons, isUpgradable, load, setName, unload, upgrade |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ch.sahits.game.openpatrician.model.ship.IShip |
|---|
getLoad, getLoadedWares, getName, getValue, getWare, hasWeapons, isUpgradable, load, setName, unload, upgrade |
| Field Detail |
|---|
private int size
| Constructor Detail |
|---|
public Snaikka(EShipUpgrade upgradeLevel,
String name,
int value)
upgradeLevel - name -
public Snaikka(String name,
int value)
name - | Method Detail |
|---|
public int getSize()
IShip
getSize in interface IShippublic int getDamage()
IShip
getDamage in interface IShippublic void damage(Object damage)
IShip
damage in interface IShippublic void repair()
IShip
repair in interface IShippublic int getCapacity()
IShip
getCapacity in interface IShippublic int getUpgradeSpaceReduction()
IShip
getUpgradeSpaceReduction in interface IShip
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||