Class PersonBountyIntel
java.lang.Object
com.fs.starfarer.api.impl.campaign.intel.BaseIntelPlugin
com.fs.starfarer.api.impl.campaign.intel.PersonBountyIntel
- All Implemented Interfaces:
IntelInfoPlugin
,FleetEventListener
,EveryFrameScript
,CommRelayEntityPlugin.CommSnifferReadableIntel
,CallEvent.CallableEvent
public class PersonBountyIntel
extends BaseIntelPlugin
implements EveryFrameScript, FleetEventListener
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static enum
static enum
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 TypeFieldDescriptionstatic org.apache.log4j.Logger
static float
static float
protected PersonBountyIntel.BountyResult
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 TypeMethodDescriptionprotected void
protected void
advanceImpl
(float amount) protected void
void
void
createSmallDescription
(TooltipMakerAPI info, float width, float height) float
float
float
getFleet()
getIcon()
40x40, no icon if null.getIntelTags
(SectorMapAPI map) Method NEEDS to handle map being null gracefully.int
getLevel()
getName()
static PersonBountyEventData
float
Should return 0 if the concept doesn't apply.protected void
protected void
protected void
void
reportBattleOccurred
(CampaignFleetAPI fleet, CampaignFleetAPI primaryWinner, BattleAPI battle) "fleet" will be null if the listener is registered with the ListenerManager, and non-null if the listener is added directly to a fleet.void
reportFleetDespawnedToListener
(CampaignFleetAPI fleet, CampaignEventListener.FleetDespawnReason reason, Object param) void
boolean
void
setBountyCredits
(float bountyCredits) void
setBountyType
(PersonBountyIntel.BountyType bountyType) void
setDuration
(float duration) void
setElapsedDays
(float elapsedDays) protected boolean
willPay()
protected boolean
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, buttonPressConfirmed, callEvent, canMakeVisible, canMakeVisibleToCommSniffer, canMakeVisibleToPlayer, canTurnImportantOff, createConfirmationPrompt, createDeleteConfirmationPrompt, createLargeDescription, doesButtonHaveConfirmDialog, endAfterDelay, endAfterDelay, endImmediately, forceAddNextFrame, getArrowData, getBackgroundGlowColor, getBaseDaysAfterEnd, getBulletColorForMode, getButtonStoryPointActionDelegate, getCancelText, getCircleBorderColorOverride, getCommMessageSound, getCommRelayRange, getConfirmationPromptWidth, getConfirmText, getDays, getDaysSincePlayerVisible, getDaysString, getImportantIcon, getListInfoParam, getPlayerVisibleTimestamp, getPostingLocation, getPostingRangeLY, getSortStringNewestFirst, getSortStringNewestFirst, getSortTier, getSoundColonyThreat, getSoundLogUpdate, getSoundMajorPosting, getSoundMinorMessage, getSoundStandardPosting, getSoundStandardUpdate, getTagsForSort, getTitleColor, hasImportantButton, hasLargeDescription, hasSmallDescription, indent, isDone, isEnded, isEnding, isHidden, isImportant, isNew, isPlayerVisible, isSendingUpdate, notifyEnded, notifyPlayerAboutToOpenIntelScreen, reportPlayerClickedOn, reportRemovedIntel, sendUpdate, sendUpdateIfPlayerHasIntel, sendUpdateIfPlayerHasIntel, sendUpdateIfPlayerHasIntel, setForceAddNextFrame, setHidden, setImportant, setListInfoParam, setNew, setPlayerVisibleTimestamp, setPostingLocation, setPostingRangeLY, setPostingRangeLY, setTagsForSort, shouldRemoveIntel, storyActionConfirmed, tableRowClicked, unindent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.fs.starfarer.api.EveryFrameScript
advance, isDone
-
Field Details
-
log
public static org.apache.log4j.Logger log -
MAX_DURATION
public static float MAX_DURATION -
MAX_TIME_BASED_ADDED_LEVEL
public static float MAX_TIME_BASED_ADDED_LEVEL -
result
-
-
Constructor Details
-
PersonBountyIntel
public PersonBountyIntel()
-
-
Method Details
-
getElapsedDays
public float getElapsedDays() -
setElapsedDays
public void setElapsedDays(float elapsedDays) -
reportMadeVisibleToPlayer
public void reportMadeVisibleToPlayer()- Specified by:
reportMadeVisibleToPlayer
in interfaceIntelInfoPlugin
- Overrides:
reportMadeVisibleToPlayer
in classBaseIntelPlugin
-
pickLevel
protected void pickLevel() -
getLevel
public int getLevel() -
pickHideoutLocation
protected void pickHideoutLocation() -
advanceImpl
protected void advanceImpl(float amount) - Overrides:
advanceImpl
in classBaseIntelPlugin
-
getTimeRemainingFraction
public float getTimeRemainingFraction()Description copied from interface:IntelInfoPlugin
Should return 0 if the concept doesn't apply.- Specified by:
getTimeRemainingFraction
in interfaceIntelInfoPlugin
- Overrides:
getTimeRemainingFraction
in classBaseIntelPlugin
- Returns:
-
notifyEnding
protected void notifyEnding()- Overrides:
notifyEnding
in classBaseIntelPlugin
-
cleanUpFleetAndEndIfNecessary
protected void cleanUpFleetAndEndIfNecessary() -
willPay
protected boolean willPay() -
willRepIncrease
protected boolean willRepIncrease() -
reportBattleOccurred
public void reportBattleOccurred(CampaignFleetAPI fleet, CampaignFleetAPI primaryWinner, BattleAPI battle) Description copied from interface:FleetEventListener
"fleet" will be null if the listener is registered with the ListenerManager, and non-null if the listener is added directly to a fleet.- Specified by:
reportBattleOccurred
in interfaceFleetEventListener
-
reportFleetDespawnedToListener
public void reportFleetDespawnedToListener(CampaignFleetAPI fleet, CampaignEventListener.FleetDespawnReason reason, Object param) - Specified by:
reportFleetDespawnedToListener
in interfaceFleetEventListener
-
runWhilePaused
public boolean runWhilePaused()- Specified by:
runWhilePaused
in interfaceEveryFrameScript
- Overrides:
runWhilePaused
in classBaseIntelPlugin
- Returns:
- whether advance() should be called while the campaign engine is paused.
-
addBulletPoints
- Overrides:
addBulletPoints
in classBaseIntelPlugin
-
createIntelInfo
- Specified by:
createIntelInfo
in interfaceIntelInfoPlugin
- Overrides:
createIntelInfo
in classBaseIntelPlugin
-
getSortString
- Specified by:
getSortString
in interfaceIntelInfoPlugin
- Overrides:
getSortString
in classBaseIntelPlugin
-
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
-
createSmallDescription
- Specified by:
createSmallDescription
in interfaceIntelInfoPlugin
- Overrides:
createSmallDescription
in classBaseIntelPlugin
-
getIcon
Description copied from interface:IntelInfoPlugin
40x40, no icon if null.- Specified by:
getIcon
in interfaceIntelInfoPlugin
- Overrides:
getIcon
in classBaseIntelPlugin
- Returns:
-
getIntelTags
Description copied from interface:IntelInfoPlugin
Method NEEDS to handle map being null gracefully.- Specified by:
getIntelTags
in interfaceIntelInfoPlugin
- Overrides:
getIntelTags
in classBaseIntelPlugin
- Returns:
-
getMapLocation
- Specified by:
getMapLocation
in interfaceIntelInfoPlugin
- Overrides:
getMapLocation
in classBaseIntelPlugin
-
getPerson
-
getFleet
-
getDuration
public float getDuration() -
setDuration
public void setDuration(float duration) -
getBountyCredits
public float getBountyCredits() -
setBountyCredits
public void setBountyCredits(float bountyCredits) -
getBountyType
-
setBountyType
-
getFaction
-
getFlagship
-
getHideoutLocation
-
getResult
-