Refactor Safespot
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user