Class SystemBountyIntel
java.lang.Object
com.fs.starfarer.api.impl.campaign.intel.BaseIntelPlugin
com.fs.starfarer.api.impl.campaign.intel.SystemBountyIntel
- All Implemented Interfaces:
IntelInfoPlugin
,FleetEventListener
,EveryFrameScript
,CommRelayEntityPlugin.CommSnifferReadableIntel
,CallEvent.CallableEvent
public class SystemBountyIntel
extends BaseIntelPlugin
implements EveryFrameScript, FleetEventListener
-
Nested Class Summary
Nested ClassesNested 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 float
protected boolean
protected float
protected float
protected FactionAPI
protected FactionAPI
protected SystemBountyIntel.SystemBountyResult
protected LocationAPI
static org.apache.log4j.Logger
protected MarketAPI
static float
protected MilitaryResponseScript
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
ConstructorsConstructorDescriptionSystemBountyIntel
(MarketAPI market) SystemBountyIntel
(MarketAPI market, int baseReward, boolean commerceMode) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
advanceImpl
(float amount) void
void
createSmallDescription
(TooltipMakerAPI info, float width, float height) void
createSmallDescription
(TooltipMakerAPI info, float width, float height, boolean forMarketConditionTooltip) float
float
float
getIcon()
40x40, no icon if null.getIntelTags
(SectorMapAPI map) Method NEEDS to handle map being null gracefully.getName()
float
Should return 0 if the concept doesn't apply.boolean
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
void
reset()
boolean
void
setBaseBounty
(float baseBounty) void
setCommerceMode
(boolean commerceMode) void
setDuration
(float duration) void
setElapsedDays
(float elapsedDays) 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 -
market
-
location
-
elapsedDays
protected float elapsedDays -
duration
protected float duration -
baseBounty
protected float baseBounty -
faction
-
enemyFaction
-
latestResult
-
commerceMode
protected boolean commerceMode -
script
-
-
Constructor Details
-
SystemBountyIntel
-
SystemBountyIntel
-
-
Method Details
-
reportMadeVisibleToPlayer
public void reportMadeVisibleToPlayer()- Specified by:
reportMadeVisibleToPlayer
in interfaceIntelInfoPlugin
- Overrides:
reportMadeVisibleToPlayer
in classBaseIntelPlugin
-
getElapsedDays
public float getElapsedDays() -
setElapsedDays
public void setElapsedDays(float elapsedDays) -
reset
public void reset() -
getMarket
-
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
-
reportFleetDespawnedToListener
public void reportFleetDespawnedToListener(CampaignFleetAPI fleet, CampaignEventListener.FleetDespawnReason reason, Object param) - Specified by:
reportFleetDespawnedToListener
in interfaceFleetEventListener
-
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
-
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
-
createSmallDescription
public void createSmallDescription(TooltipMakerAPI info, float width, float height, boolean forMarketConditionTooltip) -
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
-
getDuration
public float getDuration() -
setDuration
public void setDuration(float duration) -
getBaseBounty
public float getBaseBounty() -
setBaseBounty
public void setBaseBounty(float baseBounty) -
isCommerceMode
public boolean isCommerceMode() -
setCommerceMode
public void setCommerceMode(boolean commerceMode) -
getLocation
-