Starsector API
Loading...
Searching...
No Matches
BaseHyperspaceAbyssPlugin.java
Go to the documentation of this file.
1package com.fs.starfarer.api.impl.campaign.terrain;
2
3import java.util.ArrayList;
4import java.util.List;
5
6import org.lwjgl.util.vector.Vector2f;
7
8import com.fs.starfarer.api.campaign.SectorEntityToken;
9import com.fs.starfarer.api.campaign.StarSystemAPI;
10
11public abstract class BaseHyperspaceAbyssPlugin implements HyperspaceAbyssPlugin {
12
14
15 }
16
17 public float getAbyssalDepth(SectorEntityToken entity) {
18 return getAbyssalDepth(entity.getLocation(), false);
19 }
20 public float getAbyssalDepth(Vector2f loc) {
21 return getAbyssalDepth(loc, false);
22 }
23
24 public float getAbyssalDepth(SectorEntityToken entity, boolean uncapped) {
25 return getAbyssalDepth(entity.getLocation(), uncapped);
26 }
27 public abstract float getAbyssalDepth(Vector2f loc, boolean uncapped);
28
29
30 public boolean isInAbyss(Vector2f loc) {
31 return getAbyssalDepth(loc) > 0;
32 }
33
34 public boolean isInAbyss(SectorEntityToken entity) {
35 return isInAbyss(entity.getLocation());
36 }
37
38 public void advance(float amount) {
39
40 }
41
42 public List<StarSystemAPI> getAbyssalSystems() {
43 return new ArrayList<StarSystemAPI>();
44 }
45
46
47
48}
49
50
51
52
53
abstract float getAbyssalDepth(Vector2f loc, boolean uncapped)