Class BaseHubMission
java.lang.Object
com.fs.starfarer.api.impl.campaign.intel.BaseIntelPlugin
com.fs.starfarer.api.impl.campaign.missions.hub.BaseHubMission
- All Implemented Interfaces:
IntelInfoPlugin
,EveryFrameScript
,CommRelayEntityPlugin.CommSnifferReadableIntel
,HubMission
,CallEvent.CallableEvent
- Direct Known Subclasses:
HubMissionWithTriggers
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static interface
static class
static interface
static enum
static class
static class
static class
static class
static enum
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static enum
static class
static class
static class
static class
static class
static class
static class
static class
static class
Nested classes/interfaces inherited from interface com.fs.starfarer.api.campaign.comm.IntelInfoPlugin
IntelInfoPlugin.ArrowData, IntelInfoPlugin.IntelSortTier, IntelInfoPlugin.ListInfoMode, IntelInfoPlugin.TableRowClickData
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Object
protected boolean
protected Boolean
protected String
static String
protected CargoAPI
protected CargoAPI
protected List<BaseHubMission.Abortable>
protected String
protected List<BaseHubMission.StageConnection>
protected HubMissionCreator
protected Integer
protected Object
static float
static float
static float
static float
static float
static float
protected Boolean
protected boolean
protected float
static String
static int
protected List<BaseHubMission.FlagData>
protected Random
protected String
protected FullName.Gender
protected PersonImportance
protected String
protected String
protected String
protected String[]
protected String
static float
protected MissionHub
protected String
protected MemoryAPI
protected boolean
protected Boolean
protected Color
protected String
static String
protected RepLevel
protected RepLevel
protected PersonAPI
protected List<BaseHubMission.PotentialContactData>
protected float
static String
protected Float
protected Float
protected Float
protected Float
protected BaseHubMission.HubMissionResult
protected RepLevel
protected RepLevel
protected float
protected IntelInfoPlugin.IntelSortTier
protected LinkedHashMap<Object,
BaseHubMission.StageData> protected Boolean
protected Object
protected BaseHubMission.TimeLimitData
protected IntervalUtil
protected List<MissionTrigger>
protected Integer
Fields inherited from class com.fs.starfarer.api.impl.campaign.intel.BaseIntelPlugin
BULLET, BUTTON_DELETE, ended, ending, endingTimeRemaining, forceAdd, hidden, important, INDENT, listInfoParam, neverClicked, postingLocation, postingRangeLY, tagsForSort, timestamp
Fields inherited from interface com.fs.starfarer.api.campaign.comm.IntelInfoPlugin
LIST_ITEM_TEXT_WIDTH, NEW_DAYS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
abort()
void
accept
(InteractionDialogAPI dialog, Map<String, MemoryAPI> memoryMap) void
acceptImpl
(InteractionDialogAPI dialog, Map<String, MemoryAPI> memoryMap) protected void
addAbandonButton
(TooltipMakerAPI info, float width) protected void
addAbandonButton
(TooltipMakerAPI info, float width, String abandon) void
addBombardmentInfo
(MarketAPI market, TooltipMakerAPI info, float pad) protected void
protected void
addBulletPointsPost
(TooltipMakerAPI info, Color tc, float initPad, IntelInfoPlugin.ListInfoMode mode) protected void
addBulletPointsPre
(TooltipMakerAPI info, Color tc, float initPad, IntelInfoPlugin.ListInfoMode mode) void
addCustomRaidInfo
(int defenderStrength, MarketCMD.RaidDangerLevel danger, TooltipMakerAPI info, float pad) void
addCustomRaidInfo
(MarketAPI market, MarketCMD.RaidDangerLevel danger, TooltipMakerAPI info, float pad) void
addDescriptionForCurrentStage
(TooltipMakerAPI info, float width, float height) void
addDescriptionForNonEndStage
(TooltipMakerAPI info, float width, float height) void
addDisruptRaidInfo
(MarketAPI market, Industry industry, int daysRequired, TooltipMakerAPI info, float pad) void
addFailureStages
(Object... ids) void
addFleetDefeatTrigger
(CampaignFleetAPI fleet, String trigger, boolean permanent) boolean
addNextStepText
(TooltipMakerAPI info, Color tc, float pad) void
addNoPenaltyFailureStages
(Object... ids) void
addOnAcceptCommodity
(String commodityId, int quantity) void
addOnAcceptFighterLPCDrop
(String wingId, int quantity) void
addOnAcceptHullmodDrop
(String hullmodId) void
addOnAcceptSpecialItemDrop
(String itemId, String data) void
addOnAcceptWeaponDrop
(String weaponId, int quantity) void
addOnSuccessCommodity
(String commodityId, int quantity) void
addOnSuccessFighterLPCDrop
(String wingId, int quantity) void
addOnSuccessHullmodDrop
(String hullmodId) void
addOnSuccessSpecialItemDrop
(String itemId, String data) void
addOnSuccessWeaponDrop
(String weaponId, int quantity) protected void
protected void
void
addSpecialItemDropOnlyUseInAcceptImplNotUndoneOnAbort
(SectorEntityToken entity, SpecialItemData data) static void
addStandardMarketDesc
(String prefix, MarketAPI market, TooltipMakerAPI info, float pad) void
addSuccessStages
(Object... ids) void
protected void
adjustRep
(TextPanelAPI textPanel, BaseHubMission.HubMissionResult result, CoreReputationPlugin.RepActions action) protected void
advanceImpl
(float amount) void
assignShipName
(FleetMemberAPI member, String factionId) void
buttonPressConfirmed
(Object buttonId, IntelUIAPI ui) protected boolean
callAction
(String action, String ruleId, InteractionDialogAPI dialog, List<Misc.Token> params, Map<String, MemoryAPI> memoryMap) boolean
callEvent
(String ruleId, InteractionDialogAPI dialog, List<Misc.Token> params, Map<String, MemoryAPI> memoryMap) boolean
void
checkStageChangesAndTriggers
(InteractionDialogAPI dialog, Map<String, MemoryAPI> memoryMap) void
connectWithCustomCondition
(Object from, Object to, BaseHubMission.ConditionChecker custom) void
connectWithDaysElapsed
(Object from, Object to, float days) void
connectWithEnteredLocation
(Object from, Object to, LocationAPI location) void
connectWithEntityNotAlive
(Object from, Object to, SectorEntityToken entity) void
connectWithGlobalFlag
(Object from, Object to, String flag) void
connectWithHostilitiesEnded
(Object from, Object to, PersonAPI person, MarketAPI market) void
connectWithHostilitiesStarted
(Object from, Object to, PersonAPI person, MarketAPI market) void
connectWithInRangeOfCommRelay
(Object from, Object to) void
connectWithInRangeOfEntity
(Object from, Object to, SectorEntityToken entity, float range) void
connectWithMarketDecivilized
(Object from, Object to, MarketAPI market) void
connectWithMemoryFlag
(Object from, Object to, HasMemory withMemory, String flag) void
connectWithMemoryFlag
(Object from, Object to, MemoryAPI memory, String flag) void
connectWithWithinHyperspaceRange
(Object from, Object to, SectorEntityToken entity, float rangeLY) void
connectWithWithinHyperspaceRange
(Object from, Object to, SectorEntityToken entity, float rangeLY, boolean requirePlayerInHyperspace) protected abstract boolean
void
createAndAbortIfFailed
(MarketAPI market, boolean barEvent) void
createConfirmationPrompt
(Object buttonId, TooltipMakerAPI prompt) void
createGiver
(MarketAPI market, boolean addToCommDirectory, boolean removeOnMissionOver) void
void
createSmallDescription
(TooltipMakerAPI info, float width, float height) boolean
doesButtonHaveConfirmDialog
(Object buttonId) protected void
protected void
protected void
endFailure
(InteractionDialogAPI dialog, Map<String, MemoryAPI> memoryMap) protected void
endFailureImpl
(InteractionDialogAPI dialog, Map<String, MemoryAPI> memoryMap) protected void
endSuccess
(InteractionDialogAPI dialog, Map<String, MemoryAPI> memoryMap) protected void
endSuccessImpl
(InteractionDialogAPI dialog, Map<String, MemoryAPI> memoryMap) protected void
ensurePersonIsInCommDirectory
(MarketAPI market, PersonAPI person) protected PersonAPI
findOrCreateCriminal
(MarketAPI market, boolean cleanUpOnMissionOverIfWasNewPerson) protected PersonAPI
findOrCreateCriminalTrader
(MarketAPI market, boolean cleanUpOnMissionOverIfWasNewPerson) void
findOrCreateGiver
(MarketAPI market, boolean addToCommDirectory, boolean cleanUpOnMissionOverIfWasNewPerson) protected PersonAPI
findOrCreatePerson
(String factionId, MarketAPI market, boolean cleanUpOnMissionOverIfWasNewPerson, String defaultRank, String... posts) protected PersonAPI
findOrCreateTrader
(String factionId, MarketAPI market, boolean cleanUpOnMissionOverIfWasNewPerson) generateLocation
(String entityId, BaseHubMission.EntityLocationType locType, SectorEntityToken param, LocationAPI system) void
int
genRoundNumber
(int min, int max) static int
getAdjustedMarinesRequired
(int marinesRequired) float
int
getBombardmentFuel
(MarketAPI market) int
getDayOrDays
(float days) int
getDistanceLY
(MarketAPI market) int
getDistanceLY
(SectorEntityToken entity) int
getDistanceLY
(StarSystemAPI system) float
int
getFuel
(SectorEntityToken entity, boolean bothWays) getGoTalkToPersonText
(PersonAPI person) getGoToMarketText
(MarketAPI market) getGoToPlanetTextPre
(PlanetAPI planet) getGoToPlanetTextShort
(PlanetAPI planet) getGoToSystemTextShort
(StarSystemAPI system) getHub()
getIcon()
40x40, no icon if null.20x20, if null will use default.getIntelTags
(SectorMapAPI map) Method NEEDS to handle map being null gracefully.getLocated
(SectorEntityToken entity) getLocatedUnclear
(SectorEntityToken entity) getMapLocation
(SectorMapAPI map, Object currentStage) getMapLocationFor
(SectorEntityToken entity) int
getMarinesRequiredForCustomDefenderStrength
(int defenderStrength, MarketCMD.RaidDangerLevel danger) int
getMarinesRequiredForCustomObjective
(MarketAPI market, MarketCMD.RaidDangerLevel danger) int
getMarinesRequiredToDisrupt
(MarketAPI market, Industry industry, int daysRequired) static int
float
float
protected String
protected String
getName()
protected float
getPersonAtMarketPost
(MarketAPI market, String... postIds) float
float
float
float
float
getReturnText
(MarketAPI market) getReturnText
(String locationName) getReturnTextShort
(MarketAPI market) getReturnTextShort
(String locationName) int
getRewardBonusForMarines
(int marines) float
float
static int
getRoundNumber
(float num) static String
getTerrainName
(CampaignTerrainAPI terrain) static String
getTerrainNameAOrAn
(CampaignTerrainAPI terrain) static String
getTerrainType
(CampaignTerrainAPI terrain) static String
getTerrainTypeAOrAn
(CampaignTerrainAPI terrain) protected String
static float
getUnits
(float lightYears) protected String
getWithoutArticle
(String item) int
static boolean
hasSpecialName
(CampaignTerrainAPI terrain) protected boolean
boolean
static boolean
protected boolean
isFailed()
boolean
boolean
isOkToOfferMissionRequiringMarines
(int marines) protected boolean
void
makeDiscoverable
(SectorEntityToken entity, float range, float xp) void
makeImportant
(MarketAPI market, String flag, Enum... stages) void
makeImportant
(MemoryAPI memory, String flag, BaseHubMission.MapLocationType type, Object personOrEntityOrMarket, Enum... stages) void
makeImportant
(SectorEntityToken entity, String flag, Enum... stages) void
makeImportant
(PersonAPI person, String flag, Enum... stages) void
makeImportantDoNotShowAsIntelMapLocation
(MarketAPI market, String flag, Enum... stages) void
makeImportantDoNotShowAsIntelMapLocation
(SectorEntityToken entity, String flag, Enum... stages) void
makeImportantDoNotShowAsIntelMapLocation
(PersonAPI person, String flag, Enum... stages) void
void
makePersonRequired
(PersonAPI person) void
makePrimaryObjective
(Object personOrMarketOrEntity) void
makeUnimportant
(MarketAPI market) void
makeUnimportant
(MarketAPI market, Enum... stages) void
makeUnimportant
(MemoryAPI memory, Object personOrEntityOrMarket) void
makeUnimportant
(MemoryAPI memory, Object personOrEntityOrMarket, Enum... stages) void
makeUnimportant
(SectorEntityToken entity) void
makeUnimportant
(SectorEntityToken entity, Enum... stages) void
makeUnimportant
(PersonAPI person) void
makeUnimportant
(PersonAPI person, Enum... stages) protected void
pickOneObject
(List options) static boolean
playerHasEnough
(String comId, int quantity) static boolean
playerLevelIsAtLeast
(int level) static boolean
protected void
removeImportanceChanges
(MemoryAPI memory) protected void
removeMemoryFlagChanges
(MemoryAPI memory, String flag) boolean
rollProbability
(float p) protected void
void
sendUpdateForNextStep
(String listInfoParam, TextPanelAPI textPanel) void
sendUpdateToTextPanel
(String listInfoParam, TextPanelAPI textPanel) void
void
setAbandonStage
(Object abandonStage) void
void
setCreator
(HubMissionCreator creator) void
setCreditReward
(int min, int max) void
setCreditReward
(int min, int max, boolean withMult) void
void
setCreditReward
(BaseHubMission.CreditReward reward, int marketSize) void
setCreditReward
(Integer creditReward) void
setCreditRewardApplyRelMult
(Integer creditReward) void
setCreditRewardWithBonus
(BaseHubMission.CreditReward reward, int bonus) void
setCurrentStage
(Object next, InteractionDialogAPI dialog, Map<String, MemoryAPI> memoryMap) void
boolean
setEntityMissionRef
(SectorEntityToken entity, String key) boolean
setFactionMissionRef
(FactionAPI faction, String key) void
void
void
void
setFlag
(SectorEntityToken entity, String flag, boolean permanent) void
setFlag
(SectorEntityToken entity, String flag, boolean permanent, Object... stages) void
void
void
setFlagWithReason
(SectorEntityToken entity, String flag, boolean permanent) void
setGenRandom
(Random random) void
setGiverFaction
(String factionId) void
setGiverImportance
(PersonImportance giverImportance) void
void
setGiverIsPotentialContactOnSuccess
(float probability) void
setGiverPortrait
(String giverPortrait) void
setGiverPost
(String giverPost) void
setGiverRank
(String giverRank) void
setGiverTags
(String... giverTags) void
setGiverVoice
(String giverVoice) void
setGlobalFlag
(String flag, Object value, Object... stages) boolean
setGlobalReference
(String key) boolean
setGlobalReference
(String refKey, String inProgressFlag) void
setHub
(MissionHub hub) void
setIconName
(String iconName) void
setIconName
(String category, String id) void
setMapMarkerNameColor
(Color mapMarkerColor) void
boolean
setMarketMissionRef
(MarketAPI market, String key) void
setMemoryValuePermanent
(HasMemory withMemory, String key, Object value) void
setMissionId
(String missionId) void
void
void
setMusic
(SectorEntityToken entity, String musicSetId, Object... stages) void
setMusic
(StarSystemAPI system, String musicSetId, Object... stages) void
void
void
void
void
setPenaltyLimitFaction
(RepLevel penaltyLimitFaction) void
setPenaltyLimitPerson
(RepLevel penaltyLimitPerson) void
void
void
setPersonIsPotentialContactOnSuccess
(PersonAPI person, float probability) boolean
setPersonMissionRef
(PersonAPI person, String key) void
setPersonOverride
(PersonAPI personOverride) protected void
setPersonTokens
(MemoryAPI mem) void
setQuality
(float quality) void
setRepChanges
(float repRewardPerson, float repPenaltyPerson, float repRewardFaction, float repPenaltyFaction) void
void
void
void
void
void
void
void
setRepPenaltyFaction
(Float repPenaltyFaction) void
setRepPenaltyPerson
(Float repPenaltyPerson) void
void
void
void
void
void
void
void
setRepRewardFaction
(Float repRewardFaction) void
setRepRewardPerson
(Float repRewardPerson) void
setRewardMult
(float rewardMult) void
setStageInRangeOfEntity
(Object to, SectorEntityToken entity, float range) void
void
setStageOnDaysElapsed
(Object to, float days) void
setStageOnEnteredLocation
(Object to, LocationAPI location) void
setStageOnEntityNotAlive
(Object to, SectorEntityToken entity) void
setStageOnGlobalFlag
(Object to, String flag) void
setStageOnHostilitiesEnded
(Object to, PersonAPI person, MarketAPI market) void
setStageOnHostilitiesStarted
(Object to, PersonAPI person, MarketAPI market) void
void
setStageOnMarketDecivilized
(Object to, MarketAPI market) void
setStageOnMemoryFlag
(Object to, HasMemory withMemory, String flag) void
setStageOnMemoryFlag
(Object to, MemoryAPI memory, String flag) void
setStageOnWithinHyperspaceRange
(Object to, SectorEntityToken entity, float rangeLY) void
void
setStartingStage
(Object startingStage) void
void
void
setTimeLimit
(Object failStage, float days, StarSystemAPI noLimitWhileInSystem, Object... noLimitAfterStages) void
void
setXPReward
(int xpReward) protected boolean
protected void
showPersonInfo
(PersonAPI person, InteractionDialogAPI dialog, boolean withFaction, boolean withRelBar) spawnDebrisField
(float radius, float density, BaseHubMission.LocData data) spawnDerelict
(String factionId, DerelictShipEntityPlugin.DerelictType type, BaseHubMission.LocData data) spawnDerelictHull
(String hullId, BaseHubMission.LocData data) spawnEntity
(String entityId, BaseHubMission.LocData data) void
spawnShipGraveyard
(String factionId, int minShips, int maxShips, BaseHubMission.LocData data) void
void
updateInteractionData
(InteractionDialogAPI dialog, Map<String, MemoryAPI> memoryMap) protected void
Methods inherited from class com.fs.starfarer.api.impl.campaign.intel.BaseIntelPlugin
addBulletPoints, addDays, addDays, addDays, addDays, addDeleteButton, addDeleteButton, addGenericButton, addGenericButton, addLogTimestamp, addMarketTable, addMarketToList, addMarketToList, advance, autoAddCampaignMessage, bullet, buttonPressCancelled, canMakeVisible, canMakeVisibleToCommSniffer, canMakeVisibleToPlayer, canTurnImportantOff, createDeleteConfirmationPrompt, createLargeDescription, endAfterDelay, endAfterDelay, endImmediately, forceAddNextFrame, getArrowData, getBackgroundGlowColor, getBaseDaysAfterEnd, getBulletColorForMode, getButtonStoryPointActionDelegate, getCancelText, getCircleBorderColorOverride, getCommMessageSound, getCommRelayRange, getConfirmationPromptWidth, getConfirmText, getDays, getDaysSincePlayerVisible, getDaysString, getListInfoParam, getPlayerVisibleTimestamp, getPostingLocation, getPostingRangeLY, getSortStringNewestFirst, getSortStringNewestFirst, getSoundColonyThreat, getSoundLogUpdate, getSoundMajorPosting, getSoundMinorMessage, getSoundStandardPosting, getSoundStandardUpdate, getTagsForSort, getTimeRemainingFraction, getTitleColor, hasImportantButton, hasLargeDescription, hasSmallDescription, indent, isDone, isEnded, isEnding, isHidden, isImportant, isNew, isPlayerVisible, isSendingUpdate, notifyEnding, notifyPlayerAboutToOpenIntelScreen, reportMadeVisibleToPlayer, reportPlayerClickedOn, reportRemovedIntel, runWhilePaused, sendUpdate, sendUpdateIfPlayerHasIntel, sendUpdateIfPlayerHasIntel, sendUpdateIfPlayerHasIntel, setForceAddNextFrame, setHidden, setImportant, setListInfoParam, setNew, setPlayerVisibleTimestamp, setPostingLocation, setPostingRangeLY, setPostingRangeLY, setTagsForSort, shouldRemoveIntel, storyActionConfirmed, tableRowClicked, unindent
-
Field Details
-
DEBRIS_SMALL
public static float DEBRIS_SMALL -
DEBRIS_MEDIUM
public static float DEBRIS_MEDIUM -
DEBRIS_LARGE
public static float DEBRIS_LARGE -
DEBRIS_SPARSE
public static float DEBRIS_SPARSE -
DEBRIS_AVERAGE
public static float DEBRIS_AVERAGE -
DEBRIS_DENSE
public static float DEBRIS_DENSE -
GLOBAL_MISSION_REWARD_MULT
public static float GLOBAL_MISSION_REWARD_MULT -
EXTRA_REWARD_PER_MARINE
public static int EXTRA_REWARD_PER_MARINE -
BUTTON_ABANDON
-
REMOVE_ON_MISSION_OVER
-
currentStage
-
stages
-
stageTransitionsRepeatable
-
successStages
-
failStages
-
noPenaltyFailStages
-
abandonStage
-
connections
-
triggers
-
changes
-
flags
-
startingStage
-
cargoOnAccept
-
cargoOnSuccess
-
elapsed
protected float elapsed -
timeLimit
-
result
-
hub
-
personOverride
-
creator
-
genRandom
-
tracker
-
repRewardPerson
-
repPenaltyPerson
-
repRewardFaction
-
repPenaltyFaction
-
creditReward
-
xpReward
-
iconName
-
rewardLimitPerson
-
rewardLimitFaction
-
penaltyLimitPerson
-
penaltyLimitFaction
-
missionId
-
rewardMult
protected float rewardMult -
quality
protected float quality -
sortTier
-
potentialContactsOnMissionSuccess
-
doNotAutoAddPotentialContactsOnSuccess
-
isBarEvent
protected boolean isBarEvent -
baseName
-
aborted
protected transient boolean aborted -
interactionMemory
-
doNotEndMission
protected transient boolean doNotEndMission -
adjustedRep
-
addedTags
-
NEXT_STEP_UPDATE
-
END_MISSION_UPDATE
-
largeTitleFont
-
giverFactionId
-
giverRank
-
giverPost
-
giverVoice
-
giverPortrait
-
giverImportance
-
giverTags
-
giverGender
-
completedKey
-
mapMarkerNameColor
-
-
Constructor Details
-
BaseHubMission
public BaseHubMission()
-
-
Method Details
-
setStageTransitionsRepeatable
public void setStageTransitionsRepeatable() -
setDoNotAutoAddPotentialContactsOnSuccess
public void setDoNotAutoAddPotentialContactsOnSuccess() -
setGiverIsPotentialContactOnSuccess
public void setGiverIsPotentialContactOnSuccess() -
setGiverIsPotentialContactOnSuccess
public void setGiverIsPotentialContactOnSuccess(float probability) -
setPersonIsPotentialContactOnSuccess
-
setPersonIsPotentialContactOnSuccess
-
setGenRandom
- Specified by:
setGenRandom
in interfaceHubMission
-
setMissionId
- Specified by:
setMissionId
in interfaceHubMission
-
getMissionId
- Specified by:
getMissionId
in interfaceHubMission
-
isBarEvent
public boolean isBarEvent() -
createAndAbortIfFailed
- Specified by:
createAndAbortIfFailed
in interfaceHubMission
-
create
-
getBaseName
-
setName
-
getBlurbText
- Specified by:
getBlurbText
in interfaceHubMission
-
addNextStepText
-
addDescriptionForNonEndStage
-
addDescriptionForCurrentStage
-
getStageDescriptionText
-
getNextStepText
-
advanceImpl
protected void advanceImpl(float amount) - Overrides:
advanceImpl
in classBaseIntelPlugin
-
getElapsedInCurrentStage
public float getElapsedInCurrentStage() -
notifyEnded
protected void notifyEnded()- Overrides:
notifyEnded
in classBaseIntelPlugin
-
accept
- Specified by:
accept
in interfaceHubMission
-
acceptImpl
-
abort
public void abort()- Specified by:
abort
in interfaceHubMission
-
isMissionCreationAborted
public boolean isMissionCreationAborted()- Specified by:
isMissionCreationAborted
in interfaceHubMission
-
getTriggerPrefix
- Specified by:
getTriggerPrefix
in interfaceHubMission
-
callAction
protected boolean callAction(String action, String ruleId, InteractionDialogAPI dialog, List<Misc.Token> params, Map<String, MemoryAPI> memoryMap) -
addPotentialContacts
-
callEvent
public boolean callEvent(String ruleId, InteractionDialogAPI dialog, List<Misc.Token> params, Map<String, MemoryAPI> memoryMap) - Specified by:
callEvent
in interfaceCallEvent.CallableEvent
- Overrides:
callEvent
in classBaseIntelPlugin
-
showPersonInfo
protected void showPersonInfo(PersonAPI person, InteractionDialogAPI dialog, boolean withFaction, boolean withRelBar) -
updateInteractionData
- Specified by:
updateInteractionData
in interfaceHubMission
-
updateInteractionDataImpl
protected void updateInteractionDataImpl() -
setPersonTokens
-
set
-
unset
-
getData
-
shouldSendUpdateForStage
-
checkStageChangesAndTriggers
public void checkStageChangesAndTriggers(InteractionDialogAPI dialog, Map<String, MemoryAPI> memoryMap) -
runTriggers
protected void runTriggers() -
runStageTriggersReturnFleets
-
setCurrentStage
public void setCurrentStage(Object next, InteractionDialogAPI dialog, Map<String, MemoryAPI> memoryMap) -
endSuccess
-
endFailure
-
endAbandon
protected void endAbandon() -
endSuccessImpl
-
endFailureImpl
-
endAbandonImpl
protected void endAbandonImpl() -
adjustRep
protected void adjustRep(TextPanelAPI textPanel, BaseHubMission.HubMissionResult result, CoreReputationPlugin.RepActions action) -
setSuccessStage
-
addSuccessStages
-
setFailureStage
-
addFailureStages
-
setNoPenaltyFailureStage
-
addNoPenaltyFailureStages
-
removeImportanceChanges
-
removeMemoryFlagChanges
-
getReason
-
getCreditsReward
public int getCreditsReward() -
getXPReward
public int getXPReward() -
getRepRewardSuccessPerson
public float getRepRewardSuccessPerson() -
getRepPenaltyFailurePerson
public float getRepPenaltyFailurePerson() -
getRepRewardSuccessFaction
public float getRepRewardSuccessFaction() -
getRepPenaltyFailureFaction
public float getRepPenaltyFailureFaction() -
getRewardLimitPerson
-
getRewardLimitFaction
-
getPenaltyLimitPerson
-
getPenaltyLimitFaction
-
getHub
- Specified by:
getHub
in interfaceHubMission
-
setHub
- Specified by:
setHub
in interfaceHubMission
-
getPerson
- Specified by:
getPerson
in interfaceHubMission
-
getCreator
- Specified by:
getCreator
in interfaceHubMission
-
setCreator
- Specified by:
setCreator
in interfaceHubMission
-
setStartingStage
-
setPersonDoGenericPortAuthorityCheck
-
setFlagWithReason
-
setFlag
-
setFlag
-
setFlag
-
setFlag
-
setGlobalFlag
-
setFlag
-
setFlag
-
setMusic
-
setMusic
-
setMusic
-
setMusic
-
setGlobalReference
-
setGlobalReference
-
setPersonMissionRef
-
setFactionMissionRef
-
setMarketMissionRef
-
setEntityMissionRef
-
getGlobalMemory
-
makeImportantDoNotShowAsIntelMapLocation
-
makeImportantDoNotShowAsIntelMapLocation
public void makeImportantDoNotShowAsIntelMapLocation(SectorEntityToken entity, String flag, Enum... stages) -
makeImportantDoNotShowAsIntelMapLocation
-
makeImportant
-
makeImportant
-
makeImportant
-
makeImportant
public void makeImportant(MemoryAPI memory, String flag, BaseHubMission.MapLocationType type, Object personOrEntityOrMarket, Enum... stages) -
makeUnimportant
-
makeUnimportant
-
makeUnimportant
-
makeUnimportant
-
makeUnimportant
-
makeUnimportant
-
makeUnimportant
-
makeUnimportant
-
setTimeLimit
public void setTimeLimit(Object failStage, float days, StarSystemAPI noLimitWhileInSystem, Object... noLimitAfterStages) -
getResult
-
genRoundNumber
public int genRoundNumber(int min, int max) -
getRoundNumber
public static int getRoundNumber(float num) -
setCreditReward
public void setCreditReward(int min, int max) -
setCreditReward
public void setCreditReward(int min, int max, boolean withMult) -
setCreditReward
-
setCreditRewardApplyRelMult
-
setCreditReward
-
setCreditReward
-
setCreditRewardWithBonus
-
getRewardBonusForMarines
public int getRewardBonusForMarines(int marines) -
setXPReward
public void setXPReward(int xpReward) -
setRepPersonChangesNone
public void setRepPersonChangesNone() -
setRepFactionChangesNone
public void setRepFactionChangesNone() -
setRepPersonChangesTiny
public void setRepPersonChangesTiny() -
setRepFactionChangesTiny
public void setRepFactionChangesTiny() -
setRepPersonChangesVeryLow
public void setRepPersonChangesVeryLow() -
setRepFactionChangesVeryLow
public void setRepFactionChangesVeryLow() -
setRepPersonChangesLow
public void setRepPersonChangesLow() -
setRepFactionChangesLow
public void setRepFactionChangesLow() -
setRepPersonChangesMedium
public void setRepPersonChangesMedium() -
setRepFactionChangesMedium
public void setRepFactionChangesMedium() -
setRepPersonChangesHigh
public void setRepPersonChangesHigh() -
setRepFactionChangesHigh
public void setRepFactionChangesHigh() -
setRepPersonChangesVeryHigh
public void setRepPersonChangesVeryHigh() -
setRepFactionChangesVeryHigh
public void setRepFactionChangesVeryHigh() -
setRepChanges
public void setRepChanges(float repRewardPerson, float repPenaltyPerson, float repRewardFaction, float repPenaltyFaction) -
setNoRepChanges
public void setNoRepChanges() -
setRepRewardPerson
-
setRepPenaltyPerson
-
setRepRewardFaction
-
setRepPenaltyFaction
-
setPenaltyLimitPerson
-
setPenaltyLimitFaction
-
playerLevelIsAtLeast
public static boolean playerLevelIsAtLeast(int level) -
playerLevelIsMaxed
public static boolean playerLevelIsMaxed() -
getMaxPlayerLevel
public static int getMaxPlayerLevel() -
isDevMode
public static boolean isDevMode() -
addTag
-
getIntelTags
Description copied from interface:IntelInfoPlugin
Method NEEDS to handle map being null gracefully.- Specified by:
getIntelTags
in interfaceIntelInfoPlugin
- Overrides:
getIntelTags
in classBaseIntelPlugin
- Returns:
-
getMapLocationFor
-
getMapLocation
- Specified by:
getMapLocation
in interfaceIntelInfoPlugin
- Overrides:
getMapLocation
in classBaseIntelPlugin
-
makePrimaryObjective
-
getMapLocation
-
getSortString
- Specified by:
getSortString
in interfaceIntelInfoPlugin
- Overrides:
getSortString
in classBaseIntelPlugin
-
setIconName
-
setIconName
-
getPostfixForState
-
getName
- Overrides:
getName
in classBaseIntelPlugin
-
getFactionForUIColors
- Specified by:
getFactionForUIColors
in interfaceIntelInfoPlugin
- Overrides:
getFactionForUIColors
in classBaseIntelPlugin
-
getSmallDescriptionTitle
- Specified by:
getSmallDescriptionTitle
in interfaceIntelInfoPlugin
- Overrides:
getSmallDescriptionTitle
in classBaseIntelPlugin
-
isSucceeded
protected boolean isSucceeded() -
isFailed
protected boolean isFailed() -
isAbandoned
protected boolean isAbandoned() -
getIcon
Description copied from interface:IntelInfoPlugin
40x40, no icon if null.- Specified by:
getIcon
in interfaceIntelInfoPlugin
- Overrides:
getIcon
in classBaseIntelPlugin
- Returns:
-
getImportantIcon
Description copied from interface:IntelInfoPlugin
20x20, if null will use default.- Specified by:
getImportantIcon
in interfaceIntelInfoPlugin
- Overrides:
getImportantIcon
in classBaseIntelPlugin
- Returns:
-
addResultBulletsAssumingAlreadyIndented
protected void addResultBulletsAssumingAlreadyIndented(TooltipMakerAPI info, IntelInfoPlugin.ListInfoMode mode) -
sendUpdateForNextStep
-
sendUpdateToTextPanel
-
addBulletPointsPre
protected void addBulletPointsPre(TooltipMakerAPI info, Color tc, float initPad, IntelInfoPlugin.ListInfoMode mode) -
addBulletPointsPost
protected void addBulletPointsPost(TooltipMakerAPI info, Color tc, float initPad, IntelInfoPlugin.ListInfoMode mode) -
getToCompleteText
-
addBulletPoints
- Overrides:
addBulletPoints
in classBaseIntelPlugin
-
getSortTier
- Specified by:
getSortTier
in interfaceIntelInfoPlugin
- Overrides:
getSortTier
in classBaseIntelPlugin
-
setUseLargeFontInMissionList
public void setUseLargeFontInMissionList() -
createIntelInfo
- Specified by:
createIntelInfo
in interfaceIntelInfoPlugin
- Overrides:
createIntelInfo
in classBaseIntelPlugin
-
createSmallDescription
- Specified by:
createSmallDescription
in interfaceIntelInfoPlugin
- Overrides:
createSmallDescription
in classBaseIntelPlugin
-
setAbandonStage
-
setNoAbandon
public void setNoAbandon() -
doesButtonHaveConfirmDialog
- Specified by:
doesButtonHaveConfirmDialog
in interfaceIntelInfoPlugin
- Overrides:
doesButtonHaveConfirmDialog
in classBaseIntelPlugin
-
addAbandonButton
-
addAbandonButton
-
canAbandonWithoutPenalty
public boolean canAbandonWithoutPenalty() -
getNoPenaltyAbandonDays
protected float getNoPenaltyAbandonDays() -
buttonPressConfirmed
- Specified by:
buttonPressConfirmed
in interfaceIntelInfoPlugin
- Overrides:
buttonPressConfirmed
in classBaseIntelPlugin
-
createConfirmationPrompt
- Specified by:
createConfirmationPrompt
in interfaceIntelInfoPlugin
- Overrides:
createConfirmationPrompt
in classBaseIntelPlugin
-
getMissionTypeNoun
-
getMissionCompletionVerb
-
getDistanceLY
-
getDistanceLY
-
getDistanceLY
-
getFuel
-
pickOneObject
-
pickOne
-
pickOne
-
getWithoutArticle
-
setStageOnGlobalFlag
-
setStageOnEntityNotAlive
-
setStageOnDaysElapsed
-
setStageOnInRangeOfCommRelay
-
setStageOnEnteredLocation
-
setStageInRangeOfEntity
-
setStageOnWithinHyperspaceRange
-
setStageOnCustomCondition
-
connectWithGlobalFlag
-
setStageOnMemoryFlag
-
connectWithMemoryFlag
-
setStageOnMemoryFlag
-
connectWithMemoryFlag
-
connectWithEntityNotAlive
-
connectWithMarketDecivilized
-
setStageOnMarketDecivilized
-
connectWithHostilitiesEnded
-
setStageOnHostilitiesEnded
-
connectWithHostilitiesStarted
-
setStageOnHostilitiesStarted
-
connectWithDaysElapsed
-
connectWithInRangeOfCommRelay
-
connectWithEnteredLocation
-
connectWithInRangeOfEntity
public void connectWithInRangeOfEntity(Object from, Object to, SectorEntityToken entity, float range) -
connectWithWithinHyperspaceRange
public void connectWithWithinHyperspaceRange(Object from, Object to, SectorEntityToken entity, float rangeLY) -
connectWithWithinHyperspaceRange
public void connectWithWithinHyperspaceRange(Object from, Object to, SectorEntityToken entity, float rangeLY, boolean requirePlayerInHyperspace) -
connectWithCustomCondition
public void connectWithCustomCondition(Object from, Object to, BaseHubMission.ConditionChecker custom) -
rollProbability
public boolean rollProbability(float p) -
spawnDebrisField
-
spawnMissionNode
-
makeMissionNodeDiscoverable
-
makeDiscoverable
-
generateLocation
public BaseThemeGenerator.EntityLocation generateLocation(String entityId, BaseHubMission.EntityLocationType locType, SectorEntityToken param, LocationAPI system) -
spawnEntity
-
spawnEntityToken
-
spawnDerelictHull
-
spawnDerelict
public SectorEntityToken spawnDerelict(String factionId, DerelictShipEntityPlugin.DerelictType type, BaseHubMission.LocData data) -
spawnDerelictOfType
public SectorEntityToken spawnDerelictOfType(DerelictShipEntityPlugin.DerelictType type, BaseHubMission.LocData data) -
spawnDerelict
public SectorEntityToken spawnDerelict(DerelictShipEntityPlugin.DerelictShipData shipData, BaseHubMission.LocData data) -
spawnShipGraveyard
public void spawnShipGraveyard(String factionId, int minShips, int maxShips, BaseHubMission.LocData data) -
findOrCreateTrader
-
findOrCreateCriminal
-
findOrCreateCriminalTrader
-
findOrCreatePerson
-
makePersonRequired
-
ensurePersonIsInCommDirectory
-
setGiverVoice
-
setGiverFaction
-
getGiverGender
-
setGiverRank
-
setGiverPost
-
setGiverPortrait
-
setGiverImportance
-
setGiverTags
-
findOrCreateGiver
public void findOrCreateGiver(MarketAPI market, boolean addToCommDirectory, boolean cleanUpOnMissionOverIfWasNewPerson) -
getPersonOverride
- Specified by:
getPersonOverride
in interfaceHubMission
-
setPersonOverride
- Specified by:
setPersonOverride
in interfaceHubMission
-
pickImportance
-
pickMediumImportance
-
pickHighImportance
-
pickLowImportance
-
createGiver
-
genMissionRewardMultAndQuality
public void genMissionRewardMultAndQuality() -
getBaseQuality
public float getBaseQuality() -
getMaxQuality
public float getMaxQuality() -
getMinQuality
public float getMinQuality() -
getQuality
public float getQuality() -
setQuality
public void setQuality(float quality) -
getRewardMult
public float getRewardMult() -
getRewardMultFraction
public float getRewardMultFraction() -
setRewardMult
public void setRewardMult(float rewardMult) -
getCurrentStage
-
addFleetDefeatTrigger
-
getLocated
-
getLocatedUnclear
-
getGetWithinCommsRangeText
-
getGetWithinCommsRangeTextShort
-
getGoToSystemTextShort
-
getGoToPlanetTextShort
-
getGoToPlanetTextPre
-
getGoToMarketText
-
getGoTalkToPersonText
-
getReturnText
-
getReturnText
-
getReturnTextShort
-
getReturnTextShort
-
generateLocationInsideTerrain
-
getTerrainName
-
hasSpecialName
-
getTerrainNameAOrAn
-
getTerrainTypeAOrAn
-
getTerrainType
-
getUnits
public static float getUnits(float lightYears) -
playerHasEnough
-
assignShipName
-
getDayOrDays
-
getChanges
-
getGenRandom
-
addOnAcceptCommodity
-
addOnAcceptWeaponDrop
-
addOnAcceptFighterLPCDrop
-
addOnAcceptHullmodDrop
-
addOnAcceptSpecialItemDrop
-
addOnSuccessCommodity
-
addOnSuccessWeaponDrop
-
addOnSuccessFighterLPCDrop
-
addOnSuccessHullmodDrop
-
addOnSuccessSpecialItemDrop
-
getMarinesRequiredToDisrupt
-
addDisruptRaidInfo
public void addDisruptRaidInfo(MarketAPI market, Industry industry, int daysRequired, TooltipMakerAPI info, float pad) -
getMarinesRequiredForCustomObjective
-
getMarinesRequiredForCustomDefenderStrength
public int getMarinesRequiredForCustomDefenderStrength(int defenderStrength, MarketCMD.RaidDangerLevel danger) -
addCustomRaidInfo
public void addCustomRaidInfo(MarketAPI market, MarketCMD.RaidDangerLevel danger, TooltipMakerAPI info, float pad) -
addCustomRaidInfo
public void addCustomRaidInfo(int defenderStrength, MarketCMD.RaidDangerLevel danger, TooltipMakerAPI info, float pad) -
getAdjustedMarinesRequired
public static int getAdjustedMarinesRequired(int marinesRequired) -
addStandardMarketDesc
public static void addStandardMarketDesc(String prefix, MarketAPI market, TooltipMakerAPI info, float pad) -
getBombardmentFuel
-
addBombardmentInfo
-
addSpecialItemDropOnlyUseInAcceptImplNotUndoneOnAbort
public void addSpecialItemDropOnlyUseInAcceptImplNotUndoneOnAbort(SectorEntityToken entity, SpecialItemData data) -
getImportantPerson
-
getImportantPersonData
-
setMemoryValuePermanent
-
setStoryMission
public void setStoryMission() -
setCompletedKey
public void setCompletedKey() -
isOkToOfferMissionRequiringMarines
public boolean isOkToOfferMissionRequiringMarines(int marines) -
getStartingStage
-
getPersonAtMarketPost
-
getMarket
-
setMapMarkerNameColor
-
setMapMarkerNameColorBasedOnStar
-
getTriggers
-