: number Current health points. Setting it to a lower or higher value will trigger onHurt() and onHeal().
Setting it to a value greater than maxHP will set it to maxHP.
Setting it to a value less than 0 will set it to 0 and trigger onDeath().
(action: (deltaHP?: number) => void): KEventController Register an event that runs when the hp is lowered.
(action: (deltaHP?: number) => void): KEventController Register an event that runs when the hp is increased.
(action: () => void): KEventController Register an event that runs when object's HP becomes zero.