rl-api, rl-client: rename getHealth to getHealthScale
This commit is contained in:
@@ -69,21 +69,22 @@ public interface Actor extends Renderable
|
||||
Actor getInteracting();
|
||||
|
||||
/**
|
||||
* Gets the health ratio of the actor.
|
||||
* <p>
|
||||
* The ratio is the number of green bars in the overhead
|
||||
* HP display.
|
||||
* Gets the health of the actor in {@link #getHealthScale()} units.
|
||||
*
|
||||
* @return the health ratio
|
||||
* The server does not transmit actors' real health, only this value
|
||||
* between zero and {@link #getHealthScale()}. Some actors may be
|
||||
* missing this info, in which case -1 is returned.
|
||||
*/
|
||||
int getHealthRatio();
|
||||
|
||||
/**
|
||||
* Gets the health of the actor.
|
||||
* Gets the maximum value {@link #getHealthRatio()} can return
|
||||
*
|
||||
* @return the health
|
||||
* For actors with the default size health bar this is 30, but
|
||||
* for bosses with a larger health bar this can be a larger number.
|
||||
* Some actors may be missing this info, in which case -1 is returned.
|
||||
*/
|
||||
int getHealth();
|
||||
int getHealthScale();
|
||||
|
||||
/**
|
||||
* Gets the server-side location of the actor.
|
||||
|
||||
Reference in New Issue
Block a user