api: Implement isInteractible
This commit is contained in:
@@ -41,8 +41,8 @@ public interface NPCDefinition
|
||||
|
||||
/**
|
||||
* The 5 menuops this NPC has when in world. Index 0 corresponds to
|
||||
* {@link MenuAction#NPC_FIRST_OPTION}, Index 2 to
|
||||
* {@link MenuAction#NPC_SECOND_OPTION} and so on.
|
||||
* {@link MenuOpcode#NPC_FIRST_OPTION}, Index 2 to
|
||||
* {@link MenuOpcode#NPC_SECOND_OPTION} and so on.
|
||||
*/
|
||||
String[] getActions();
|
||||
|
||||
@@ -50,6 +50,12 @@ public interface NPCDefinition
|
||||
|
||||
boolean isFollower();
|
||||
|
||||
/**
|
||||
* NPC can be interacting with via menu options
|
||||
* @return
|
||||
*/
|
||||
boolean isInteractible();
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
HeadIcon getOverheadIcon();
|
||||
}
|
||||
}
|
||||
@@ -25,6 +25,10 @@ public interface RSNPCDefinition extends NPCDefinition
|
||||
@Override
|
||||
boolean isFollower();
|
||||
|
||||
@Import("isInteractable")
|
||||
@Override
|
||||
boolean isInteractible();
|
||||
|
||||
@Import("drawMapDot")
|
||||
@Override
|
||||
boolean isMinimapVisible();
|
||||
|
||||
Reference in New Issue
Block a user