Refactor Safespot

This commit is contained in:
Scott Burns
2019-05-16 01:15:53 +02:00
parent b7e7395a11
commit 82e76a5ccb
2 changed files with 11 additions and 8 deletions

View File

@@ -40,16 +40,18 @@ import net.runelite.client.ui.overlay.OverlayManager;
) )
public class SafeSpotPlugin extends Plugin public class SafeSpotPlugin extends Plugin
{ {
@Inject @Inject
private Client client; private Client client;
@Inject @Inject
OverlayManager overlayManager; OverlayManager overlayManager;
@Inject @Inject
private SafeSpotConfig config; private SafeSpotConfig config;
@Getter @Getter
private ArrayList<Tile> safeSpotList; private ArrayList<Tile> safeSpotList;
@Getter @Getter
private boolean safeSpotsRenderable = false; private boolean safeSpotsRenderable = false;
@@ -132,6 +134,7 @@ public class SafeSpotPlugin extends Plugin
/** /**
* The ArrayList of 1-way safe spots * The ArrayList of 1-way safe spots
*
* @param actor - The Actor that the tiles are a safe spot against * @param actor - The Actor that the tiles are a safe spot against
* @param worldPoints - Worldpoints in the current scene * @param worldPoints - Worldpoints in the current scene
* @return an ArrayList of Tiles where current player can attack actor but actor cannot attack local player * @return an ArrayList of Tiles where current player can attack actor but actor cannot attack local player