1package com.fs.starfarer.api.impl.campaign.intel.bar.events;
3import com.fs.starfarer.api.Global;
4import com.fs.starfarer.api.impl.campaign.ids.Tags;
5import com.fs.starfarer.api.impl.campaign.intel.bar.PortsideBarEvent;
6import com.fs.starfarer.api.impl.campaign.missions.hub.HubMissionBarEventWrapper;
7import com.fs.starfarer.api.loading.BarEventSpec;
11 protected transient BarEventSpec
spec =
null;
43 if (
spec.isMission()) {
44 return new HubMissionBarEventWrapper(
specId);
46 return spec.createEvent();
50 return spec.getMinDur() + (
spec.getMaxDur() -
spec.getMinDur()) * (
float) Math.random();
54 return spec.getFreq();
58 return spec.getMinTimeout() + (
spec.getMaxTimeout() -
spec.getMinTimeout()) * (
float) Math.random();
62 return spec.getMinAcceptedTimeout() + (
spec.getMaxAcceptedTimeout() -
spec.getMinAcceptedTimeout()) * (
float) Math.random();
66 return spec.hasTag(Tags.MISSION_PRIORITY);
static SettingsAPI getSettings()
transient BarEventSpec spec
float getBarEventFrequencyWeight()
PortsideBarEvent createBarEvent()
float getBarEventAcceptedTimeoutDuration()
float getBarEventActiveDuration()
void setWasAutoAdded(boolean wasAutoAdded)
SpecBarEventCreator(String specId)
float getBarEventTimeoutDuration()
BarEventSpec getBarEventSpec(String id)