public class LuddicPathBaseIntel extends BaseIntelPlugin implements EveryFrameScript, FleetEventListener, EconomyAPI.EconomyUpdateListener, RaidIntel.RaidDelegate
IntelInfoPlugin.ArrowData, IntelInfoPlugin.IntelSortTier, IntelInfoPlugin.ListInfoMode, IntelInfoPlugin.TableRowClickData| Modifier and Type | Field and Description |
|---|---|
protected CampaignFleetAPI |
addedListenerTo |
protected PersonAPI |
baseCommander |
static java.lang.Object |
BOUNTY_EXPIRED_PARAM |
protected PirateBaseIntel.BaseBountyData |
bountyData |
static java.lang.Object |
DISCOVERED_PARAM |
protected float |
duration |
protected float |
elapsedDays |
protected SectorEntityToken |
entity |
protected boolean |
large |
static org.apache.log4j.Logger |
log |
protected MarketAPI |
market |
static java.lang.String |
MEM_FLAG |
protected IntervalUtil |
monthlyInterval |
protected int |
monthsNoBounty |
static java.lang.String |
PATHER_BASE_COMMANDER |
protected java.util.Random |
random |
protected PersonBountyIntel.BountyResult |
result |
protected boolean |
sentBountyUpdate |
protected StarSystemAPI |
system |
BULLET, BUTTON_DELETE, ended, ending, endingTimeRemaining, forceAdd, hidden, important, INDENT, listInfoParam, neverClicked, postingLocation, postingRangeLY, tagsForSort, timestampLIST_ITEM_TEXT_WIDTH, NEW_DAYS| Constructor and Description |
|---|
LuddicPathBaseIntel(StarSystemAPI system,
java.lang.String factionId) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addBulletPoints(TooltipMakerAPI info,
IntelInfoPlugin.ListInfoMode mode) |
protected void |
advanceImpl(float amount) |
void |
commodityUpdated(java.lang.String commodityId) |
void |
createIntelInfo(TooltipMakerAPI info,
IntelInfoPlugin.ListInfoMode mode) |
void |
createSmallDescription(TooltipMakerAPI info,
float width,
float height) |
void |
economyUpdated() |
protected void |
endBounty() |
protected java.lang.String |
generateName() |
java.util.List<IntelInfoPlugin.ArrowData> |
getArrowData(SectorMapAPI map) |
PersonAPI |
getBaseCommander() |
SectorEntityToken |
getEntity() |
FactionAPI |
getFactionForUIColors() |
java.lang.String |
getIcon()
40x40, no icon if null.
|
static LuddicPathBaseIntel |
getIntelFor(MarketAPI market) |
static LuddicPathBaseIntel |
getIntelFor(StarSystemAPI system) |
java.util.Set<java.lang.String> |
getIntelTags(SectorMapAPI map)
Method NEEDS to handle map being null gracefully.
|
SectorEntityToken |
getMapLocation(SectorMapAPI map) |
MarketAPI |
getMarket() |
java.lang.String |
getName() |
java.lang.String |
getSmallDescriptionTitle() |
java.lang.String |
getSortString() |
protected Industry |
getStationIndustry() |
StarSystemAPI |
getSystem() |
float |
getTimeRemainingFraction()
Should return 0 if the concept doesn't apply.
|
boolean |
isEconomyListenerExpired() |
boolean |
isHidden()
Whether to actually show this piece of intel in the intel screen/show messages or updates for it,
despite it being technically known to the player.
|
boolean |
isLarge() |
void |
makeKnown() |
void |
makeKnown(TextPanelAPI text) |
protected void |
notifyEnded() |
protected void |
notifyEnding() |
void |
notifyRaidEnded(RaidIntel raid,
RaidIntel.RaidStageStatus status) |
protected java.lang.String |
pickStationType(boolean large) |
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) |
boolean |
runWhilePaused() |
void |
setBaseCommander(PersonAPI baseCommander) |
protected void |
setBounty() |
protected void |
updateStationIfNeeded(boolean large) |
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, 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, isImportant, isNew, isPlayerVisible, isSendingUpdate, notifyPlayerAboutToOpenIntelScreen, reportMadeVisibleToPlayer, 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 final java.lang.String PATHER_BASE_COMMANDER
public static java.lang.String MEM_FLAG
public static java.lang.Object BOUNTY_EXPIRED_PARAM
public static java.lang.Object DISCOVERED_PARAM
public static org.apache.log4j.Logger log
protected PersonAPI baseCommander
protected StarSystemAPI system
protected SectorEntityToken entity
protected float elapsedDays
protected float duration
protected PirateBaseIntel.BaseBountyData bountyData
protected IntervalUtil monthlyInterval
protected int monthsNoBounty
protected boolean large
protected java.util.Random random
protected CampaignFleetAPI addedListenerTo
protected PersonBountyIntel.BountyResult result
protected boolean sentBountyUpdate
public LuddicPathBaseIntel(StarSystemAPI system, java.lang.String factionId)
public static LuddicPathBaseIntel getIntelFor(StarSystemAPI system)
public static LuddicPathBaseIntel getIntelFor(MarketAPI market)
public boolean isHidden()
IntelInfoPluginisHidden in interface IntelInfoPluginisHidden in class BaseIntelPluginpublic void notifyRaidEnded(RaidIntel raid, RaidIntel.RaidStageStatus status)
notifyRaidEnded in interface RaidIntel.RaidDelegatepublic StarSystemAPI getSystem()
protected java.lang.String pickStationType(boolean large)
protected Industry getStationIndustry()
protected void updateStationIfNeeded(boolean large)
protected void advanceImpl(float amount)
advanceImpl in class BaseIntelPluginpublic void makeKnown()
public void makeKnown(TextPanelAPI text)
public float getTimeRemainingFraction()
IntelInfoPlugingetTimeRemainingFraction in interface IntelInfoPlugingetTimeRemainingFraction in class BaseIntelPluginprotected void notifyEnding()
notifyEnding in class BaseIntelPluginprotected void notifyEnded()
notifyEnded 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 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 BaseIntelPluginprotected java.lang.String generateName()
public void commodityUpdated(java.lang.String commodityId)
commodityUpdated in interface EconomyAPI.EconomyUpdateListenerpublic void economyUpdated()
economyUpdated in interface EconomyAPI.EconomyUpdateListenerpublic boolean isEconomyListenerExpired()
isEconomyListenerExpired in interface EconomyAPI.EconomyUpdateListenerprotected void setBounty()
protected void endBounty()
public java.util.List<IntelInfoPlugin.ArrowData> getArrowData(SectorMapAPI map)
getArrowData in interface IntelInfoPlugingetArrowData in class BaseIntelPluginpublic SectorEntityToken getEntity()
public boolean isLarge()
public PersonAPI getBaseCommander()
public void setBaseCommander(PersonAPI baseCommander)