Interface IWeapon
-
- All Superinterfaces:
IAmountable,ITradable
- All Known Implementing Classes:
EWeapon
public interface IWeapon extends IAmountable, ITradable
This interface defines a weapon.- Author:
- Andi Hotz, (c) Sahits GmbH, 2011 Created on Dec 23, 2011
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublegetDamage()Get the inflicted damage on a structure in case of a hit.doublegetKill()Get the kill damage in case of a hit.intgetRange()Get the weapons rangedoublegetSize()Get the required storing space for this weapon.doublegetStrength()Get the strength of the weapon.-
Methods inherited from interface ch.sahits.game.openpatrician.model.product.ITradable
getBuyCurve, getMarketSaturationForBuying, getMarketSaturationForSelling, getMaxValueBuy, getMaxValueSell, getMinValueBuy, getMinValueSell, getSellCurve, name
-
-
-
-
Method Detail
-
getSize
double getSize()
Get the required storing space for this weapon.- Returns:
- storing space in barrels
-
getStrength
double getStrength()
Get the strength of the weapon.- Returns:
- weapon strength
-
getDamage
double getDamage()
Get the inflicted damage on a structure in case of a hit.- Returns:
- hit damage
-
getKill
double getKill()
Get the kill damage in case of a hit.- Returns:
- hit kill
-
getRange
int getRange()
Get the weapons range- Returns:
- weapon range
-
-