001package com.fs.starfarer.api.impl.campaign.terrain;
002
003import java.util.ArrayList;
004import java.util.List;
005
006import org.lwjgl.util.vector.Vector2f;
007
008import com.fs.starfarer.api.campaign.SectorEntityToken;
009import com.fs.starfarer.api.campaign.StarSystemAPI;
010
011public abstract class BaseHyperspaceAbyssPlugin implements HyperspaceAbyssPlugin {
012
013        public BaseHyperspaceAbyssPlugin() {
014                
015        }
016
017        public float getAbyssalDepth(SectorEntityToken entity) {
018                return getAbyssalDepth(entity.getLocation(), false);
019        }
020        public float getAbyssalDepth(Vector2f loc) {
021                return getAbyssalDepth(loc, false);
022        }
023        
024        public float getAbyssalDepth(SectorEntityToken entity, boolean uncapped) {
025                return getAbyssalDepth(entity.getLocation(), uncapped);
026        }
027        public abstract float getAbyssalDepth(Vector2f loc, boolean uncapped);
028        
029        
030        public boolean isInAbyss(Vector2f loc) {
031                return getAbyssalDepth(loc) > 0;
032        }
033
034        public boolean isInAbyss(SectorEntityToken entity) {
035                return isInAbyss(entity.getLocation());
036        }
037
038        public void advance(float amount) {
039                
040        }
041
042        public List<StarSystemAPI> getAbyssalSystems() {
043                return new ArrayList<StarSystemAPI>();
044        }
045        
046        
047        
048}
049
050
051
052
053