Starsector API
Loading...
Searching...
No Matches
HostileActivityFactor.java
Go to the documentation of this file.
1package com.fs.starfarer.api.impl.campaign.intel.events;
2
3import java.awt.Color;
4import java.util.Random;
5
6import com.fs.starfarer.api.campaign.CampaignFleetAPI;
7import com.fs.starfarer.api.campaign.StarSystemAPI;
8import com.fs.starfarer.api.campaign.comm.IntelInfoPlugin.ListInfoMode;
9import com.fs.starfarer.api.impl.campaign.intel.events.BaseEventIntel.EventStageData;
10import com.fs.starfarer.api.impl.campaign.intel.events.HostileActivityEventIntel.HAERandomEventData;
11import com.fs.starfarer.api.ui.TooltipMakerAPI;
12import com.fs.starfarer.api.ui.TooltipMakerAPI.TooltipCreator;
13
14public interface HostileActivityFactor {
15
16 String getId();
17
18 String getNameForThreatList(boolean first);
20
21 float getEffectMagnitude(StarSystemAPI system);
22 int getMaxNumFleets(StarSystemAPI system);
23 float getStayInHyperProbability(StarSystemAPI system);
24 float getSpawnInHyperProbability(StarSystemAPI system);
25 float getSpawnFrequency(StarSystemAPI system);
26
27 CampaignFleetAPI createFleet(StarSystemAPI system, Random random);
28
29 void setRandomizedStageSeed(long seed);
30 float getEventFrequency(HostileActivityEventIntel intel, EventStageData stage);
31 void rollEvent(HostileActivityEventIntel intel, EventStageData stage);
32 void addBulletPointForEvent(HostileActivityEventIntel intel, EventStageData stage,
33 TooltipMakerAPI info, ListInfoMode mode, boolean isUpdate,
34 Color tc, float initPad);
35
36 void addStageDescriptionForEvent(HostileActivityEventIntel intel, EventStageData stage, TooltipMakerAPI info);
37
38 String getEventStageIcon(HostileActivityEventIntel intel, EventStageData stage);
39 String getEventStageSound(HAERandomEventData data);
40
41 TooltipCreator getStageTooltipImpl(HostileActivityEventIntel intel, EventStageData stage);
42
43 void resetEvent(HostileActivityEventIntel intel, EventStageData stage);
44
45 void addBulletPointForEventReset(HostileActivityEventIntel intel, EventStageData stage, TooltipMakerAPI info,
46 ListInfoMode mode, boolean isUpdate, Color tc, float initPad);
47
48 boolean fireEvent(HostileActivityEventIntel intel, EventStageData stage);
49}
String getEventStageIcon(HostileActivityEventIntel intel, EventStageData stage)
boolean fireEvent(HostileActivityEventIntel intel, EventStageData stage)
void addStageDescriptionForEvent(HostileActivityEventIntel intel, EventStageData stage, TooltipMakerAPI info)
void addBulletPointForEvent(HostileActivityEventIntel intel, EventStageData stage, TooltipMakerAPI info, ListInfoMode mode, boolean isUpdate, Color tc, float initPad)
CampaignFleetAPI createFleet(StarSystemAPI system, Random random)
void addBulletPointForEventReset(HostileActivityEventIntel intel, EventStageData stage, TooltipMakerAPI info, ListInfoMode mode, boolean isUpdate, Color tc, float initPad)
TooltipCreator getStageTooltipImpl(HostileActivityEventIntel intel, EventStageData stage)
void rollEvent(HostileActivityEventIntel intel, EventStageData stage)
float getEventFrequency(HostileActivityEventIntel intel, EventStageData stage)
void resetEvent(HostileActivityEventIntel intel, EventStageData stage)