api: Implement isInteractible

This commit is contained in:
Owain van Brakel
2020-05-30 10:26:29 +02:00
parent 0054731b5f
commit 41ee5f0df4
2 changed files with 13 additions and 3 deletions

View File

@@ -41,8 +41,8 @@ public interface NPCDefinition
/** /**
* The 5 menuops this NPC has when in world. Index 0 corresponds to * The 5 menuops this NPC has when in world. Index 0 corresponds to
* {@link MenuAction#NPC_FIRST_OPTION}, Index 2 to * {@link MenuOpcode#NPC_FIRST_OPTION}, Index 2 to
* {@link MenuAction#NPC_SECOND_OPTION} and so on. * {@link MenuOpcode#NPC_SECOND_OPTION} and so on.
*/ */
String[] getActions(); String[] getActions();
@@ -50,6 +50,12 @@ public interface NPCDefinition
boolean isFollower(); boolean isFollower();
/**
* NPC can be interacting with via menu options
* @return
*/
boolean isInteractible();
/** /**
* Gets whether the NPC is visible on the mini-map. * Gets whether the NPC is visible on the mini-map.
*/ */
@@ -92,4 +98,4 @@ public interface NPCDefinition
* Gets the displayed overhead icon of the NPC. * Gets the displayed overhead icon of the NPC.
*/ */
HeadIcon getOverheadIcon(); HeadIcon getOverheadIcon();
} }

View File

@@ -25,6 +25,10 @@ public interface RSNPCDefinition extends NPCDefinition
@Override @Override
boolean isFollower(); boolean isFollower();
@Import("isInteractable")
@Override
boolean isInteractible();
@Import("drawMapDot") @Import("drawMapDot")
@Override @Override
boolean isMinimapVisible(); boolean isMinimapVisible();