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 = 30f;
28 return Math.max(0, 1f - diff / max);
49 return super.getAuroraColorForAngle(angle);
62 return super.containsPoint(point, radius);
81 tooltip.
addPara(
"The intense heat and radiation reduce the combat readiness of " +
82 "all ships in the magnetotail at a steady pace.", nextPad);
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)
float getAuroraAlphaMultForAngle(float angle)
boolean containsPoint(Vector2f point, float radius)
void createTooltip(TooltipMakerAPI tooltip, boolean expanded)
Color getAuroraColorForAngle(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()