public class SystemBountyIntel extends BaseIntelPlugin implements EveryFrameScript, FleetEventListener
| Modifier and Type | Class and Description |
|---|---|
static class |
SystemBountyIntel.SystemBountyResult |
IntelInfoPlugin.ArrowData, IntelInfoPlugin.IntelSortTier, IntelInfoPlugin.ListInfoMode, IntelInfoPlugin.TableRowClickData| Modifier and Type | Field and Description |
|---|---|
protected float |
baseBounty |
protected boolean |
commerceMode |
protected float |
duration |
protected float |
elapsedDays |
protected FactionAPI |
enemyFaction |
protected FactionAPI |
faction |
protected SystemBountyIntel.SystemBountyResult |
latestResult |
protected LocationAPI |
location |
static org.apache.log4j.Logger |
log |
protected MarketAPI |
market |
static float |
MAX_DURATION |
protected MilitaryResponseScript |
script |
BULLET, BUTTON_DELETE, ended, ending, endingTimeRemaining, forceAdd, hidden, important, INDENT, listInfoParam, neverClicked, postingLocation, postingRangeLY, tagsForSort, timestampLIST_ITEM_TEXT_WIDTH, NEW_DAYS| Constructor and Description |
|---|
SystemBountyIntel(MarketAPI market) |
SystemBountyIntel(MarketAPI market,
int baseReward,
boolean commerceMode) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addBulletPoints(TooltipMakerAPI info,
IntelInfoPlugin.ListInfoMode mode) |
protected void |
advanceImpl(float amount) |
void |
createIntelInfo(TooltipMakerAPI info,
IntelInfoPlugin.ListInfoMode mode) |
void |
createSmallDescription(TooltipMakerAPI info,
float width,
float height) |
void |
createSmallDescription(TooltipMakerAPI info,
float width,
float height,
boolean forMarketConditionTooltip) |
float |
getBaseBounty() |
float |
getDuration() |
float |
getElapsedDays() |
FactionAPI |
getFactionForUIColors() |
java.lang.String |
getIcon()
40x40, no icon if null.
|
java.util.Set<java.lang.String> |
getIntelTags(SectorMapAPI map)
Method NEEDS to handle map being null gracefully.
|
LocationAPI |
getLocation() |
SectorEntityToken |
getMapLocation(SectorMapAPI map) |
MarketAPI |
getMarket() |
java.lang.String |
getName() |
java.lang.String |
getSmallDescriptionTitle() |
java.lang.String |
getSortString() |
float |
getTimeRemainingFraction()
Should return 0 if the concept doesn't apply.
|
boolean |
isCommerceMode() |
protected void |
notifyEnding() |
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,
java.lang.Object param) |
void |
reportMadeVisibleToPlayer() |
void |
reset() |
boolean |
runWhilePaused() |
void |
setBaseBounty(float baseBounty) |
void |
setCommerceMode(boolean commerceMode) |
void |
setDuration(float duration) |
void |
setElapsedDays(float elapsedDays) |
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, unindentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadvance, isDonepublic static org.apache.log4j.Logger log
public static float MAX_DURATION
protected LocationAPI location
protected float elapsedDays
protected float duration
protected float baseBounty
protected FactionAPI faction
protected FactionAPI enemyFaction
protected SystemBountyIntel.SystemBountyResult latestResult
protected boolean commerceMode
protected MilitaryResponseScript script
public SystemBountyIntel(MarketAPI market)
public SystemBountyIntel(MarketAPI market, int baseReward, boolean commerceMode)
public void reportMadeVisibleToPlayer()
reportMadeVisibleToPlayer in interface IntelInfoPluginreportMadeVisibleToPlayer in class BaseIntelPluginpublic float getElapsedDays()
public void setElapsedDays(float elapsedDays)
public void reset()
protected void advanceImpl(float amount)
advanceImpl in class BaseIntelPluginpublic float getTimeRemainingFraction()
IntelInfoPlugingetTimeRemainingFraction in interface IntelInfoPlugingetTimeRemainingFraction in class BaseIntelPluginprotected void notifyEnding()
notifyEnding in class BaseIntelPluginpublic void reportFleetDespawnedToListener(CampaignFleetAPI fleet, CampaignEventListener.FleetDespawnReason reason, java.lang.Object param)
reportFleetDespawnedToListener in interface FleetEventListenerpublic void reportBattleOccurred(CampaignFleetAPI fleet, CampaignFleetAPI primaryWinner, BattleAPI battle)
FleetEventListenerreportBattleOccurred in interface FleetEventListenerpublic boolean runWhilePaused()
runWhilePaused in interface EveryFrameScriptrunWhilePaused in class BaseIntelPluginprotected void addBulletPoints(TooltipMakerAPI info, IntelInfoPlugin.ListInfoMode mode)
addBulletPoints in class BaseIntelPluginpublic void createIntelInfo(TooltipMakerAPI info, IntelInfoPlugin.ListInfoMode mode)
createIntelInfo in interface IntelInfoPlugincreateIntelInfo in class BaseIntelPluginpublic java.lang.String getSortString()
getSortString in interface IntelInfoPlugingetSortString in class BaseIntelPluginpublic java.lang.String getName()
getName in class BaseIntelPluginpublic FactionAPI getFactionForUIColors()
getFactionForUIColors in interface IntelInfoPlugingetFactionForUIColors in class BaseIntelPluginpublic java.lang.String getSmallDescriptionTitle()
getSmallDescriptionTitle in interface IntelInfoPlugingetSmallDescriptionTitle in class BaseIntelPluginpublic void createSmallDescription(TooltipMakerAPI info, float width, float height)
createSmallDescription in interface IntelInfoPlugincreateSmallDescription in class BaseIntelPluginpublic void createSmallDescription(TooltipMakerAPI info, float width, float height, boolean forMarketConditionTooltip)
public java.lang.String getIcon()
IntelInfoPlugingetIcon in interface IntelInfoPlugingetIcon in class BaseIntelPluginpublic java.util.Set<java.lang.String> getIntelTags(SectorMapAPI map)
IntelInfoPlugingetIntelTags in interface IntelInfoPlugingetIntelTags in class BaseIntelPluginpublic SectorEntityToken getMapLocation(SectorMapAPI map)
getMapLocation in interface IntelInfoPlugingetMapLocation in class BaseIntelPluginpublic float getDuration()
public void setDuration(float duration)
public float getBaseBounty()
public void setBaseBounty(float baseBounty)
public boolean isCommerceMode()
public void setCommerceMode(boolean commerceMode)
public LocationAPI getLocation()