Class Enemy

All Implemented Interfaces:
Drawable, Health, Interactable

public class Enemy extends Fightable implements Health, Interactable
Enemy which is Interactable in the way, that we can damage him. He also has health so he is also healable.
  • Method Details

    • damage

      public void damage(int damage)
      Specified by:
      damage in interface Health
      Specified by:
      damage in class Fightable
    • heal

      public void heal(int healing)
      Specified by:
      heal in interface Health
      Specified by:
      heal in class Fightable
    • draw

      public void draw()
      Specified by:
      draw in interface Drawable
      Overrides:
      draw in class Character
    • interact

      public void interact()
      Description copied from interface: Interactable

      This is the implementation of interact we use to interact with all entities

      Specified by:
      interact in interface Interactable