Class BaseCustomBountyCreator
java.lang.Object
com.fs.starfarer.api.impl.campaign.missions.cb.BaseCustomBountyCreator
- All Implemented Interfaces:
CustomBountyCreator
,HubMissionWithSearch.GenericRequirement
,HubMissionWithSearch.StarSystemRequirement
- Direct Known Subclasses:
CBDerelict
,CBDeserter
,CBEnemyStation
,CBMerc
,CBPather
,CBPatrol
,CBPirate
,CBRemnant
,CBRemnantPlus
,CBRemnantStation
,CBTrader
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.fs.starfarer.api.impl.campaign.missions.cb.CustomBountyCreator
CustomBountyCreator.CustomBountyData
-
Field Summary
FieldsFields inherited from interface com.fs.starfarer.api.impl.campaign.missions.cb.CustomBountyCreator
MAX_DIFFICULTY, MIN_DIFFICULTY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFleetDescription
(TooltipMakerAPI info, float width, float height, HubMissionWithBarEvent mission, CustomBountyCreator.CustomBountyData data) void
addIntelAssessment
(TextPanelAPI text, HubMissionWithBarEvent mission, CustomBountyCreator.CustomBountyData data) void
addTargetLocationAndDescription
(TooltipMakerAPI info, float width, float height, HubMissionWithBarEvent mission, CustomBountyCreator.CustomBountyData data) void
addTargetLocationAndDescriptionBulletPoint
(TooltipMakerAPI info, Color tc, float pad, HubMissionWithBarEvent mission, CustomBountyCreator.CustomBountyData data) protected void
beginFleet
(HubMissionWithBarEvent mission, CustomBountyCreator.CustomBountyData data) createBounty
(MarketAPI createdAt, HubMissionWithBarEvent mission, int difficulty, Object bountyStage) protected CampaignFleetAPI
float
float
getFrequency
(HubMissionWithBarEvent mission, int difficulty) getId()
int
int
int
getNumCompletedForPerson
(PersonAPI person) int
float
float
protected boolean
protected boolean
protected boolean
void
notifyAccepted
(MarketAPI createdAt, HubMissionWithBarEvent mission, CustomBountyCreator.CustomBountyData data) void
void
void
setRepChangesBasedOnDifficulty
(CustomBountyCreator.CustomBountyData data, int difficulty) boolean
void
-
Field Details
-
DEFAULT_FREQUENCY
public static float DEFAULT_FREQUENCY -
STAGE
-
-
Constructor Details
-
BaseCustomBountyCreator
public BaseCustomBountyCreator()
-
-
Method Details
-
getBountyDays
public float getBountyDays()- Specified by:
getBountyDays
in interfaceCustomBountyCreator
-
addTargetLocationAndDescriptionBulletPoint
public void addTargetLocationAndDescriptionBulletPoint(TooltipMakerAPI info, Color tc, float pad, HubMissionWithBarEvent mission, CustomBountyCreator.CustomBountyData data) - Specified by:
addTargetLocationAndDescriptionBulletPoint
in interfaceCustomBountyCreator
-
addTargetLocationAndDescription
public void addTargetLocationAndDescription(TooltipMakerAPI info, float width, float height, HubMissionWithBarEvent mission, CustomBountyCreator.CustomBountyData data) - Specified by:
addTargetLocationAndDescription
in interfaceCustomBountyCreator
-
addIntelAssessment
public void addIntelAssessment(TextPanelAPI text, HubMissionWithBarEvent mission, CustomBountyCreator.CustomBountyData data) - Specified by:
addIntelAssessment
in interfaceCustomBountyCreator
-
addFleetDescription
public void addFleetDescription(TooltipMakerAPI info, float width, float height, HubMissionWithBarEvent mission, CustomBountyCreator.CustomBountyData data) - Specified by:
addFleetDescription
in interfaceCustomBountyCreator
-
getFrequency
- Specified by:
getFrequency
in interfaceCustomBountyCreator
-
getNumCompletedPerPersonKey
-
getNumCompletedGlobalKey
-
isRepeatablePerPerson
protected boolean isRepeatablePerPerson() -
isRepeatableGlobally
protected boolean isRepeatableGlobally() -
isReduceFrequencyBasedOnNumberOfCompletions
protected boolean isReduceFrequencyBasedOnNumberOfCompletions() -
getId
- Specified by:
getId
in interfaceCustomBountyCreator
-
systemMatchesRequirement
- Specified by:
systemMatchesRequirement
in interfaceHubMissionWithSearch.StarSystemRequirement
-
getRepFaction
public float getRepFaction() -
getRepPerson
public float getRepPerson() -
beginFleet
protected void beginFleet(HubMissionWithBarEvent mission, CustomBountyCreator.CustomBountyData data) -
createFleet
protected CampaignFleetAPI createFleet(HubMissionWithBarEvent mission, CustomBountyCreator.CustomBountyData data) -
notifyCompleted
public void notifyCompleted(HubMissionWithBarEvent mission, CustomBountyCreator.CustomBountyData data) - Specified by:
notifyCompleted
in interfaceCustomBountyCreator
-
notifyFailed
- Specified by:
notifyFailed
in interfaceCustomBountyCreator
-
getNumCompletedForPerson
-
getNumCompletedGlobal
public int getNumCompletedGlobal() -
getMinDifficulty
public int getMinDifficulty()- Specified by:
getMinDifficulty
in interfaceCustomBountyCreator
-
getMaxDifficulty
public int getMaxDifficulty()- Specified by:
getMaxDifficulty
in interfaceCustomBountyCreator
-
createBounty
public CustomBountyCreator.CustomBountyData createBounty(MarketAPI createdAt, HubMissionWithBarEvent mission, int difficulty, Object bountyStage) - Specified by:
createBounty
in interfaceCustomBountyCreator
-
notifyAccepted
public void notifyAccepted(MarketAPI createdAt, HubMissionWithBarEvent mission, CustomBountyCreator.CustomBountyData data) - Specified by:
notifyAccepted
in interfaceCustomBountyCreator
-
getSystemWithNoTimeLimit
- Specified by:
getSystemWithNoTimeLimit
in interfaceCustomBountyCreator
-
getBaseBountyName
public String getBaseBountyName(HubMissionWithBarEvent mission, CustomBountyCreator.CustomBountyData data) - Specified by:
getBaseBountyName
in interfaceCustomBountyCreator
-
getBountyNamePostfix
public String getBountyNamePostfix(HubMissionWithBarEvent mission, CustomBountyCreator.CustomBountyData data) - Specified by:
getBountyNamePostfix
in interfaceCustomBountyCreator
-
setRepChangesBasedOnDifficulty
public void setRepChangesBasedOnDifficulty(CustomBountyCreator.CustomBountyData data, int difficulty) -
updateInteractionData
public void updateInteractionData(HubMissionWithBarEvent mission, CustomBountyCreator.CustomBountyData data) - Specified by:
updateInteractionData
in interfaceCustomBountyCreator
-
getIconName
- Specified by:
getIconName
in interfaceCustomBountyCreator
-