4package com.fs.starfarer.api.impl.campaign.shared;
6import java.util.ArrayList;
7import java.util.HashSet;
8import java.util.LinkedHashMap;
13import com.fs.starfarer.api.Global;
14import com.fs.starfarer.api.campaign.SectorAPI;
15import com.fs.starfarer.api.campaign.econ.MonthlyReport;
16import com.fs.starfarer.api.impl.campaign.CoreScript;
17import com.fs.starfarer.api.util.TimeoutTracker;
26 public static class UniqueEncounterData {
27 public List<String> interactedWith =
new ArrayList<String>();
28 public List<String> historianBlurbsShown =
new ArrayList<String>();
30 public boolean wasInteractedWith(String
id) {
31 return interactedWith.contains(
id);
34 public void setWasInteractedWith(String
id) {
35 interactedWith.add(
id);
38 protected Object readResolve() {
39 if (historianBlurbsShown ==
null) {
40 historianBlurbsShown =
new ArrayList<String>();
126 if (personBountyEventData ==
null) {
136 return personBountyEventData;
196 if (tracker ==
null) {
static SectorAPI getSector()
static final String SHARED_DATA_KEY
TimeoutTracker< String > getStarSystemCustomsTimeout(String factionId)
void setCurrentReport(MonthlyReport currentReport)
float getPlayerPreLosingBattleCrew()
void setPlayerLosingBattleTimestamp(long playerLosingBattleTimestamp)
MonthlyReport getPreviousReport()
TimeoutTracker< String > getMarketsThatSentTradeFleet()
Set< String > getMarketsWithoutTradeFleetSpawn()
void setPlayerPreLosingBattleFP(float playerPreLosingBattleFP)
long playerLosingBattleTimestamp
void advance(float amount)
PlayerActivityTracker getPlayerActivityTracker()
Set< String > marketsWithoutTradeFleetSpawn
float playerPreLosingBattleFP
long getPlayerLosingBattleTimestamp()
PlayerActivityTracker playerActivityTracker
MonthlyReport previousReport
UniqueEncounterData uniqueEncounterData
TimeoutTracker< String > marketsThatSentTradeFleet
UniqueEncounterData getUniqueEncounterData()
PersonBountyEventData getPersonBountyEventData()
TimeoutTracker< String > getMarketsThatSentRelief()
void setPreviousReport(MonthlyReport previousReport)
void setPlayerPreLosingBattleCrew(float playerPreLosingBattleCrew)
static SharedData getData()
MonthlyReport currentReport
float playerPreLosingBattleCrew
MonthlyReport getCurrentReport()
void resetCustomsTimeouts()
TimeoutTracker< String > marketsThatSentRelief
Map< String, TimeoutTracker< String > > starSystemCustomsTimeout
float getPlayerPreLosingBattleFP()
float convertToDays(float realSeconds)
Map< String, Object > getPersistentData()
CampaignClockAPI getClock()