1package com.fs.starfarer.api.impl.campaign.intel.misc;
3import java.util.ArrayList;
4import java.util.LinkedHashSet;
10import com.fs.starfarer.api.Global;
11import com.fs.starfarer.api.campaign.FactionSpecAPI;
12import com.fs.starfarer.api.fleet.FleetMemberAPI;
13import com.fs.starfarer.api.fleet.FleetMemberType;
14import com.fs.starfarer.api.ui.Alignment;
15import com.fs.starfarer.api.ui.SectorMapAPI;
16import com.fs.starfarer.api.ui.TooltipMakerAPI;
17import com.fs.starfarer.api.util.Misc;
40 String factions =
addedFactions.size() == 1 ?
"faction" :
"factions";
45 String variants =
addedVariants.size() == 1 ?
"variant" :
"variants";
67 info.
addPara(
"New simulator factions available. New factions "
68 +
"are are made available by encountering their fleets, or deserters from the faction, in battle.", opad);
88 info.
addPara(
"New simulator opponents available. New ships "
89 +
"are made available by encountering and destroying them in battle.", opad);
91 List<FleetMemberAPI> members =
new ArrayList<FleetMemberAPI>();
98 float iconSize = width / cols;
99 int rows = members.size() / cols;
100 if (rows * cols < members.size()) rows++;
127 Set<String> tags = super.getIntelTags(map);
132 return "Simulator Update";
static SettingsAPI getSettings()
static FactoryAPI getFactory()
static SectorAPI getSector()
void addLogTimestamp(TooltipMakerAPI info, Color tc, float opad)
void unindent(TooltipMakerAPI info)
void addDeleteButton(TooltipMakerAPI info, float width)
void bullet(TooltipMakerAPI info)
Set< String > getIntelTags(SectorMapAPI map)
void addBulletPoints(TooltipMakerAPI info, ListInfoMode mode, boolean isUpdate, Color tc, float initPad)
LinkedHashSet< String > addedFactions
LinkedHashSet< String > addedVariants
void createSmallDescription(TooltipMakerAPI info, float width, float height)
SimUpdateIntel(LinkedHashSet< String > addedFactions, LinkedHashSet< String > addedVariants)
static Color getTextColor()
static String ucFirst(String str)
static Color getBasePlayerColor()
static Color getGrayColor()
static Color getHighlightColor()
FleetMemberAPI createFleetMember(FleetMemberType type, String variantOrWingId)
String getSpriteName(String category, String id)
FactionSpecAPI getFactionSpec(String id)
IntelManagerAPI getIntelManager()
void addIntel(IntelInfoPlugin plugin)