@Override
	public void paint(Graphics g) {

		// the healthbar
		g.setColor(Color.BLACK);
		g.drawRect(x + 3, y - 10, 20, 5);
		g.setColor(Color.RED);
		g.fillRect(x + 4, y - 9, 19, 4);
		g.setColor(Color.GREEN);
		g.fillRect(x + 4, y - 9,
				(int) (((enemy.getHP() * 1.0) / (enemy.defHP * 1.0)) * 20) - 1,
				4);

		// if the enemy is taking damage show that image
		if (takingDamage) {
			if (getEnemy() instanceof Hobbit)
				g.drawImage(hobbitDamage, x, y, null);
			else if (getEnemy() instanceof Dwarf)
				g.drawImage(dwarfDamage, x, y, null);
			else if (getEnemy() instanceof Elf)
				g.drawImage(elfDamage, x, y, null);
			else if (getEnemy() instanceof Human)
				g.drawImage(humanDamage, x, y, null);
			takingDamage = false;
		} else {
			//else show the normal
			if (getEnemy() instanceof Hobbit)
				g.drawImage(hobbit, x, y, null);
			else if (getEnemy() instanceof Dwarf)
				g.drawImage(dwarf, x, y, null);
			else if (getEnemy() instanceof Elf)
				g.drawImage(elf, x, y, null);
			else if (getEnemy() instanceof Human)
				g.drawImage(human, x, y, null);
		}
	}