theatre: Final fields
This commit is contained in:
@@ -54,18 +54,18 @@ public class MaidenHandler extends RoomHandler
|
|||||||
);
|
);
|
||||||
private static final Color TRANSPARENT = new Color(0, 0, 0, 0);
|
private static final Color TRANSPARENT = new Color(0, 0, 0, 0);
|
||||||
private static final Color FREEZE = new Color(0, 226, 255, 255);
|
private static final Color FREEZE = new Color(0, 226, 255, 255);
|
||||||
private List<WorldPoint> bloodThrows = new ArrayList<>();
|
private final List<WorldPoint> bloodThrows = new ArrayList<>();
|
||||||
private List<NPC> bloodSpawns = new ArrayList<>();
|
private final List<NPC> bloodSpawns = new ArrayList<>();
|
||||||
private List<WorldPoint> bloodSpawnLocation = new ArrayList<>();
|
private List<WorldPoint> bloodSpawnLocation = new ArrayList<>();
|
||||||
private List<WorldPoint> bloodSpawnTarget = new ArrayList<>();
|
private final List<WorldPoint> bloodSpawnTarget = new ArrayList<>();
|
||||||
private NPC maiden;
|
private NPC maiden;
|
||||||
private String nyloCall;
|
private String nyloCall;
|
||||||
private Set<Nylos> nylos = new HashSet<>();
|
private final Set<Nylos> nylos = new HashSet<>();
|
||||||
private List<NPC> healers = new ArrayList<>();
|
private final List<NPC> healers = new ArrayList<>();
|
||||||
private int healerCount = 0;
|
private int healerCount = 0;
|
||||||
private int wave = 1;
|
private int wave = 1;
|
||||||
private long startTime = 0;
|
private long startTime = 0;
|
||||||
private ModelOutlineRenderer modelOutline;
|
private final ModelOutlineRenderer modelOutline;
|
||||||
|
|
||||||
public MaidenHandler(final Client client, final TheatrePlugin plugin, final ModelOutlineRenderer modelOutline)
|
public MaidenHandler(final Client client, final TheatrePlugin plugin, final ModelOutlineRenderer modelOutline)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -39,11 +39,11 @@ public class SotetsegHandler extends RoomHandler
|
|||||||
private int playerY;
|
private int playerY;
|
||||||
@Getter(AccessLevel.PUBLIC)
|
@Getter(AccessLevel.PUBLIC)
|
||||||
private List<WorldPoint> redOverworld = new ArrayList<>();
|
private List<WorldPoint> redOverworld = new ArrayList<>();
|
||||||
private List<WorldPoint> blackOverworld = new ArrayList<>();
|
private final List<WorldPoint> blackOverworld = new ArrayList<>();
|
||||||
private List<WorldPoint> blackUnderworld = new ArrayList<>();
|
private final List<WorldPoint> blackUnderworld = new ArrayList<>();
|
||||||
private List<WorldPoint> redUnderworld = new ArrayList<>();
|
private final List<WorldPoint> redUnderworld = new ArrayList<>();
|
||||||
private List<Point> gridPath = new ArrayList<>();
|
private final List<Point> gridPath = new ArrayList<>();
|
||||||
private Map<Projectile, WorldPoint> soteyProjectiles = new HashMap<>();
|
private final Map<Projectile, WorldPoint> soteyProjectiles = new HashMap<>();
|
||||||
private NPC npc;
|
private NPC npc;
|
||||||
|
|
||||||
public SotetsegHandler(final Client client, final TheatrePlugin plugin)
|
public SotetsegHandler(final Client client, final TheatrePlugin plugin)
|
||||||
|
|||||||
@@ -34,8 +34,8 @@ public class NyloHandler extends RoomHandler
|
|||||||
|
|
||||||
public long startTime = 0L;
|
public long startTime = 0L;
|
||||||
int startTick = 0;
|
int startTick = 0;
|
||||||
ArrayList<NPC> waveSpawns = new ArrayList<>();
|
final ArrayList<NPC> waveSpawns = new ArrayList<>();
|
||||||
ArrayList<NPC> waveAgros = new ArrayList<>();
|
final ArrayList<NPC> waveAgros = new ArrayList<>();
|
||||||
@Getter(AccessLevel.PUBLIC)
|
@Getter(AccessLevel.PUBLIC)
|
||||||
private Map<NPC, Integer> pillars = new HashMap<>();
|
private Map<NPC, Integer> pillars = new HashMap<>();
|
||||||
@Getter(AccessLevel.PUBLIC)
|
@Getter(AccessLevel.PUBLIC)
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ class NyloOverlay extends Overlay
|
|||||||
private final TheatrePlugin plugin;
|
private final TheatrePlugin plugin;
|
||||||
private final PanelComponent panelComponent = new PanelComponent();
|
private final PanelComponent panelComponent = new PanelComponent();
|
||||||
|
|
||||||
private NyloHandler nylohandler;
|
private final NyloHandler nylohandler;
|
||||||
|
|
||||||
NyloOverlay(final Client client, final TheatrePlugin plugin, final NyloHandler nylohandler)
|
NyloOverlay(final Client client, final TheatrePlugin plugin, final NyloHandler nylohandler)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -46,12 +46,12 @@ public class NyloPredictor
|
|||||||
new Wave(new Nylocas(NylocasType.RANGE_260, Spawn.WEST), new Nylocas(NylocasType.MAGE_162, Spawn.SOUTH), new Nylocas(NylocasType.MELEE_162, Spawn.SOUTH), new Nylocas(NylocasType.MAGE_260, Spawn.EAST)),
|
new Wave(new Nylocas(NylocasType.RANGE_260, Spawn.WEST), new Nylocas(NylocasType.MAGE_162, Spawn.SOUTH), new Nylocas(NylocasType.MELEE_162, Spawn.SOUTH), new Nylocas(NylocasType.MAGE_260, Spawn.EAST)),
|
||||||
new Wave(new Nylocas(NylocasType.MELEE_162, Spawn.WEST), new Nylocas(NylocasType.RANGE_162, Spawn.WEST), new Nylocas(NylocasType.MAGE_162, Spawn.SOUTH), new Nylocas(NylocasType.MELEE_162, Spawn.SOUTH), new Nylocas(NylocasType.RANGE_162, Spawn.EAST), new Nylocas(NylocasType.MAGE_162, Spawn.EAST))
|
new Wave(new Nylocas(NylocasType.MELEE_162, Spawn.WEST), new Nylocas(NylocasType.RANGE_162, Spawn.WEST), new Nylocas(NylocasType.MAGE_162, Spawn.SOUTH), new Nylocas(NylocasType.MELEE_162, Spawn.SOUTH), new Nylocas(NylocasType.RANGE_162, Spawn.EAST), new Nylocas(NylocasType.MAGE_162, Spawn.EAST))
|
||||||
};
|
};
|
||||||
public Client client;
|
public final Client client;
|
||||||
int westBound = 50;
|
int westBound = 50;
|
||||||
int eastBound = 77;
|
int eastBound = 77;
|
||||||
int southBound = 42;
|
int southBound = 42;
|
||||||
private NyloHandler handler;
|
private final NyloHandler handler;
|
||||||
private Map<Nylocas, NPC> currentSpawns = new HashMap<>();
|
private final Map<Nylocas, NPC> currentSpawns = new HashMap<>();
|
||||||
private int currentIndex = -1;
|
private int currentIndex = -1;
|
||||||
|
|
||||||
NyloPredictor(Client client, NyloHandler handler)
|
NyloPredictor(Client client, NyloHandler handler)
|
||||||
@@ -451,8 +451,8 @@ public class NyloPredictor
|
|||||||
public static class Nylocas
|
public static class Nylocas
|
||||||
{
|
{
|
||||||
|
|
||||||
private NylocasType type;
|
private final NylocasType type;
|
||||||
private Spawn spawn;
|
private final Spawn spawn;
|
||||||
|
|
||||||
public Nylocas(NylocasType type, Spawn spawn)
|
public Nylocas(NylocasType type, Spawn spawn)
|
||||||
{
|
{
|
||||||
@@ -486,7 +486,7 @@ public class NyloPredictor
|
|||||||
public static class Wave
|
public static class Wave
|
||||||
{
|
{
|
||||||
|
|
||||||
private Nylocas[] spawns;
|
private final Nylocas[] spawns;
|
||||||
|
|
||||||
public Wave(Nylocas... nylocas)
|
public Wave(Nylocas... nylocas)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,8 +16,8 @@ import net.runelite.client.ui.overlay.components.table.TableComponent;
|
|||||||
|
|
||||||
public class XarpusCounter extends Overlay
|
public class XarpusCounter extends Overlay
|
||||||
{
|
{
|
||||||
private PanelComponent panelComponent = new PanelComponent();
|
private final PanelComponent panelComponent = new PanelComponent();
|
||||||
private XarpusHandler xarpusHandler;
|
private final XarpusHandler xarpusHandler;
|
||||||
|
|
||||||
XarpusCounter(final TheatrePlugin plugin, final XarpusHandler xarpushandler)
|
XarpusCounter(final TheatrePlugin plugin, final XarpusHandler xarpushandler)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user