addHealth method

int addHealth(
  1. int damage
)

Adds damage to the current Health of the character and returns the remaining health.

Implementation

int addHealth(int damage) {
  current += damage;
  return current;
}