Interface WeaponEntity
-
- All Known Implementing Classes:
AbstractWeaponEntity
public interface WeaponEntityWeapons implement this interface. This is required for example that AI can control weapons
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidabortAttack()doublecalculateBaseDamage()intcalculateCooldown()doublecalculateMaxDistance()doublecalculateMinDistance()booleancanAttack(AbstractCompositeEntity targetComposite, CoordI2 targetEntityPos)doublegetLastAccuracy()doublegetLastDistance()doublegetLastOutput()booleanisControlAll()voidrequestAttack(CoordI2 worldPos)Requests weapon to attackvoidrequestAttack(UUID targetCompositeEntityId, CoordI2 targetEntityPos)voidsetControlAll(boolean all)
-
-
-
Method Detail
-
canAttack
boolean canAttack(AbstractCompositeEntity targetComposite, CoordI2 targetEntityPos)
-
requestAttack
void requestAttack(CoordI2 worldPos)
Requests weapon to attack- Parameters:
worldPos- World position to attack. There has to be an entity at this position.
-
abortAttack
void abortAttack()
-
isControlAll
boolean isControlAll()
-
setControlAll
void setControlAll(boolean all)
-
calculateBaseDamage
double calculateBaseDamage()
-
calculateMinDistance
double calculateMinDistance()
-
calculateMaxDistance
double calculateMaxDistance()
-
calculateCooldown
int calculateCooldown()
-
getLastOutput
double getLastOutput()
-
getLastDistance
double getLastDistance()
-
getLastAccuracy
double getLastAccuracy()
-
-