Starsector API
Loading...
Searching...
No Matches
HITravelStage.java
Go to the documentation of this file.
1package com.fs.starfarer.api.impl.campaign.intel.inspection;
2
3import java.awt.Color;
4
5import com.fs.starfarer.api.campaign.SectorEntityToken;
6import com.fs.starfarer.api.impl.campaign.intel.raid.RaidIntel;
7import com.fs.starfarer.api.impl.campaign.intel.raid.TravelStage;
8import com.fs.starfarer.api.impl.campaign.intel.raid.RaidIntel.RaidStageStatus;
9import com.fs.starfarer.api.ui.TooltipMakerAPI;
10import com.fs.starfarer.api.util.Misc;
11
12public class HITravelStage extends TravelStage {
13
14 public HITravelStage(RaidIntel raid, SectorEntityToken from, SectorEntityToken to, boolean requireNearTarget) {
15 super(raid, from, to, requireNearTarget);
16 }
17
18 public void showStageInfo(TooltipMakerAPI info) {
19 int curr = intel.getCurrentStage();
20 int index = intel.getStageIndex(this);
21
22 Color h = Misc.getHighlightColor();
23 Color g = Misc.getGrayColor();
24 Color tc = Misc.getTextColor();
25 float pad = 3f;
26 float opad = 10f;
27
28 if (status == RaidStageStatus.FAILURE) {
29 info.addPara("The inspection task force has failed to successfully reach the " +
30 intel.getSystem().getNameWithLowercaseType() + ". The inspection is now over.", opad);
31 } else if (curr == index) {
32 info.addPara("The inspection task force is currently travelling to the " +
33 intel.getSystem().getNameWithLowercaseType() + ".", opad);
34 }
35 }
36}
37
38
39
HITravelStage(RaidIntel raid, SectorEntityToken from, SectorEntityToken to, boolean requireNearTarget)