Interface WeaponEntity

  • All Known Implementing Classes:
    AbstractWeaponEntity

    public interface WeaponEntity
    Weapons implement this interface. This is required for example that AI can control weapons
    • Method Detail

      • requestAttack

        void requestAttack​(CoordI2 worldPos)
        Requests weapon to attack
        Parameters:
        worldPos - World position to attack. There has to be an entity at this position.
      • requestAttack

        void requestAttack​(UUID targetCompositeEntityId,
                           CoordI2 targetEntityPos)
      • 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()