1package com.fs.starfarer.api.impl.campaign.terrain;
5import org.lwjgl.util.vector.Vector2f;
7import com.fs.starfarer.api.Global;
8import com.fs.starfarer.api.campaign.PlanetAPI;
9import com.fs.starfarer.api.campaign.SectorEntityToken;
10import com.fs.starfarer.api.loading.Description.Type;
11import com.fs.starfarer.api.ui.Alignment;
12import com.fs.starfarer.api.ui.TooltipMakerAPI;
13import com.fs.starfarer.api.util.Misc;
17 public static final float ARC = 100f;
27 return Math.max(0, 1f - diff / max);
49 return super.getAuroraColorForAngle(angle);
61 return super.containsPoint(point, radius);
80 tooltip.
addPara(
"The intense heat and radiation reduce the combat readiness of " +
81 "all ships in the magnetotail at a steady pace.", nextPad);
82 tooltip.
addPara(
"The ionized gas being ejected from the atmosphere makes the planet difficult to approach.", pad);
86 tooltip.
addPara(
"Reduces the peak performance time of ships and increases the rate of combat readiness degradation in protracted engagements.", small);
static SettingsAPI getSettings()
Color getColorForAngle(Color baseColor, float angle)
boolean isInActiveFlareArc(Vector2f point)
Color getAuroraColorForAngle(float angle)
void createTooltip(TooltipMakerAPI tooltip, boolean expanded)
boolean containsPoint(Vector2f point, float radius)
float getAuroraAlphaMultForAngle(float angle)
FlareManager flareManager
static Color setAlpha(Color color, int alpha)
static float getAngleDiff(float from, float to)
static boolean isInArc(float direction, float arc, Vector2f from, Vector2f to)
static float getAngleInDegrees(Vector2f v)
Description getDescription(String id, Type type)
SectorEntityToken getLightSource()