Expose runescape click/boundingbox display mode

This commit is contained in:
SomeoneWithAnInternetConnection
2018-01-21 11:01:13 -05:00
committed by Adam
parent 9dcde75bdf
commit 74ae39258e
4 changed files with 126 additions and 1 deletions

View File

@@ -176,7 +176,6 @@ public interface Client extends GameEngine
List<Projectile> getProjectiles();
/**
* Play a sound effect at the player's current location.
* This is how UI, and player-generated (e.g. mining, woodcutting) sound effects are normally played
@@ -195,6 +194,45 @@ public interface Client extends GameEngine
*/
void playSoundEffect(int id, int x, int y, int range);
boolean getDrawBoundingBoxes2D();
/**
* When {@code shouldDraw} is true, a 2D bounding box will be drawn for all on-screen objects
*
* @param shouldDraw whether or not to draw 2D bounding boxes
*/
void setDrawBoundingBoxes2D(boolean shouldDraw);
boolean getDrawBoundingBoxes3D();
/**
* When {@code shouldDraw} is true, 3D bounding boxes will be drawn
* either for the object under the cursor, or every object on screen
* according to {@link #setBoundingBoxAlwaysOnMode(boolean) BoundingBoxAlwaysOnMode}
*
* @param shouldDraw whether or not to draw 3D bounding boxes
*/
void setDrawBoundingBoxes3D(boolean shouldDraw);
boolean getdrawObjectGeometry2D();
/**
* When {@code shouldDraw} is true, the clickbox geometry for the object under the cursor will be displayed
*
* @param shouldDraw whether or not to draw the clickbox geometry
*/
void setdrawObjectGeometry2D(boolean shouldDraw);
boolean getBoundingBoxAlwaysOnMode();
/**
* Changes how {@link #getDrawBoundingBoxes3D()} behaves when active.
* When {@code alwaysDrawBoxes} is true, 3D bounding boxes will be drawn.
* When false, a 3D bounding box will only be drawn for the object under the cursor
*
* @param alwaysDrawBoxes whether or not to draw every 3D bounding box, when 3D bounding boxes are enabled
*/
void setBoundingBoxAlwaysOnMode(boolean alwaysDrawBoxes);
BufferProvider getBufferProvider();