Show opponents hp in menu, your target colored, targeting you *

This commit is contained in:
Lucwousin
2019-10-24 12:01:46 +02:00
parent e5d259d56e
commit e2f8f0af32
8 changed files with 441 additions and 83 deletions

View File

@@ -64,8 +64,11 @@ public interface Actor extends Entity, Locatable
* </ul>
*
* @return the actor, null if no interaction is occurring
*
* (getRSInteracting returns the npc/player index, useful for menus)
*/
Actor getInteracting();
int getRSInteracting();
/**
* Gets the health ratio of the actor.

View File

@@ -341,9 +341,12 @@ public interface Client extends GameShell
* Gets the logged in player instance.
*
* @return the logged in player
*
* (getLocalPlayerIndex returns the local index, useful for menus/interacting)
*/
@Nullable
Player getLocalPlayer();
int getLocalPlayerIndex();
/**
* Gets the item composition corresponding to an items ID.